/*
* Mesa 3-D graphics library
- * Version: 4.1
+ * Version: 6.3
*
- * Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
#include <GL/gl.h>
-#define OSMESA_MAJOR_VERSION 4
-#define OSMESA_MINOR_VERSION 1
+#define OSMESA_MAJOR_VERSION 6
+#define OSMESA_MINOR_VERSION 3
#define OSMESA_PATCH_VERSION 0
+/**
+ * This typedef is new in Mesa 6.3.
+ */
+typedef void (*OSMESAproc)();
+
+
/*
* Return pointer to the named function.
- *
* New in Mesa 4.1
+ * Return OSMESAproc in 6.3.
*/
-GLAPI void * GLAPIENTRY
+GLAPI OSMESAproc GLAPIENTRY
OSMesaGetProcAddress( const char *funcName );
}
-typedef void (*generic_function)();
-
struct name_function
{
const char *Name;
- generic_function Function;
+ OSMESAproc Function;
};
static struct name_function functions[] = {
- { "OSMesaCreateContext", (generic_function) OSMesaCreateContext },
- { "OSMesaCreateContextExt", (generic_function) OSMesaCreateContextExt },
- { "OSMesaDestroyContext", (generic_function) OSMesaDestroyContext },
- { "OSMesaMakeCurrent", (generic_function) OSMesaMakeCurrent },
- { "OSMesaGetCurrentContext", (generic_function) OSMesaGetCurrentContext },
- { "OSMesaPixelsStore", (generic_function) OSMesaPixelStore },
- { "OSMesaGetIntegerv", (generic_function) OSMesaGetIntegerv },
- { "OSMesaGetDepthBuffer", (generic_function) OSMesaGetDepthBuffer },
- { "OSMesaGetColorBuffer", (generic_function) OSMesaGetColorBuffer },
- { "OSMesaGetProcAddress", (generic_function) OSMesaGetProcAddress },
+ { "OSMesaCreateContext", (OSMESAproc) OSMesaCreateContext },
+ { "OSMesaCreateContextExt", (OSMESAproc) OSMesaCreateContextExt },
+ { "OSMesaDestroyContext", (OSMESAproc) OSMesaDestroyContext },
+ { "OSMesaMakeCurrent", (OSMESAproc) OSMesaMakeCurrent },
+ { "OSMesaGetCurrentContext", (OSMESAproc) OSMesaGetCurrentContext },
+ { "OSMesaPixelsStore", (OSMESAproc) OSMesaPixelStore },
+ { "OSMesaGetIntegerv", (OSMESAproc) OSMesaGetIntegerv },
+ { "OSMesaGetDepthBuffer", (OSMESAproc) OSMesaGetDepthBuffer },
+ { "OSMesaGetColorBuffer", (OSMESAproc) OSMesaGetColorBuffer },
+ { "OSMesaGetProcAddress", (OSMESAproc) OSMesaGetProcAddress },
{ NULL, NULL }
};
-GLAPI void * GLAPIENTRY
+
+GLAPI OSMESAproc GLAPIENTRY
OSMesaGetProcAddress( const char *funcName )
{
int i;
for (i = 0; functions[i].Name; i++) {
if (_mesa_strcmp(functions[i].Name, funcName) == 0)
- return (void *) functions[i].Function;
+ return functions[i].Function;
}
- return (void *) _glapi_get_proc_address(funcName);
+ return _glapi_get_proc_address(funcName);
}