1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

LibGL: Implement glTexParameter{i,f}

This currently only implements a subset of this function.
Namely setting wrap, mag and min modes for the GL_TETXURE_2D target.
This commit is contained in:
Stephan Unverwerth 2021-08-11 22:09:18 +02:00 committed by Andreas Kling
parent e0fef60241
commit b9523e15df
6 changed files with 95 additions and 2 deletions

View file

@ -36,3 +36,13 @@ void glActiveTexture(GLenum texture)
{
g_gl_context->gl_active_texture(texture);
}
void glTexParameteri(GLenum target, GLenum pname, GLint param)
{
g_gl_context->gl_tex_parameter(target, pname, param);
}
void glTexParameterf(GLenum target, GLenum pname, GLfloat param)
{
g_gl_context->gl_tex_parameter(target, pname, param);
}