16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 03:19:19 +02:00

Add returnable python commands

requires modified abstractscreenrenderer
This commit is contained in:
2025-01-08 02:19:22 +01:00
parent bb2894d86c
commit 9b6b941d30
4 changed files with 427 additions and 1 deletions

10
PyInt.h
View File

@@ -130,7 +130,8 @@ private:
auto fetch_renderer( std::string const Renderer ) -> PyObject *;
void run(GLFWwindow *Context, rendertask_sequence &Tasks, uploadtask_sequence &Upload_Tasks, threading::condition_variable &Condition, std::atomic<bool> &Exit );
void error();
// members
// members
PyObject *m_main { nullptr };
PyObject *m_stderr { nullptr };
PyThreadState *m_mainthread{ nullptr };
@@ -143,4 +144,11 @@ private:
bool m_initialized { false };
};
class python_external_utils
{
public:
static std::vector<std::string> PyObjectToStringArray(PyObject *pyList);
};
#endif