osg.Drawable¶
- class osg.Drawable¶
- Represents
c++ class
- Wraps
osg::Drawable
- Bases
Methods:
- :asGeometry()¶
-
- Тип результата
- :getOrCreateStateSet()¶
-
- Тип результата
- :getStateSet()¶
-
- Тип результата
- :setStateSet(osg.StateSet ss)¶
-
- Параметры
ss (
osg.StateSet) –
- :removeStateSet()¶
- :setUseDisplayList(bool b)¶
-
- Параметры
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.
- Тип результата
bool
- :setUseVertexBufferObjects(bool b)¶
-
- Параметры
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.
- Тип результата
bool
- :setUseVertexArrayObject(bool b)¶
Set whether to use a local VertexArrayObject for this Drawable.
- Параметры
b (
bool) –
- :getUseVertexArrayObject()¶
Return whether to use a local VertexArrayObject for this Drawable.
- Тип результата
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.
- Тип результата
unsigned
- :getNumParents()¶
-
- Тип результата
unsigned
- :getInitialBound()¶
Get the initial bounding volume to use when computing the overall bounding volume.
- Тип результата
- :setInitialBound(osg.BoundingBox bound)¶
Set the initial bounding volume to use when computing the overall bounding volume.
- Параметры
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().- Тип результата
- :computeBoundingBox()¶
Compute the bounding box around Drawables’s geometry.
- Тип результата