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.

40 lines
1.4KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021 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 General Public License as
  7. * published by the Free Software Foundation; either version 3 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the LICENSE file.
  16. */
  17. #pragma once
  18. #ifdef HEADLESS
  19. # define GL_COLOR_BUFFER_BIT 0
  20. # define GL_DEPTH_BUFFER_BIT 0
  21. # define GL_STENCIL_BUFFER_BIT 0
  22. # define GL_PROJECTION 0
  23. # define GL_TRIANGLES 0
  24. static inline void glBegin(int) {}
  25. static inline void glEnd() {}
  26. static inline void glColor3f(float, float, float) {}
  27. static inline void glVertex3f(float, float, float) {}
  28. static inline void glClear(int) {}
  29. static inline void glClearColor(double, double, double, double) {}
  30. static inline void glLoadIdentity() {}
  31. static inline void glMatrixMode(int) {}
  32. static inline void glOrtho(double, double, double, double, double, double) {}
  33. static inline void glViewport(double, double, double, double) {}
  34. typedef unsigned int GLuint;
  35. #else
  36. # include_next <OpenGL/gl.h>
  37. #endif