mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
af7398788a
Texture allocation is now consistently handled lazily such that the internal format can now be controlled using cogl_texture_set_components() and cogl_texture_set_premultiplied() before allocating the texture with cogl_texture_allocate(). This means that the internal_format arguments to texture constructors are now redundant and since most of the texture constructors now can't ever fail the error arguments are also redundant. This now means we no longer use CoglPixelFormat in the public api for describing the internal format of textures which had been bad solution originally due to how specific CoglPixelFormat is which is missleading when we don't support such explicit control over the internal format. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 99a53c82e9ab0a1e5ee35941bf83dc334b1fbe87) Note: there are numerous API changes for functions currently marked as 'unstable' which we don't think are in use by anyone depending on a stable 1.x api. Compared to the original patch though this avoids changing the cogl_texture_rectangle_new_with_size() api which we know is used by Mutter. |
||
---|---|---|
.. | ||
cogl-auto-texture.c | ||
cogl-clip-state.c | ||
cogl-clip-state.h | ||
cogl-clutter-xlib.h | ||
cogl-clutter.c | ||
cogl-clutter.h | ||
cogl-fixed.c | ||
cogl-fixed.h | ||
cogl-framebuffer-deprecated.c | ||
cogl-framebuffer-deprecated.h | ||
cogl-material-compat.c | ||
cogl-material-compat.h | ||
cogl-program-private.h | ||
cogl-program.c | ||
cogl-shader-private.h | ||
cogl-shader.c | ||
cogl-shader.h | ||
cogl-texture-deprecated.c | ||
cogl-texture-deprecated.h | ||
cogl-type-casts.h | ||
cogl-vertex-buffer-private.h | ||
cogl-vertex-buffer.c | ||
cogl-vertex-buffer.h |