]> Pileus Git - grits/commit
Allow disabling operations in grits_object_draw
authorAndy Spencer <andy753421@gmail.com>
Sat, 22 Jan 2011 20:13:05 +0000 (20:13 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 22 Jan 2011 20:24:04 +0000 (20:24 +0000)
commit3ea7566fadf5490c46e04cb3a2a6cc8e02ac05e6
tree94d6b7642751781d7ce9936025cf96c0d60cee8a
parentf753ec2d6f1e9ae40a650d4cda0d188d6a5f1be0
Allow disabling operations in grits_object_draw

Objects now include a GRITS_SKIP_* bitmask used for disabling various
operations in grits_object_draw. The default is to perform all tests and
operations, however some of these are expensive. Objects which do not
need some operations or take care of it themselves can disable the tests
in grits_object_draw to save processing time.

For instance, saving the OpenGL state can be quite costly for simple
objects.
src/objects/grits-object.c
src/objects/grits-object.h