}
void
+_cogl_current_matrix_state_dirty (void)
+{
+ _COGL_GET_CONTEXT (ctx, NO_RETVAL);
+
+ if (ctx->matrix_mode != COGL_MATRIX_MODELVIEW)
+ {
+ g_warning ("matrix state must be dirtied in MODELVIEW mode");
+ return;
+ }
+
+ if (ctx->modelview_stack)
+ _cogl_matrix_stack_dirty (ctx->modelview_stack);
+}
+
+void
cogl_push_matrix (void)
{
_cogl_set_current_matrix (COGL_MATRIX_MODELVIEW);
void _cogl_current_matrix_state_init (void);
void _cogl_current_matrix_state_destroy (void);
void _cogl_current_matrix_state_flush (void);
+void _cogl_current_matrix_state_dirty (void);
#endif /* __COGL_CURRENT_MATRIX_H */
if (gl_mode != GL_MODELVIEW)
GE (glMatrixMode (GL_MODELVIEW));
}
+
+void
+_cogl_matrix_stack_dirty (CoglMatrixStack *stack)
+{
+ stack->flushed_state = NULL;
+}
+
const CoglMatrix *matrix);
void _cogl_matrix_stack_flush_to_gl (CoglMatrixStack *stack,
GLenum gl_mode);
+void _cogl_matrix_stack_dirty (CoglMatrixStack *stack);
#endif /* __COGL_MATRIX_STACK_H */