mutter/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
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
test-actor-size.c
test-anchors.c
test-binding-pool.c
test-clutter-rectangle.c
test-clutter-text.c
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
test-launcher.sh
test-model.c [tests] Exercise the Model filtering 2009-04-29 15:39:23 +01:00
test-paint-opacity.c
test-path.c Merge branch 'cairo-texture' 2008-12-19 16:44:40 +00:00
test-pick.c
test-script-parser.c conform: Add named object property unit for ClutterScript 2009-11-30 19:11:00 +00:00
test-text-cache.c
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
test-timeline-rewind.c
test-timeline.c