diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-04 21:53:55 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-04 21:53:55 +0000 |
commit | 8085395acc28d8c77901615f8862ceeda5773b09 (patch) | |
tree | c8261638a486191a3c2cea1ed91590f8104878c7 /tests/gl.c | |
parent | d3ad0b6a25146318d153ecd6c792e41a9a0a6025 (diff) | |
download | dimension-8085395acc28d8c77901615f8862ceeda5773b09.tar.xz |
New interface for optimizing canvas conversions by registering
dmnsn_set_pixel() callbacks.
Diffstat (limited to 'tests/gl.c')
-rw-r--r-- | tests/gl.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -40,6 +40,12 @@ main() { return EXIT_FAILURE; } + if (dmnsn_gl_optimize_canvas(scene->canvas) != 0) { + dmnsn_delete_default_scene(scene); + fprintf(stderr, "--- Couldn't optimize canvas for GL! ---\n"); + return EXIT_FAILURE; + } + dmnsn_array_get(scene->objects, 0, &sphere); dmnsn_array_get(scene->objects, 1, &cube); trans = dmnsn_get_perspective_camera_trans(scene->camera); |