def graphics_engine(): from panda3d.core import GraphicsEngine engine = GraphicsEngine.get_global_ptr() yield engine # This causes GraphicsEngine to also terminate the render threads. engine.remove_all_windows()
def graphics_engine(): from panda3d.core import GraphicsEngine engine = GraphicsEngine.get_global_ptr() yield engine # This causes GraphicsEngine to also terminate the render threads. engine.remove_all_windows()
def __init__(self, frame_size: tuple, fb_props: FrameBufferProperties): self._window = None # make default graphics pipe pipe = GraphicsPipeSelection.get_global_ptr().make_default_pipe() if pipe is None or not pipe.is_valid(): raise RuntimeError("GraphicsPipe is invalid") self._pipe = pipe self._engine = GraphicsEngine.get_global_ptr() self._fb_props = fb_props if frame_size is not None: self._configure_window(frame_size)
def graphics_engine(scope='session'): from panda3d.core import GraphicsEngine engine = GraphicsEngine.get_global_ptr() yield engine
def graphics_engine(): from panda3d.core import GraphicsEngine engine = GraphicsEngine.get_global_ptr() yield engine