cogl-gles2: Add glTexParameterf to wrapper library

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit 06d6bdb73e3d2468cf3a8c355152cbdeb1b36d94)
This commit is contained in:
Tomeu Vizoso 2012-06-19 13:07:40 +02:00 committed by Robert Bragg
parent 66dd06dea9
commit 9a1f0c4098
2 changed files with 9 additions and 0 deletions

View File

@ -241,6 +241,13 @@ glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width,
format, type, pixels); format, type, pixels);
} }
void
glTexParameterf (GLenum target, GLenum pname, GLfloat param)
{
CoglGLES2Vtable *vtable = cogl_gles2_get_current_vtable ();
vtable->glTexParameterf (target, pname, param);
}
void void
glTexParameterfv (GLenum target, GLenum pname, const GLfloat * params) glTexParameterfv (GLenum target, GLenum pname, const GLfloat * params)
{ {

View File

@ -152,6 +152,8 @@ COGL_EXT_FUNCTION (void, glTexImage2D,
GLenum format, GLenum format,
GLenum type, GLenum type,
const GLvoid* pixels)) const GLvoid* pixels))
COGL_EXT_FUNCTION (void, glTexParameterf,
(GLenum target, GLenum pname, GLfloat param))
COGL_EXT_FUNCTION (void, glTexParameterfv, COGL_EXT_FUNCTION (void, glTexParameterfv,
(GLenum target, GLenum pname, const GLfloat* params)) (GLenum target, GLenum pname, const GLfloat* params))
COGL_EXT_FUNCTION (void, glTexParameteri, COGL_EXT_FUNCTION (void, glTexParameteri,