Inherits ost::gfx::GfxObj.
Public Member Functions | |
def | __init__ |
def | InitGL |
def | CustomPreRenderGL |
def | CustomRenderGL |
Definition at line 22 of file py_gfx_obj.py.
def __init__ | ( | self, | ||
name | ||||
) |
requires a unique name not yet utilized in the Scene; do not place OpenGL calls in the ctor, use InitGL for that purpose
Definition at line 23 of file py_gfx_obj.py.
def CustomPreRenderGL | ( | self, | ||
rebuild | ||||
) |
called just before CustomRenderGL is called; the flag indicates that a rebuild is required or was requested
Definition at line 57 of file py_gfx_obj.py.
def CustomRenderGL | ( | self, | ||
render_pass | ||||
) |
called for each scene refresh
Definition at line 74 of file py_gfx_obj.py.
def InitGL | ( | self | ) |
called once for each OpenGL context (usually one time), allows one-time OpenGL initialization to be implemented, such as vbo allocation
Definition at line 39 of file py_gfx_obj.py.