3 #include <pybind11/embed.h>
4 #include <pybind11/pybind11.h>
5 #include <pybind11/stl.h>
9 namespace py = pybind11;
16 const std::string
MODULE =
"src.python.shkyera.";
void stop()
Stop the Python interpreter and finalize the Python environment.
Definition: Interpreter.cpp:149
void start()
Start the Python interpreter and initialize the Python environment.
Definition: Interpreter.cpp:135
void resetPressedButtons()
Resets the set of pressed buttons by the user.
Definition: Interpreter.cpp:153
bool isRunning()
Check if the Python environment is running.
Definition: Interpreter.cpp:151
const std::string MODULE
The Python module prefix for shkyera.
Definition: Interpreter.hpp:16
void allowRunning()
Allow the Python environment to run.
Definition: Interpreter.cpp:143
void setInterpreterRenderer(std::shared_ptr< Renderer > renderer)
Set the renderer to use for the Python interpreter.
Definition: Interpreter.cpp:31
void addPressedButton(std::string key)
Add the pressed key to the set, so that the user can interact with it from Python script.
Definition: Interpreter.cpp:159