souleng
Game engine providing full Python scripting support
Loading...
Searching...
No Matches
ScriptedScene.hpp
1#pragma once
2
3#include <pybind11/pybind11.h>
4
9 ScriptedScene(pybind11::module_ scene);
11
13 void StartUp();
14
16 void Shutdown();
17
19 void Input();
20
23 void Update(float dt);
24
26 void Render();
27
28private:
29 bool mActive{false};
30 pybind11::module_ mScene;
31};
C++ container for the Python logic that runs a scene.
Definition ScriptedScene.hpp:6
void Update(float dt)
Definition ScriptedScene.cpp:28
void Render()
Called once per frame to render objects to the screen.
Definition ScriptedScene.cpp:30
ScriptedScene(pybind11::module_ scene)
Definition ScriptedScene.cpp:10
void Shutdown()
Called when a scene is made inactive.
Definition ScriptedScene.cpp:24
void StartUp()
Called when a scene is first made active.
Definition ScriptedScene.cpp:22
void Input()
Called once per frame to handle any input.
Definition ScriptedScene.cpp:26