summaryrefslogtreecommitdiff
path: root/tests/conform/test-point-sprite.c
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2013-06-23 16:18:18 +0100
committerRobert Bragg <robert@linux.intel.com>2013-12-02 15:34:07 +0000
commit7de8b354b2f616886d97be5397d2df9dc2abb437 (patch)
treececa9ed260f680a33e5c7b7074b230e5c20001c0 /tests/conform/test-point-sprite.c
parent8e315fb18137eab8dd8d926ec6bbef081942adac (diff)
downloadcogl-7de8b354b2f616886d97be5397d2df9dc2abb437.tar.gz
introduce texture loaders to make allocations lazy
This introduces the internal idea of texture loaders that track the state for loading and allocating a texture. This defers a lot more work until the texture is allocated. There are several intentions to this change: - provides a means for extending how textures are allocated without requiring all the parameters to be supplied in a single _texture_new() function call. - allow us to remove the internal_format argument from all _texture_new() apis since using CoglPixelFormat is bad way of expressing the internal format constraints because it is too specific. For now the internal_format arguments haven't actually been removed but this patch does introduce replacement apis for controlling the internal format: cogl_texture_set_components() lets you specify what components your texture needs when it is allocated. cogl_texture_set_premultiplied() lets you specify whether a texture data should be interpreted as premultiplied or not. - Enable us to support asynchronous texture loading + allocation in the future. Of note, the _new_from_data() texture constructors all continue to allocate textures immediately so that existing code doesn't need to be adapted to manage the lifetime of the data being uploaded.
Diffstat (limited to 'tests/conform/test-point-sprite.c')
0 files changed, 0 insertions, 0 deletions