mutter/cogl/driver/gles
Neil Roberts a05c701e6b cogl: upload matrices with uniforms on GLES2
Once the GLES2 wrapper is removed we won't be able to upload the
matrices with the fixed function API any more. The fixed function API
gives a global state for setting the matrix but if a custom shader
uniform is used for the matrices then the state is per
program. _cogl_matrix_stack_flush_to_gl is called in a few places and
it is assumed the current pipeline doesn't need to be flushed before
it is called. To allow these semantics to continue to work, on GLES2
the matrix flush now just stores a reference to the matrix stack in
the CoglContext. A pre_paint virtual is added to the progend which is
called whenever a pipeline is flushed, even if the same pipeline was
flushed already. This gives the GLSL progend a chance to upload the
matrices to the uniforms. The combined modelview/projection matrix is
only calculated if it is used. The generated programs end up never
using the modelview or projection matrix so it usually only has to
upload the combined matrix. When a matrix stack is flushed a reference
is taked to it by the pipeline progend and the age is stored so that
if the same state is used with the same program again then we don't
need to reupload the uniform.
2010-12-13 17:29:13 +00:00
..
cogl-context-driver-gles.c build: Start moving to a non-recursive layout 2010-09-29 14:40:15 +01:00
cogl-context-driver-gles.h build: Start moving to a non-recursive layout 2010-09-29 14:40:15 +01:00
cogl-feature-functions-gles.h build: Start moving to a non-recursive layout 2010-09-29 14:40:15 +01:00
cogl-fixed-vertex-shader.glsl cogl-shader: Prepend boilerplate for portable shaders 2010-11-10 14:24:52 +00:00
cogl-gles2-wrapper.c cogl: upload matrices with uniforms on GLES2 2010-12-13 17:29:13 +00:00
cogl-gles2-wrapper.h Remove the fragment shader generation from the GLES2 wrapper 2010-11-24 18:06:44 +00:00
cogl-gles.c cogl-context: Get rid of the features_cached member 2010-11-24 18:39:07 +00:00
cogl-texture-driver-gles.c cogl-texture-driver-gles: Fix image height for uploading 3D textures 2010-11-23 14:12:17 +00:00