1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +00:00

LibGL: Implement glTexCoord2fv

This commit is contained in:
Jelle Raaijmakers 2021-12-01 13:42:22 +01:00 committed by Andreas Kling
parent 315973e73c
commit 651ea89094
2 changed files with 6 additions and 0 deletions

View file

@ -403,6 +403,7 @@ GLAPI void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum
GLAPI void glTexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* data);
GLAPI void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* data);
GLAPI void glTexCoord2f(GLfloat s, GLfloat t);
GLAPI void glTexCoord2fv(GLfloat const* v);
GLAPI void glTexCoord4fv(const GLfloat* v);
GLAPI void glTexParameteri(GLenum target, GLenum pname, GLint param);
GLAPI void glTexParameterf(GLenum target, GLenum pname, GLfloat param);

View file

@ -145,6 +145,11 @@ void glTexCoord2f(GLfloat s, GLfloat t)
g_gl_context->gl_tex_coord(s, t, 0.0f, 0.0f);
}
void glTexCoord2fv(GLfloat const* v)
{
g_gl_context->gl_tex_coord(v[0], v[1], 0.0f, 0.0f);
}
void glTexCoord4fv(const GLfloat* v)
{
g_gl_context->gl_tex_coord(v[0], v[1], v[2], v[3]);