54d8aadf1d
The texture filters are now a property of the material layer rather than the texture object. Whenever a texture is painted with a material it sets the filters on all of the GL textures in the Cogl texture. The filter is cached so that it won't be changed unnecessarily. The automatic mipmap generation has changed so that the mipmaps are only generated when the texture is painted instead of every time the data changes. Changing the texture sets a flag to mark that the mipmaps are dirty. This works better if the FBO extension is available because we can use glGenerateMipmap. If the extension is not available it will temporarily enable automatic mipmap generation and reupload the first pixel of each slice. This requires tracking the data for the first pixel. The COGL_TEXTURE_AUTO_MIPMAP flag has been replaced with COGL_TEXTURE_NO_AUTO_MIPMAP so that it will default to auto-mipmapping. The mipmap generation is now effectively free if you are not using a mipmap filter mode so you would only want to disable it if you had some special reason to generate your own mipmaps. ClutterTexture no longer has to store its own copy of the filter mode. Instead it stores it in the material and the property is directly set and read from that. This fixes problems with the filters getting out of sync when a cogl handle is set on the texture directly. It also avoids the mess of having to rerealize the texture if the filter quality changes to HIGH because Cogl will take of generating the mipmaps if needed. |
||
---|---|---|
.. | ||
Makefile.am | ||
test-actor-clone.c | ||
test-actors.c | ||
test-animation.c | ||
test-behave.c | ||
test-binding-pool.c | ||
test-clip.c | ||
test-clutter-cairo-flowers.c | ||
test-cogl-multitexture.c | ||
test-cogl-offscreen.c | ||
test-cogl-primitives.c | ||
test-cogl-tex-convert.c | ||
test-cogl-tex-foreign.c | ||
test-cogl-tex-getset.c | ||
test-cogl-tex-polygon.c | ||
test-cogl-tex-tile.c | ||
test-cogl-vertex-buffer.c | ||
test-depth.c | ||
test-devices.c | ||
test-easing.c | ||
test-entry.c | ||
test-events.c | ||
test-fbo.c | ||
test-fullscreen.c | ||
test-grab.c | ||
test-layout.c | ||
test-main.c | ||
test-model.c | ||
test-multistage.c | ||
test-offscreen.c | ||
test-paint-wrapper.c | ||
test-perspective.c | ||
test-pixmap.c | ||
test-project.c | ||
test-random-text.c | ||
test-rotate.c | ||
test-scale.c | ||
test-score.c | ||
test-script.c | ||
test-shader.c | ||
test-stage-read-pixels.c | ||
test-text-field.c | ||
test-text.c | ||
test-texture-async.c | ||
test-texture-quality.c | ||
test-textures.c | ||
test-threads.c | ||
test-unproject.c | ||
test-viewport.c | ||
wrapper.sh |