GLTexture.cpp 412 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include "GLContext.h"
  7. #include <LibGL/GL/gl.h>
  8. extern GL::GLContext* g_gl_context;
  9. void glGenTextures(GLsizei n, GLuint* textures)
  10. {
  11. g_gl_context->gl_gen_textures(n, textures);
  12. }
  13. void glDeleteTextures(GLsizei n, const GLuint* textures)
  14. {
  15. g_gl_context->gl_delete_textures(n, textures);
  16. }