1
0
Fork 0
mutter-performance-source/tests/conform
Neil Roberts 36f18e5ac5 cogl: Make CoglSubTexture only work for quad rendering
The sub texture backend doesn't work well as a completely general
texture backend because for example when rendering with cogl_polygon
it needs to be able to tranform arbitrary texture coordinates without
reference to the other coordintes. This can't be done when the texture
coordinates are a multiple of one because sometimes the coordinate
should represent the left or top edge and sometimes it should
represent the bottom or top edge. For example if the s coordinates are
0 and 1 then 1 represents the right edge but if they are 1 and 2 then
1 represents the left edge.

Instead the sub-textures are now documented not to support coordinates
outside the range [0,1]. The coordinates for the sub-region are now
represented as integers as this helps avoid rounding issues. The
region can no longer be a super-region of the texture as this
simplifies the code quite a lot.

There are two new texture virtual functions:

transform_quad_coords_to_gl - This transforms two pairs of coordinates
     representing a quad. It will return FALSE if the coordinates can
     not be transformed. The sub texture backend uses this to detect
     coordinates that require repeating which causes cogl-primitives
     to use manual repeating.

ensure_non_quad_rendering - This is used in cogl_polygon and
     cogl_vertex_buffer to inform the texture backend that
     transform_quad_to_gl is going to be used. The atlas backend
     migrates the texture out of the atlas when it hits this.
2010-01-18 09:22:04 +00:00
..
ADDING_NEW_TESTS * tests/conform/ADDING_NEW_TESTS 2008-11-10 18:52:50 +00:00
Makefile.am Merge branch 'master' into more-texture-backends 2010-01-15 12:15:46 +00:00
test-actor-destroy.c conform: Add test unit for the destruction of Containers 2009-12-18 23:34:25 +00:00
test-actor-invariants.c [tests] Add unit for Clone behaviour 2009-06-15 11:29:37 +01:00
test-actor-size.c [tests] Add preferred size conformance test unit 2009-09-15 11:27:50 +01:00
test-anchors.c Remove usage of Units and macros 2009-06-04 16:30:30 +01:00
test-binding-pool.c Remove usage of Units and macros 2009-06-04 16:30:30 +01:00
test-clutter-rectangle.c Disable single header inclusion for GLib 2009-06-15 11:29:37 +01:00
test-clutter-text.c [tests] Add unit for the ClutterText:password-char property 2009-01-06 15:30:31 +00:00
test-clutter-units.c units: Improve coverage of clutter_units_from_string() 2010-01-13 17:31:13 +00:00
test-cogl-backface-culling.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-blend-strings.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-fixed.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-materials.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-multitexture.c journal: Fixes logging of multiple sets of texture coordinates 2010-01-12 11:22:08 +00:00
test-cogl-npot-texture.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-offscreen.c cogl: deprecate cogl_draw_buffer API and replace with a cogl_framebuffer API 2009-11-26 19:33:14 +00:00
test-cogl-premult.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-readpixels.c cogl: deprecate cogl_draw_buffer API and replace with a cogl_framebuffer API 2009-11-26 19:33:14 +00:00
test-cogl-sub-texture.c cogl: Make CoglSubTexture only work for quad rendering 2010-01-18 09:22:04 +00:00
test-cogl-texture-mipmaps.c tests: Add a simple conformance test for texture mipmaps 2010-01-15 12:05:19 +00:00
test-cogl-vertex-buffer-contiguous.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-vertex-buffer-interleved.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-vertex-buffer-mutability.c tests: rename cogl conformance tests so they can be clearly identified 2009-11-27 00:28:39 +00:00
test-cogl-viewport.c cogl: deprecate cogl_draw_buffer API and replace with a cogl_framebuffer API 2009-11-26 19:33:14 +00:00
test-color.c conform: Add operators tests for ClutterColor 2010-01-14 14:07:04 +00:00
test-conform-common.c * tests/conform/ADDING_NEW_TESTS 2008-11-10 18:52:50 +00:00
test-conform-common.h tests: Allow getting data files from the tests/data directory 2009-11-04 11:47:09 +00:00
test-conform-main.c cogl: Make CoglSubTexture only work for quad rendering 2010-01-18 09:22:04 +00:00
test-group.c [tests] Add a Group actor unit 2009-08-25 17:57:22 +01:00
test-launcher.sh [tests] Ensure that test-launcher.sh is found for out of tree builds 2008-12-21 14:07:22 +00:00
test-model.c [tests] Exercise the Model filtering 2009-04-29 15:39:23 +01:00
test-paint-opacity.c Update the paint opacity unit test 2008-12-11 12:26:47 +00:00
test-path.c Merge branch 'cairo-texture' 2008-12-19 16:44:40 +00:00
test-pick.c Allow passing the pick mode to get_actor_at_pos() 2009-04-24 15:25:58 +01:00
test-script-parser.c conform: Add named object property unit for ClutterScript 2009-11-30 19:11:00 +00:00
test-text-cache.c Change the paint forcing on the Text cache text 2009-06-11 12:23:09 +01:00
test-texture-fbo.c [test-texture-fbo] comment the colors defined in corner_colors 2009-11-04 03:34:08 +00:00
test-timeline-interpolate.c Revert "[timeline] Don't clamp the elapsed time when a looping tl reaches the end" 2009-06-11 11:46:41 +01:00
test-timeline-rewind.c [tests] Don't add a newline to the end of g_test_message calls 2009-06-11 11:38:49 +01:00
test-timeline.c [test-timeline] Add a marker at the beginning of the timeline 2009-06-11 11:32:41 +01:00