Audio plugin host https://kx.studio/carla
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.

80 lines
1.7KB

  1. /*
  2. * DISTRHO Plugin Toolkit (DPT)
  3. * Copyright (C) 2012-2013 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * For a full copy of the license see the LGPL.txt file
  15. */
  16. #ifndef __DGL_BASE_HPP__
  17. #define __DGL_BASE_HPP__
  18. #include "../src/DistrhoDefines.h"
  19. #if DISTRHO_OS_MAC
  20. # include <OpenGL/glu.h>
  21. #else
  22. # include <GL/glu.h>
  23. #endif
  24. #if defined(GL_BGR_EXT) && ! defined(GL_BGR)
  25. # define GL_BGR GL_BGR_EXT
  26. #endif
  27. #if defined(GL_BGRA_EXT) && ! defined(GL_BGRA)
  28. # define GL_BGRA GL_BGRA_EXT
  29. #endif
  30. // -------------------------------------------------
  31. enum Char {
  32. CHAR_BACKSPACE = 0x08,
  33. CHAR_ESCAPE = 0x1B,
  34. CHAR_DELETE = 0x7F
  35. };
  36. enum Key {
  37. KEY_F1 = 1,
  38. KEY_F2,
  39. KEY_F3,
  40. KEY_F4,
  41. KEY_F5,
  42. KEY_F6,
  43. KEY_F7,
  44. KEY_F8,
  45. KEY_F9,
  46. KEY_F10,
  47. KEY_F11,
  48. KEY_F12,
  49. KEY_LEFT,
  50. KEY_UP,
  51. KEY_RIGHT,
  52. KEY_DOWN,
  53. KEY_PAGE_UP,
  54. KEY_PAGE_DOWN,
  55. KEY_HOME,
  56. KEY_END,
  57. KEY_INSERT,
  58. KEY_SHIFT,
  59. KEY_CTRL,
  60. KEY_ALT,
  61. KEY_SUPER
  62. };
  63. enum Modifier {
  64. MODIFIER_SHIFT = 1 << 0, /**< Shift key */
  65. MODIFIER_CTRL = 1 << 1, /**< Control key */
  66. MODIFIER_ALT = 1 << 2, /**< Alt/Option key */
  67. MODIFIER_SUPER = 1 << 3 /**< Mod4/Command/Windows key */
  68. };
  69. #endif // __DGL_BASE_HPP__