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.

35 lines
520B

  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 MOD_KEY_NAME "Cmd"
  8. #else
  9. #define MOD_KEY_NAME "Ctrl"
  10. #endif
  11. extern GLFWwindow *gWindow;
  12. extern NVGcontext *gVg;
  13. extern std::shared_ptr<Font> gGuiFont;
  14. extern float gPixelRatio;
  15. extern bool gAllowCursorLock;
  16. void guiInit();
  17. void guiDestroy();
  18. void guiRun();
  19. void guiClose();
  20. void guiCursorLock();
  21. void guiCursorUnlock();
  22. bool guiIsModPressed();
  23. bool guiIsShiftPressed();
  24. } // namespace rack