1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibGL: Implement Texture State Management

Some very primitive Texture State management. Data can now be
uploaded to textures.
This commit is contained in:
Jesse Buhagiar 2021-05-13 22:18:17 +10:00 committed by Ali Mohammad Pur
parent 21dff6d40b
commit 4f324ba4d7
8 changed files with 309 additions and 0 deletions

View file

@ -18,3 +18,8 @@ void glDeleteTextures(GLsizei n, const GLuint* textures)
{
g_gl_context->gl_delete_textures(n, textures);
}
void glTexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* data)
{
g_gl_context->gl_tex_image_2d(target, level, internalFormat, width, height, border, format, type, data);
}