summaryrefslogtreecommitdiff
path: root/source/qgl_api.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-11-17 19:27:42 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-11-17 19:27:42 +0000
commitb068abb528d8a705894cb3acd0696bd01ffa72d5 (patch)
treef62c52328dbb701d49b1f99e4b770500642e895b /source/qgl_api.c
parent4f6e8a36bdf9038bba73fafcba96c4438d8f7ce0 (diff)
Yet another batched update.
Fixed munmap() hang in OSS_Shutdown(). Added (crappy) SDL audio driver, but ALSA should work now. Made r_maxfps and cl_maxfps really separate with cl_async 1. This way, any configuration is allowed (e.g. r_maxfps 60, cl_maxfps 120). Implemented water warping via fragment program, removed subdivision code. Removed (crappy) dynamic lighting. Removed surface sorting and batching. Minimized vertex copying operations. Implemented celshading. Removed S_RawSamples and friends. Smooth handling of smaller ladder steps (e.g. those on q2next2).
Diffstat (limited to 'source/qgl_api.c')
-rw-r--r--source/qgl_api.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/source/qgl_api.c b/source/qgl_api.c
index 1f24f30..a796ca5 100644
--- a/source/qgl_api.c
+++ b/source/qgl_api.c
@@ -382,12 +382,16 @@ void ( APIENTRY * qglUnlockArraysEXT) ( void );
void ( APIENTRY * qglPointParameterfEXT)( GLenum param, GLfloat value );
void ( APIENTRY * qglPointParameterfvEXT)( GLenum param, const GLfloat *value );
void ( APIENTRY * qglColorTableEXT)( int, int, int, int, int, const void * );
-void ( APIENTRY * qglSelectTextureSGIS)( GLenum );
-void ( APIENTRY * qglMTexCoord2fSGIS)( GLenum, GLfloat, GLfloat );
-void ( APIENTRY * qglMultiTexCoord2fvARB)( GLenum, const GLfloat * );
+
void ( APIENTRY * qglActiveTextureARB) ( GLenum );
void ( APIENTRY * qglClientActiveTextureARB) ( GLenum );
+void ( APIENTRY * qglProgramStringARB)( GLenum target, GLenum format, GLsizei len, const GLvoid *string );
+void ( APIENTRY * qglBindProgramARB)( GLenum target, GLuint program );
+void ( APIENTRY * qglDeleteProgramsARB)( GLsizei n, const GLuint *programs );
+void ( APIENTRY * qglGenProgramsARB)( GLsizei n, GLuint *programs );
+void ( APIENTRY * qglProgramLocalParameter4fvARB)( GLenum, GLuint, const GLfloat * );
+
#ifdef _WIN32
PROC ( WINAPI * qwglGetProcAddress )( LPCSTR );
BOOL ( WINAPI * qwglSwapIntervalEXT )( int interval );
@@ -3327,12 +3331,16 @@ void QGL_Init( void ) {
qglPointParameterfEXT = 0;
qglPointParameterfvEXT = 0;
qglColorTableEXT = 0;
- qglSelectTextureSGIS = 0;
- qglMTexCoord2fSGIS = 0;
- qglMultiTexCoord2fvARB = 0;
+
qglActiveTextureARB = 0;
qglClientActiveTextureARB = 0;
+ qglProgramStringARB = 0;
+ qglBindProgramARB = 0;
+ qglDeleteProgramsARB = 0;
+ qglGenProgramsARB = 0;
+ qglProgramLocalParameter4fvARB = 0;
+
#ifdef _WIN32
qwglGetProcAddress = GPA( "wglGetProcAddress" );
#endif