[current-matrix] Adds texture matrix stacks + removes GL matrix API usage
This relates back to an earlier commitment to stop using the OpenGL matrix
API which is considered deprecated. (ref 54159f5a1d
)
The new texture matrix stacks are hung from a list of (internal only)
CoglTextureUnit structures which the CoglMaterial code internally references
via _cogl_get_texure_unit ().
So we would be left with only the cogl-matrix-stack code being responsible
for glMatrixMode, glLoadMatrix and glLoadIdentity this commit updates the
journal code so it now uses the matrix-stack API instead of GL directly.
This commit is contained in:
@ -26,6 +26,7 @@
|
||||
|
||||
#include "cogl-debug.h"
|
||||
#include "cogl-types.h"
|
||||
#include "cogl-context.h"
|
||||
|
||||
#ifdef HAVE_COGL_GLES2
|
||||
typedef enum {
|
||||
@ -85,4 +86,15 @@ gint _cogl_get_format_bpp (CoglPixelFormat format);
|
||||
void cogl_enable (gulong flags);
|
||||
gulong cogl_get_enable (void);
|
||||
|
||||
typedef struct _CoglTextureUnit
|
||||
{
|
||||
int index;
|
||||
CoglMatrixStack *matrix_stack;
|
||||
} CoglTextureUnit;
|
||||
|
||||
CoglTextureUnit *
|
||||
_cogl_get_texture_unit (int index_);
|
||||
void
|
||||
_cogl_destroy_texture_units (void);
|
||||
|
||||
#endif /* __COGL_INTERNAL_H */
|
||||
|
Reference in New Issue
Block a user