Shkyera Engine
Easy to use, game engine for Python
Interpreter.hpp File Reference
#include <pybind11/embed.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "renderer/Renderer.hpp"
Include dependency graph for Interpreter.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 shkyera
 
 shkyera::Python
 

Functions

void shkyera::Python::start ()
 Start the Python interpreter and initialize the Python environment. More...
 
void shkyera::Python::stop ()
 Stop the Python interpreter and finalize the Python environment. More...
 
void shkyera::Python::resetPressedButtons ()
 Resets the set of pressed buttons by the user. More...
 
void shkyera::Python::addPressedButton (std::string key)
 Add the pressed key to the set, so that the user can interact with it from Python script. More...
 
void shkyera::Python::allowRunning ()
 Allow the Python environment to run. More...
 
bool shkyera::Python::isRunning ()
 Check if the Python environment is running. More...
 
void shkyera::Python::setInterpreterRenderer (std::shared_ptr< Renderer > renderer)
 Set the renderer to use for the Python interpreter. More...
 

Variables

const std::string shkyera::Python::MODULE = "src.python.shkyera."
 The Python module prefix for shkyera. More...