From 7a5b8cc4b9f7343db13491941088c95c96833c18 Mon Sep 17 00:00:00 2001 From: Evan Goers Date: Mon, 26 Nov 2012 07:33:32 +0000 Subject: More gl::-ization. --- src/render/gl.h | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'src/render/gl.h') diff --git a/src/render/gl.h b/src/render/gl.h index 8d8e48e..2d19a45 100644 --- a/src/render/gl.h +++ b/src/render/gl.h @@ -122,6 +122,9 @@ void enableclientstate(GLenum cap); /// glDisableClientState void disableclientstate(GLenum cap); +/// glGetIntegerv +void getinteger(GLenum pname, GLint* params); + /// glShadeModel void shademodel(GLenum mode); @@ -163,13 +166,11 @@ void end(); * line, and polygon vertices. The current color, normal, and texture * coordinates are associated with the vertex when vertex() is called. */ -void vertex(const math::Vector3f& vector); - -void vertex(const float x, const float y, const float z); - void vertex(const math::Vector2f& vector); - void vertex(const float x, const float y); +void vertex(const math::Vector3f& vector); +void vertex(const float x, const float y, const float z); +void vertex(const GLfloat* v); /// glTexCoord void texcoord(const float x, const float y); @@ -268,6 +269,12 @@ void loadidentity(); /// Perspective matrix void frustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble znear, GLdouble zfar); +/// Light source parameters +void light(GLenum light, GLenum pname, GLfloat param); +void light(GLenum light, GLenum pname, GLint param); +void light(GLenum light, GLenum pname, const GLfloat* params); +void light(GLenum light, GLenum pname, const GLint* params); + /// Light model void lightmodel(GLenum pname, GLfloat param); void lightmodel(GLenum pname, GLint param); @@ -300,6 +307,12 @@ void texgen(GLenum coord, GLenum param, const GLint* value); void texgen(GLenum coord, GLenum param, const GLfloat* value); void texgen(GLenum coord, GLenum param, const GLdouble* value); +/// Texture parameters +void texparameter(GLenum target, GLenum pname, GLfloat param); +void texparameter(GLenum target, GLenum pname, GLint param); +void texparameter(GLenum target, GLenum pname, const GLfloat* params); +void texparameter(GLenum target, GLenum pname, const GLint* params); + /// Active server-side texture void activetexture(GLenum texture); /// Active client-side texture -- cgit v1.2.3