simvx.editor.game_render_hook¶
Offscreen render hook for the editor’s game viewport.
Wires into the engine’s pre_render_callback so that the play-mode game
scene (and edit-mode textured viewports) are rendered into offscreen targets
before the editor’s own draw pass. Composed by :class:Root.
Module Contents¶
Classes¶
Renders the play-mode game scene into an offscreen viewport. |
API¶
- class simvx.editor.game_render_hook.GameRenderHook(state: simvx.editor.state.State, play_mode: simvx.editor.play_mode.PlayMode)[source]¶
Renders the play-mode game scene into an offscreen viewport.
Owns the engine
pre_renderchaining and the lifecycle of the game viewport target (created on play, destroyed on stop). Reads the editor viewport rects to size the offscreen target.Initialization