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.

38 lines
607B

  1. #pragma once
  2. #include "app.hpp"
  3. #include <GL/glew.h>
  4. #include <GLFW/glfw3.h>
  5. namespace rack {
  6. #ifdef ARCH_MAC
  7. #define GUI_MOD_KEY_NAME "Cmd"
  8. #else
  9. #define GUI_MOD_KEY_NAME "Ctrl"
  10. #endif
  11. extern GLFWwindow *gWindow;
  12. extern NVGcontext *gVg;
  13. extern NVGcontext *gFramebufferVg;
  14. extern std::shared_ptr<Font> gGuiFont;
  15. extern float gPixelRatio;
  16. extern bool gAllowCursorLock;
  17. extern int gGuiFrame;
  18. extern Vec gMousePos;
  19. void guiInit();
  20. void guiDestroy();
  21. void guiRun();
  22. void guiClose();
  23. void guiCursorLock();
  24. void guiCursorUnlock();
  25. bool guiIsModPressed();
  26. bool guiIsShiftPressed();
  27. } // namespace rack