I got the recent extension header <glext.h> from
http://oss.sgi.com/projects/ogl-sample/registry/ and tried to include it
in my opengl-program.
inside glext.h, GL_RESCALE_NORMALS is properly defined.
it's not defined in my gl.h (which seems to operate on OpenGL 1.1 only).
I did read on the net that all new OpenGL 1.2/1.3 stuff is only useable
if you include glext.h.
Using this setup:
#include "windows.h"
#include "glut.h" (which included gl.h/glu.h)
#include "glext.h"
... some code
glEnable(GL_RESCALE_NORMALS);
... some code
I still cannot access GL_RESCALE_NORMALS. It seems that the 1.2-
definitions aren't imported correctly. my compiler (free borland c++
5.5.1 from www.borland.de) errors about no definied GL_RESCALE_NORMALS.
Using this setup:
#include "windows.h"
#include "glext.h"
#include "glut.h" (which included gl.h/glu.h)
... some code
glEnable(GL_RESCALE_NORMALS);
... some code
I cannot compile everything either, since my compiler already errors
about wrong and missing definitions of GL data types, etc in using
glext.h.
does any1 know a way how to correctly include all the headers, so
you can use OpenGL 1.1/1.2/1.3 functions and extensions???
For information:
I am using a nVIDIA GeForce 2 Ti on windowsXP (latest drivers).
In Nehe's Tutorial about listing available OpenGL-extensions with
GL_EXTENSIONS, my card lists all supported 1.2/1.3 extensions correctly.
Would be thankful for help :)
Have a nice day.
-elderic
Gl.h defines all the OpenGL data types (like GLubyte or GLenum) so you must
include it before including glext.h.
Jason A.
"Marcus Elderic Koenig" <eld...@t-online.de> wrote in message
news:Xns91F5C06656CB1m...@62.153.159.134...
> #include <windows.h>
> #include <GL/gl.h>
> #include <GL/glext.h>
> #include <GL/glut.h>
>
> Gl.h defines all the OpenGL data types (like GLubyte or GLenum) so you
> must include it before including glext.h.
>
> Jason A.
if i do it like this, I still get the error
Undefined symbol 'GL_RESCALE_NORMALS' in function InitGL()
Jason A.
"Marcus Elderic Koenig" <eld...@t-online.de> wrote in message
news:Xns91F5C465336A8m...@62.153.159.134...
I find GL_RESCALE_NORMAL in glext.h.
zin
Jason A.
"Jason Allen" <jra...@yahoo.com> wrote in message
news:FMYv8.15315$oj5.6...@typhoon.austin.rr.com...
>Oops, that should be GL_RESCALE_NORMAL_EXT or GL_RESCALE_NORMAL
As of OpenGL 1.2 GL_RESCALE_NORMAL_EXT is depricated. If you're using
OpenGL 1.2 (or later) headers, use GL_RESCALE_NORMAL instead. If you really
don't know what type of system you're going to build on, do something like:
#ifndef GL_RESCALE_NORMAL
# ifdef GL_RESCALE_NORMAL_EXT
# define GL_RESCALE_NORMAL GL_RESCALE_NORMAL_EXT
# else
# error Must have GL_RESCALE_NORMAL or GL_RESCALE_NORMAL_EXT
# endif
#endif
--
Tell it to the Marines!
Jason A.
"Ian D Romanick" <i...@cs.pdx.edu> wrote in message
news:a9q7en$po5$1...@regulus.cs.pdx.edu...