Shkyera Engine
Easy to use, game engine for Python
|
Contains the declarations for Python interaction functions and event handling. More...
#include <pybind11/embed.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "renderer/Renderer.hpp"
Go to the source code of this file.
Namespaces | |
shkyera | |
shkyera::Python | |
Enumerations | |
enum | shkyera::Python::Event : int { shkyera::Python::LOG_INFO , shkyera::Python::LOG_ERROR , shkyera::Python::LOG_SUCCESS , shkyera::Python::LOG_VERBOSE , shkyera::Python::DRAW_LINE , shkyera::Python::DRAW_CIRCLE , shkyera::Python::DRAW_RECTANGLE , shkyera::Python::DRAW_CLEAR , shkyera::Python::TOTAL_EVENTS } |
Enum representing different types of events that can be processed in Python. More... | |
Functions | |
template<typename T > | |
std::vector< T > | shkyera::Python::parsePayload (py::list payload) |
Template function to parse a payload from a Python list into a C++ vector. More... | |
template<Event event> | |
void | shkyera::Python::processEvent (py::list payload) |
Function to process an event of a specific type. More... | |
void | shkyera::Python::setRenderer (std::shared_ptr< Renderer > renderer) |
Set the renderer to be used for drawing in Python. More... | |
Contains the declarations for Python interaction functions and event handling.