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:
10
PyInt.h
10
PyInt.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user