33 lines
508 B
C++
33 lines
508 B
C++
#ifdef WINDOW_GLFW
|
|
#undef WINDOW_GLFW
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
namespace Archimedes {
|
|
|
|
class WindowGLFW {
|
|
|
|
public:
|
|
|
|
WindowGLFW();
|
|
~WindowGLFW();
|
|
|
|
bool shouldClose();
|
|
|
|
void doFrame() { glfwSwapBuffers(w); }
|
|
|
|
void pollEvents() { glfwPollEvents(); }
|
|
|
|
void getSize(int&, int&);
|
|
|
|
GLFWwindow* getWindow() { return w; }
|
|
|
|
private:
|
|
GLFWwindow* w;
|
|
};
|
|
|
|
typedef WindowGLFW WindowImpl;
|
|
}
|
|
|
|
#endif
|