Add ImGui in Debug Mode,

improvement of input handling
This commit is contained in:
4VRDriver
2020-09-10 15:51:12 +02:00
parent 650c814e20
commit 146392ae22
30 changed files with 41008 additions and 61 deletions

View File

@@ -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;
};