|
- #pragma once
- #include "app.hpp"
- #include <GL/glew.h>
- #include <GLFW/glfw3.h>
-
-
- namespace rack {
-
-
- extern GLFWwindow *gWindow;
- extern NVGcontext *gVg;
- extern std::shared_ptr<Font> gGuiFont;
- extern float gPixelRatio;
-
-
- void guiInit();
- void guiDestroy();
- void guiRun();
- void guiCursorLock();
- void guiCursorUnlock();
-
- inline bool guiIsModPressed() {
- #ifdef ARCH_MAC
- return glfwGetKey(gWindow, GLFW_KEY_LEFT_SUPER) == GLFW_PRESS || glfwGetKey(gWindow, GLFW_KEY_RIGHT_SUPER) == GLFW_PRESS;
- #else
- return glfwGetKey(gWindow, GLFW_KEY_LEFT_CONTROL) == GLFW_PRESS || glfwGetKey(gWindow, GLFW_KEY_RIGHT_CONTROL) == GLFW_PRESS;
- #endif
- }
-
- } // namespace rack
|