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

rendering python to individual windows

This commit is contained in:
milek7
2018-10-25 18:07:43 +02:00
parent 9f5a88a2fc
commit fbcd933d56
8 changed files with 137 additions and 5 deletions

22
texturewindow.h Normal file
View File

@@ -0,0 +1,22 @@
#include "renderer.h"
#include <GLFW/glfw3.h>
class texture_window
{
GLFWwindow *m_window;
GLuint m_source;
std::shared_ptr<std::thread> m_renderthread;
bool m_exit = false;
int m_win_w = 500, m_win_h = 500;
int m_tex_w = 0, m_tex_h = 0;
void threadfunc();
public:
texture_window(texture_handle src);
~texture_window();
void notify_window_size(int w, int h);
};