On Fri, 10 Dec 1999, Brian Paul wrote:
> Works for me. Which OS and device driver are you using?
FX driver under Windows 98. Compiled with VC++ 6. I'll test it
again with the latest CVS.
> Where else are those function name defined? I don't understand
> what's wrong. Please send more details.
Just tried to use the extension as Mark Kilgard explain in this
document:
http://www.nvidia.com/marketing/developer/devrel.nsf/pages/E11F4D0F59900C9E8825681E007B1065
From this document:
First, declare function prototype typedefs that match the extensions entry
points. For example:
#ifdef _WIN32
typedef void (APIENTRY * PFNGLPOINTPARAMETERFEXTPROC)
(GLenum pname, GLfloat param);
typedef void (APIENTRY * PFNGLPOINTPARAMETERFVEXTPROC)
(GLenum pname, const GLfloat *params);
#endif
Your <GL/gl.h> header file may already have these typedefs declared if
your <GL/gl.h> defines the GL_EXT_point_parameters macro. Now declare
global variables of the type of these function prototype typedefs like
this:
#ifdef _WIN32
PFNGLPOINTPARAMETERFEXTPROC glPointParameterfEXT;
PFNGLPOINTPARAMETERFVEXTPROC glPointParameterfvEXT;
#endif
The names above exactly match the extensions function names. Once we use
wglGetProcAddress to assign these function variables the address of the
OpenGL drivers extension functions, we can call glPointParameterfEXT and
glPointParameterfvEXT as if they were normal functions.
So, if i do it that way i get redeclaration erros for
glPointParameterfEXT and glPointParameterfvEXT unless i enclose
declarations in gl/gl.h between #ifndef WIN32.
Hope this helps.
--
Raul Alonso
[EMAIL PROTECTED]
Fortune of the day:
Greener's Law
Never argue with a man who buys ink by the barrel.
_______________________________________________
Mesa-bug maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-bug
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev