ea643ca0f8
Multitexturing allows blending multiple layers of texture data when texturing some geometry. A common use is for pre-baked light maps which can give nice lighting effects relativly cheaply. Another is for dot-3 bump mapping, and another is applying alpha channel masks. The dot-3 bump mapping would be really nice one day, but currently cogl doesn't support lighting so that's not dealt with in this patch. notable limitations: - It can only texture rectangles a.t.m - and like cogl_texture_rectangle there is no support for rotated texturing. - Sliced textures are not supported. I think I've figured out how to handle layers with different slice sizes at least for rectangular geometry, but I'm not sure how complex it becomes once rotations are possible and texturing arbitrary cogl_polygons. - Except for this new API, cogl still doesn't know about more than one texture unit, and so has no way of caching any enables related to other units. So that things don't break it's currently necessary to disable anything to do with additional units as soon as we are done with them which isn't ideal. - No clutter API yet. |
||
---|---|---|
.. | ||
cogl-bitmap-fallback.c | ||
cogl-bitmap-pixbuf.c | ||
cogl-bitmap.c | ||
cogl-bitmap.h | ||
cogl-clip-stack.c | ||
cogl-clip-stack.h | ||
cogl-color.c | ||
cogl-fixed.c | ||
cogl-handle.h | ||
cogl-mesh-private.h | ||
cogl-mesh.c | ||
cogl-primitives.c | ||
cogl-primitives.h | ||
cogl-util.c | ||
cogl-util.h | ||
Makefile.am | ||
stb_image.c |