osg.Drawable¶
-
class
osg.Drawable¶ Represents: c++ class Wraps: osg::Drawable Bases: osg.NodeMethods:
-
:
asGeometry()¶ -
Return type: osg.Geometry
-
:
getOrCreateStateSet()¶ -
Return type: osg.StateSet
-
:
getStateSet()¶ -
Return type: osg.StateSet
-
:
setStateSet(osg.StateSet ss)¶ -
Parameters: ss ( osg.StateSet) –
-
:
removeStateSet()¶
-
:
setUseDisplayList(bool b)¶ -
Parameters: b ( bool) – When set totrue, force the draw method to use OpenGL Display List for rendering. Iffalse, rendering directly. If the display list has not been compiled already, the next call to draw will automatically create the display list.
-
:
getUseDisplayList()¶ Return whether OpenGL display lists are being used for rendering.
Return type: bool
-
:
setUseVertexBufferObjects(bool b)¶ -
Parameters: b ( bool) – When set totrue, ignore theosg.Drawable.setUseDisplayList()settings, and hints to thedrawImplementation()method to use OpenGL vertex buffer objects for rendering.
-
:
getUseVertexBufferObjects()¶ Return whether OpenGL vertex buffer objects should be used when supported by OpenGL driver.
Return type: bool
-
:
setUseVertexArrayObject(bool b)¶ Set whether to use a local VertexArrayObject for this Drawable.
Parameters: b ( bool) –
-
:
getUseVertexArrayObject()¶ Return whether to use a local VertexArrayObject for this Drawable.
Return type: bool
-
:
dirtyDisplayList()¶ Deprecated, use
osg.Drawable.dirtyGLObjects()instead.
-
:
dirtyGLObjects()¶ Force a recompile on next
osg.Drawable.draw()of any OpenGL objects associated with this geoset.
-
:
getGLObjectSizeHint()¶ Return the estimated size of GLObjects (display lists/vertex buffer objects) that are associated with this drawable. This size is used a hint for reuse of deleted display lists/vertex buffer objects.
Return type: unsigned
-
:
getNumParents()¶ -
Return type: unsigned
-
:
getInitialBound()¶ Get the initial bounding volume to use when computing the overall bounding volume.
Return type: osg.BoundingBox
-
:
setInitialBound(osg.BoundingBox bound)¶ Set the initial bounding volume to use when computing the overall bounding volume.
Parameters: bound ( osg.BoundingBox) –
-
:
getBoundingBox()¶ Get BoundingBox of Drawable. If the BoundingBox is not up to date then its updated via an internal call to
osg.Drawable.computeBound().Return type: osg.BoundingBox
-
:
computeBoundingBox()¶ Compute the bounding box around Drawables’s geometry.
Return type: osg.BoundingBox
-
: