OpenGLContext.scenegraph.nodepath
node-path implementation for OpenGLContext
Classes
OpenGLContext-specific node-path class
At the moment this only adds a single method,
transform() which traverses the path, calling
transform() for each Transforming node which
has a transform method.
transform(
self
,
mode
= None
,
translate
= 1
,
scale
= 1
,
rotate
= 1
)
For each Transforming node, do OpenGL transform
Does _not_ push-pop matrices, so do that before
if you want to save your current matrix. This method
is useful primarily for storing paths to, for instance,
bindable nodes, where you want to be able to rapidly
transform down to the node, without needing a full
traversal of the scenegraph.