souleng
Game engine providing full Python scripting support
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ScriptedScene Struct Reference

C++ container for the Python logic that runs a scene. More...

#include <ScriptedScene.hpp>

Public Member Functions

 ScriptedScene (pybind11::module_ scene)
 
void StartUp ()
 Called when a scene is first made active.
 
void Shutdown ()
 Called when a scene is made inactive.
 
void Input ()
 Called once per frame to handle any input.
 
void Update (float dt)
 
void Render ()
 Called once per frame to render objects to the screen.
 

Detailed Description

C++ container for the Python logic that runs a scene.

Constructor & Destructor Documentation

◆ ScriptedScene()

ScriptedScene::ScriptedScene ( pybind11::module_ scene)

Initializes a scene

Parameters
sceneThe Python module for the script containing the scene's logic

Member Function Documentation

◆ Update()

void ScriptedScene::Update ( float dt)

Called once per frame to handle timing specific logic

Parameters
dtThe tick rate of the game, in seconds

The documentation for this struct was generated from the following files: