> Hi There,
> I am new to OpenGL, just completing the NeHe tutorial about OpenGL.
> I was looking around the internet and found some demos from NVidia
> (VolumeTextureImpostors) wich only runs with Detonator XP on my Windows
> 2000. So I downloaded both and installed, but the demo doesnt run, because
> it couldnt find the glut3.dll. I couldnt find it, too, it was nowhere on my
> harddrive.
> I never heard about glut3.dll in my programming course till yet. So, do I
> have to have it?
GLUT isn't OPenGL< it's a separate library. You can get it here:
Quote:> Which version is the most up to date of OpenGL? Is it OpenGL
> 1.3 or 1.2 And where can I get this.
The latest specification is for OpenGL 1.3. NVIDIA supports
this on the GeForce3.
Unfortunately, Microsoft refuses to officially release OpenGL
1.2/1.3 for Windows. They said it would be in Windows 2000 but
they didn't put it in. Now they say it will be in a future service
pack but don't hold your breath while you're waiting for it
....nobody else is.
Fortunately you can use it without them, the new functions are in
the graphics card driver not in opengl32.dll. You only have to write
a few lines of code for each OpenGL 1.3 function you want to use.
eg. Multitexture.
/* In a header file */
#define GL_TEXTURE0 0x84C0
#define GL_TEXTURE1 0x84C1
#define GL_TEXTURE2 0x84C2
#define GL_TEXTURE3 0x84C3
extern void (*glActiveTexture)(GLenum target);
/* In some other file */
void (*glActiveTexture)(GLenum target);
/* After every call to wglMakeCurrent() */
glActiveTexture = wglGetProcAddress("glActiveTextureARB");
Et voila! You can now do "glActiveTexture(GL_TEXTURE2);" in your
programs.
This may seem like extra work but it's only a few lines of
code per extension, and you do it only once. The alternative,
having OpenGL 1.3 installed on some machines and not others,
is probably worse. Imagine what would happen:
a) You release a program using OpenGl 1.3.
b) Customers call you because it crashes on their machines.
c) After a few weeks of telling them they need to upgrade/patch their
OS you decide to rip out the "official" 1.3 code and put in the
above to make sure your program works on all machines.
Conclusion: You might as well do it properly from the beginning.
http://www.opengl.org/ has a list of all OpenGL extensions.
--
<\___/>
/ O O \
\_____/ FTB.