1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 20:14:58 +00:00
serenity/Userland/Libraries/LibGL/GLTexture.cpp
Jesse Buhagiar 21dff6d40b LibGL: Add Texture Name Allocation
Texture names can now be allocated via
`glGenTextures` and deallocated via `glDeleteTextures`.
2021-05-26 16:36:53 +04:30

20 lines
412 B
C++

/*
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "GLContext.h"
#include <LibGL/GL/gl.h>
extern GL::GLContext* g_gl_context;
void glGenTextures(GLsizei n, GLuint* textures)
{
g_gl_context->gl_gen_textures(n, textures);
}
void glDeleteTextures(GLsizei n, const GLuint* textures)
{
g_gl_context->gl_delete_textures(n, textures);
}