Added new osgcallback demo, and updated small API changes to improve the
flexiblity of callbacks. Added beginings of convex planer occlusions culling.
This commit is contained in:
@@ -103,7 +103,12 @@ void Drawable::compile(State& state)
|
||||
|
||||
globj = glGenLists( 1 );
|
||||
glNewList( globj, GL_COMPILE );
|
||||
drawImmediateMode(state);
|
||||
|
||||
if (_drawCallback.valid())
|
||||
_drawCallback->drawImmediateMode(state,this);
|
||||
else
|
||||
drawImmediateMode(state);
|
||||
|
||||
glEndList();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user