GLLists.cpp 627 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include "GL/gl.h"
  7. #include "GLContext.h"
  8. extern GL::GLContext* g_gl_context;
  9. GLuint glGenLists(GLsizei range)
  10. {
  11. return g_gl_context->gl_gen_lists(range);
  12. }
  13. void glCallList(GLuint list)
  14. {
  15. return g_gl_context->gl_call_list(list);
  16. }
  17. void glDeleteLists(GLuint list, GLsizei range)
  18. {
  19. return g_gl_context->gl_delete_lists(list, range);
  20. }
  21. void glEndList(void)
  22. {
  23. return g_gl_context->gl_end_list();
  24. }
  25. void glNewList(GLuint list, GLenum mode)
  26. {
  27. return g_gl_context->gl_new_list(list, mode);
  28. }