Files
maszyna/texturewindow.h
2019-02-21 18:29:16 +01:00

24 lines
429 B
C++

#include "renderer.h"
#include <GLFW/glfw3.h>
class texture_window
{
GLFWwindow *m_window;
GLuint m_source;
std::shared_ptr<std::thread> m_renderthread;
GLFWmonitor *monitor = nullptr;
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, std::string name);
~texture_window();
void notify_window_size(int w, int h);
};