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.

pugl_x11.h 1.3KB

12 years ago
12 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. Copyright 2012 David Robillard <http://drobilla.net>
  3. Copyright 2011-2012 Ben Loftis, Harrison Consoles
  4. Permission to use, copy, modify, and/or distribute this software for any
  5. purpose with or without fee is hereby granted, provided that the above
  6. copyright notice and this permission notice appear in all copies.
  7. THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. */
  15. /**
  16. @file pugl_x11.h X11 Pugl Implementation (PuglInternalsImpl only).
  17. */
  18. #ifndef PUGL_X11_H_INCLUDED
  19. #define PUGL_X11_H_INCLUDED
  20. #include "pugl.h"
  21. #include <GL/gl.h>
  22. #include <GL/glx.h>
  23. #include <X11/Xatom.h>
  24. #include <X11/Xlib.h>
  25. #include <X11/keysym.h>
  26. struct PuglInternalsImpl {
  27. Display* display;
  28. int screen;
  29. Window win;
  30. GLXContext ctx;
  31. Bool doubleBuffered;
  32. };
  33. typedef struct PuglInternalsImpl PuglInternals;
  34. PuglInternals*
  35. puglGetInternalsImpl(PuglView* view);
  36. #endif /* PUGL_X11_H_INCLUDED */