41579eb3c9
cogl_texture_new_from_data lets you specify a source format for the users given data, and an internal format which the user wants the GPU to see. This unit test verifies that the users data is premultiplied, un-premultiplied or left alone for a number of (source format, internal format) pairs. cogl_texture_set_region allows specifying a source format, and the internal format is determined from the texture being updated. As above we test a number of format pairs and check Cogl is converting data correctly. The test verifies that if the user allows COGL_FORMAT_ANY for the internal_format then by default Cogl will choose a premultipled format for RGBA textures. Note: Currently this only tests cogl_texture_new_from_data and cogl_texture_set_region, we should also test cogl_texture_new_from_file, cogl_texture_new_from_bitmap and cogl_texture_new_from_foreign. |
||
---|---|---|
.. | ||
ADDING_NEW_TESTS | ||
Makefile.am | ||
test-actor-invariants.c | ||
test-anchors.c | ||
test-backface-culling.c | ||
test-binding-pool.c | ||
test-blend-strings.c | ||
test-clutter-fixed.c | ||
test-clutter-rectangle.c | ||
test-clutter-text.c | ||
test-clutter-units.c | ||
test-color.c | ||
test-conform-common.c | ||
test-conform-common.h | ||
test-conform-main.c | ||
test-launcher.sh | ||
test-model.c | ||
test-npot-texture.c | ||
test-paint-opacity.c | ||
test-path.c | ||
test-pick.c | ||
test-premult.c | ||
test-text-cache.c | ||
test-timeline-interpolate.c | ||
test-timeline-rewind.c | ||
test-timeline.c | ||
test-vertex-buffer-contiguous.c | ||
test-vertex-buffer-interleved.c | ||
test-vertex-buffer-mutability.c |