mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
build: Move CoglMatrixMode to cogl-matrix-stack.h
This avoids a redeclaration of _cogl_matrix_stack_flush_to_gl() from using GLenum to CoglMatrixMode. http://bugzilla.openedhand.com/show_bug.cgi?id=1928
This commit is contained in:
parent
9b441ec309
commit
ade4e5839d
@ -27,13 +27,6 @@
|
|||||||
#include "cogl.h"
|
#include "cogl.h"
|
||||||
#include "cogl-matrix-stack.h"
|
#include "cogl-matrix-stack.h"
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
COGL_MATRIX_MODELVIEW,
|
|
||||||
COGL_MATRIX_PROJECTION,
|
|
||||||
COGL_MATRIX_TEXTURE
|
|
||||||
} CoglMatrixMode;
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
COGL_FRONT_WINDING_CLOCKWISE,
|
COGL_FRONT_WINDING_CLOCKWISE,
|
||||||
|
@ -28,10 +28,15 @@
|
|||||||
#define __COGL_MATRIX_STACK_H
|
#define __COGL_MATRIX_STACK_H
|
||||||
|
|
||||||
#include "cogl-matrix.h"
|
#include "cogl-matrix.h"
|
||||||
#include "cogl.h" /* needed for GLenum */
|
|
||||||
|
|
||||||
typedef struct _CoglMatrixStack CoglMatrixStack;
|
typedef struct _CoglMatrixStack CoglMatrixStack;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
COGL_MATRIX_MODELVIEW,
|
||||||
|
COGL_MATRIX_PROJECTION,
|
||||||
|
COGL_MATRIX_TEXTURE
|
||||||
|
} CoglMatrixMode;
|
||||||
|
|
||||||
CoglMatrixStack* _cogl_matrix_stack_new (void);
|
CoglMatrixStack* _cogl_matrix_stack_new (void);
|
||||||
void _cogl_matrix_stack_destroy (CoglMatrixStack *stack);
|
void _cogl_matrix_stack_destroy (CoglMatrixStack *stack);
|
||||||
void _cogl_matrix_stack_push (CoglMatrixStack *stack);
|
void _cogl_matrix_stack_push (CoglMatrixStack *stack);
|
||||||
@ -79,7 +84,7 @@ void _cogl_matrix_stack_get (CoglMatrixStack *stack,
|
|||||||
void _cogl_matrix_stack_set (CoglMatrixStack *stack,
|
void _cogl_matrix_stack_set (CoglMatrixStack *stack,
|
||||||
const CoglMatrix *matrix);
|
const CoglMatrix *matrix);
|
||||||
void _cogl_matrix_stack_flush_to_gl (CoglMatrixStack *stack,
|
void _cogl_matrix_stack_flush_to_gl (CoglMatrixStack *stack,
|
||||||
GLenum gl_mode);
|
CoglMatrixMode mode);
|
||||||
void _cogl_matrix_stack_dirty (CoglMatrixStack *stack);
|
void _cogl_matrix_stack_dirty (CoglMatrixStack *stack);
|
||||||
|
|
||||||
#endif /* __COGL_MATRIX_STACK_H */
|
#endif /* __COGL_MATRIX_STACK_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user