Add ImGui in Debug Mode,
improvement of input handling
This commit is contained in:
11
src/Window.h
11
src/Window.h
@@ -14,18 +14,25 @@ public:
|
||||
int getWindowWidth() { return width; }
|
||||
int getWindowHeight() { return height; }
|
||||
|
||||
// Beware: side effect!
|
||||
bool getMouseIsCatched() { return mouseCatched; }
|
||||
|
||||
// side effect!
|
||||
bool checkWindowWasResized();
|
||||
|
||||
void handleActionRegister(bool *windowActionRegister);
|
||||
|
||||
private:
|
||||
static void framebuffer_size_callback(GLFWwindow* window, int width, int height);
|
||||
static void openGLDebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam);
|
||||
|
||||
void setGrabbedCursor(bool value);
|
||||
void setCatchedCursor(bool value);
|
||||
|
||||
GLFWwindow *window;
|
||||
|
||||
int posX, posY;
|
||||
int width, height;
|
||||
|
||||
bool mouseCatched = true;
|
||||
bool wireFrameMode = false;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user