[cogl/wip/cogl-1.12] cogl-gles2: Add glTexParameterf to wrapper library



commit 36ca1cc75506aec3f9747e06c1876aa854be5c2d
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date:   Tue Jun 19 13:05:11 2012 +0200

    cogl-gles2: Add glTexParameterf to wrapper library

 cogl-gles2/cogl-gles2-api.c              |    7 +++++++
 cogl-gles2/cogl-gles2-experimental.pc.in |    2 +-
 cogl/gl-prototypes/cogl-core-functions.h |    2 ++
 3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/cogl-gles2/cogl-gles2-api.c b/cogl-gles2/cogl-gles2-api.c
index ce4add1..22ab2b7 100644
--- a/cogl-gles2/cogl-gles2-api.c
+++ b/cogl-gles2/cogl-gles2-api.c
@@ -242,6 +242,13 @@ glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width,
 }
 
 void
+glTexParameterf (GLenum target, GLenum pname, GLfloat param)
+{
+  CoglGLES2Vtable *vtable = cogl_gles2_get_current_vtable ();
+  vtable->glTexParameterf (target, pname, param);
+}
+
+void
 glTexParameterfv (GLenum target, GLenum pname, const GLfloat * params)
 {
   CoglGLES2Vtable *vtable = cogl_gles2_get_current_vtable ();
diff --git a/cogl-gles2/cogl-gles2-experimental.pc.in b/cogl-gles2/cogl-gles2-experimental.pc.in
index c502740..a1a1c94 100644
--- a/cogl-gles2/cogl-gles2-experimental.pc.in
+++ b/cogl-gles2/cogl-gles2-experimental.pc.in
@@ -3,7 +3,7 @@ exec_prefix= exec_prefix@
 libdir= libdir@
 includedir= includedir@
 apiversion= COGL_API_VERSION@
-requires=cogl2
+requires=cogl-1.0
 
 Name: CoglGLES2
 Description: Cogl OpenGL ES 2.0 frontend api
diff --git a/cogl/gl-prototypes/cogl-core-functions.h b/cogl/gl-prototypes/cogl-core-functions.h
index 9210547..bb347df 100644
--- a/cogl/gl-prototypes/cogl-core-functions.h
+++ b/cogl/gl-prototypes/cogl-core-functions.h
@@ -152,6 +152,8 @@ COGL_EXT_FUNCTION (void, glTexImage2D,
                     GLenum format,
                     GLenum type,
                     const GLvoid* pixels))
+COGL_EXT_FUNCTION (void, glTexParameterf,
+                   (GLenum target, GLenum pname, GLfloat param))
 COGL_EXT_FUNCTION (void, glTexParameterfv,
                    (GLenum target, GLenum pname, const GLfloat* params))
 COGL_EXT_FUNCTION (void, glTexParameteri,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]