diff --git a/cogl/cogl-draw-buffer-private.h b/cogl/cogl-draw-buffer-private.h index 5ad4fc896..3490cd26c 100644 --- a/cogl/cogl-draw-buffer-private.h +++ b/cogl/cogl-draw-buffer-private.h @@ -76,6 +76,10 @@ typedef struct _CoglOnscreen void _cogl_draw_buffer_state_init (void); +int +_cogl_draw_buffer_get_width (CoglHandle handle); +int +_cogl_draw_buffer_get_height (CoglHandle handle); CoglClipStackState * _cogl_draw_buffer_get_clip_state (CoglHandle handle); void diff --git a/cogl/cogl-draw-buffer.c b/cogl/cogl-draw-buffer.c index 76077627a..83ad3e313 100644 --- a/cogl/cogl-draw-buffer.c +++ b/cogl/cogl-draw-buffer.c @@ -130,6 +130,20 @@ _cogl_draw_buffer_free (CoglDrawBuffer *draw_buffer) draw_buffer->projection_stack = NULL; } +int +_cogl_draw_buffer_get_width (CoglHandle handle) +{ + CoglDrawBuffer *draw_buffer = COGL_DRAW_BUFFER (handle); + return draw_buffer->width; +} + +int +_cogl_draw_buffer_get_height (CoglHandle handle) +{ + CoglDrawBuffer *draw_buffer = COGL_DRAW_BUFFER (handle); + return draw_buffer->height; +} + CoglClipStackState * _cogl_draw_buffer_get_clip_state (CoglHandle handle) {