20 from ._ost_gfx
import *
25 requires a unique name not yet utilized in the Scene;
26 do not place OpenGL calls in the ctor, use InitGL for
29 GfxObj.__init__(self,name)
41 called once for each OpenGL context (usually one time),
42 allows one-time OpenGL initialization to be implemented,
43 such as vbo allocation
48 def _CustomPreRenderGL(self,rebuild):
49 if not self._valid_flag:
52 self.CustomPreRenderGL(rebuild)
54 self._valid_flag=
False
59 called just before CustomRenderGL is called; the flag
60 indicates that a rebuild is required or was requested
65 def _CustomRenderGL(self,render_pass):
66 if not self._valid_flag:
69 self.CustomRenderGL(render_pass)
71 self._valid_flag=
False
76 called for each scene refresh
main class for all graphic objects
def CustomRenderGL(self, render_pass)
def CustomPreRenderGL(self, rebuild)