pandagles2.cxx 739 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @file pandagles2.cxx
  3. * @author rdb
  4. * @date 2009-06-08
  5. */
  6. #include "pandagles2.h"
  7. #define OPENGLES_2
  8. #include "config_gles2gsg.h"
  9. #include "config_egldisplay.h"
  10. #include "eglGraphicsPipe.h"
  11. /**
  12. * Initializes the library. This must be called at least once before any of
  13. * the functions or classes in this library can be used. Normally it will be
  14. * called by the static initializers and need not be called explicitly, but
  15. * special cases exist.
  16. */
  17. void
  18. init_libpandagles2() {
  19. init_libgles2gsg();
  20. init_libegldisplay();
  21. }
  22. /**
  23. * Returns the TypeHandle index of the recommended graphics pipe type defined
  24. * by this module.
  25. */
  26. int
  27. get_pipe_type_pandagles2() {
  28. return eglGraphicsPipe::get_class_type().get_index();
  29. }