This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

OpenGL Extensions


>> My card supports EXT_compiled_vertex_arrays.  I tried to follow a GL
>> extension manual
>> (http://reality.sgi.com/blythe/sig99/advanced99/notes/node396.html), but
>> it didn't work. What to do?
> One problem with the suggested code might be that it is written for Visual
> C++, which has _WIN32 defined. The last version of gcc for Cygwin
> (2.92.2-7) has _WIN32 undefined by default; try compiling with -mwin32. If
> you still encounter problems, please report to this list the complete error
> messages you receive, instead of just saying "it didn't work".


_WIN32 was not the problem. Here is some code and the error messages:

--lines 53-57 ------------
typedef void (APIENTRY * PROCGLLOCKARRAYSEXT) (GLint first, GLsizei count);
typedef void (APIENTRY * PROCGLUNLOCKARRAYSEXT) (void);

PROCGLLOCKARRAYSEXT glLockArraysEXT;
PROCGLUNLOCKARRAYSEXT glUnlockArraysEXT;
--------------------------

--errors------------------
wgl.c:56: `glLockArraysEXT' redeclared as different kind of symbol
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/../../../../include/GL/gl.h:1799:
previ
ous declaration of `glLockArraysEXT'
wgl.c:57: `glUnlockArraysEXT' redeclared as different kind of symbol
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/../../../../include/GL/gl.h:1989:
previ
ous declaration of `glUnlockArraysEXT'
--------------------------

I managed to work around the problem by naming the function pointers different
from original functions, but I'm still looking for a tidier way to do this.


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]