25
25
#define __COGL_FRAMEBUFFER_PRIVATE_H
27
27
#include "cogl-object-private.h"
28
#include "cogl-matrix-stack.h"
28
#include "cogl-matrix-stack-private.h"
29
29
#include "cogl-clip-state-private.h"
30
30
#include "cogl-journal-private.h"
31
31
#include "cogl-winsys-private.h"
126
137
float viewport_y;
127
138
float viewport_width;
128
139
float viewport_height;
141
int viewport_age_for_scissor_workaround;
130
143
CoglClipState clip_state;
132
CoglBool dirty_bitmasks;
138
145
CoglBool dither_enabled;
139
146
CoglColorMask color_mask;
141
int samples_per_pixel;
143
148
/* We journal the textured rectangles we want to submit to OpenGL so
144
149
* we have an oppertunity to batch them together into less draw
321
334
* _cogl_blit_framebuffer:
335
* @src: The source #CoglFramebuffer
336
* @dest: The destination #CoglFramebuffer
322
337
* @src_x: Source x position
323
338
* @src_y: Source y position
324
339
* @dst_x: Destination x position
363
378
* a separate function to copy the entire buffer for a given mask.
366
_cogl_blit_framebuffer (unsigned int src_x,
371
unsigned int height);
381
_cogl_blit_framebuffer (CoglFramebuffer *src,
382
CoglFramebuffer *dest,
374
391
_cogl_framebuffer_push_projection (CoglFramebuffer *framebuffer);
421
438
int texture_level,
422
439
int texture_level_width,
423
440
int texture_level_height,
441
CoglTexture *depth_texture,
424
442
CoglFramebufferConfig *config,
425
443
CoglOffscreenAllocateFlags flags,
426
444
CoglGLFramebuffer *gl_framebuffer);
429
_cogl_gl_framebuffer_bind (CoglFramebuffer *framebuffer, GLenum target);
447
_cogl_framebuffer_compare (CoglFramebuffer *a,
449
unsigned long state);
451
static inline CoglMatrixEntry *
452
_cogl_framebuffer_get_modelview_entry (CoglFramebuffer *framebuffer)
454
CoglMatrixStack *modelview_stack =
455
_cogl_framebuffer_get_modelview_stack (framebuffer);
456
return modelview_stack->last_entry;
459
static inline CoglMatrixEntry *
460
_cogl_framebuffer_get_projection_entry (CoglFramebuffer *framebuffer)
462
CoglMatrixStack *projection_stack =
463
_cogl_framebuffer_get_projection_stack (framebuffer);
464
return projection_stack->last_entry;
468
_cogl_framebuffer_read_pixels_into_bitmap (CoglFramebuffer *framebuffer,
471
CoglReadPixelsFlags source,
476
* _cogl_framebuffer_get_stencil_bits:
477
* @framebuffer: a pointer to a #CoglFramebuffer
479
* Retrieves the number of stencil bits of @framebuffer
481
* Return value: the number of bits
484
* Stability: unstable
487
_cogl_framebuffer_get_stencil_bits (CoglFramebuffer *framebuffer);
431
489
#endif /* __COGL_FRAMEBUFFER_PRIVATE_H */