You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
- #include "app.hpp"
- #include <GL/glew.h>
- #include <GLFW/glfw3.h>
-
-
- #ifdef ARCH_MAC
- #define GUI_MOD_KEY_NAME "Cmd"
- #else
- #define GUI_MOD_KEY_NAME "Ctrl"
- #endif
-
-
- namespace rack {
-
-
- extern GLFWwindow *gWindow;
- extern NVGcontext *gVg;
- extern NVGcontext *gFramebufferVg;
- extern std::shared_ptr<Font> gGuiFont;
- extern float gPixelRatio;
- extern bool gAllowCursorLock;
- extern int gGuiFrame;
- extern Vec gMousePos;
-
-
- void guiInit();
- void guiDestroy();
- void guiRun();
- void guiClose();
- void guiCursorLock();
- void guiCursorUnlock();
- bool guiIsModPressed();
- bool guiIsShiftPressed();
- Vec guiGetWindowSize();
- void guiSetWindowSize(Vec size);
- Vec guiGetWindowPos();
- void guiSetWindowPos(Vec pos);
- bool guiIsMaximized();
-
-
- } // namespace rack
|