Borland C++
I managed to get tutorials 1-5 to work but when I tried 6 and 7 the compiler said that: glGenTextures was not a valid function
glBindTexture was not a valid function
Why would i be getting this error? am i missing a file?
They require OpenGL1.1 or higher.
Wow ! you''re the first guy I ever meet who uses OpenGL1.0 !!
Wow ! you''re the first guy I ever meet who uses OpenGL1.0 !!
I think that the functions aren't defined in the gl.h that come with Borland C++. Either
a: Define them yourself
b: Download the gl headers from www.opengl.org
Neil
WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
[edited by - thedo on March 28, 2002 11:51:34 AM]
a: Define them yourself
b: Download the gl headers from www.opengl.org
Neil
WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
[edited by - thedo on March 28, 2002 11:51:34 AM]
WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!
March 29, 2002 04:59 AM
You will also have problems with the libs downloaded: you will need to convert them from Microsoft libs to Borland libs. So you will need to use Implib (to create a lib from a DLL) or coff2omf (to convert microsoft libs to borland libs) or if neither does work, create a def file with impdef and then use implib to create a lib from a def file.
Rant on: to my mind the libs standards are a blatant example of how Microsoft controls the access to its windows technology and ensures that users end with using products from Microsoft (programming windows games on MSVC with Direct3D because you do not have compatibility problems and you have the latest drivers ?!? Without resorting to Linux, I prefer programming windows games on BC++ 5.01 with OpenGL). Rant off.
Back on topic: you will also have some troubles with the texture loading system of NeHe since he uses glaux. To see another way of loading textures, check the URL home.clara.net/paulyg/ogl.htm : he uses Borland compilers.
The Glaux lib cannot be translated: if you wish to use it, you will need to download the source and compile a new library.
BTW glaux is no more maintained, it is now advised to use glut (still glut does not have loading texture functions, you will have to check the URL I gave you). Still NeHe tutorials are excellent and full of information. It is worth making a conversion from glaux based code to classic gl code.
Good Luck.
Red.
Rant on: to my mind the libs standards are a blatant example of how Microsoft controls the access to its windows technology and ensures that users end with using products from Microsoft (programming windows games on MSVC with Direct3D because you do not have compatibility problems and you have the latest drivers ?!? Without resorting to Linux, I prefer programming windows games on BC++ 5.01 with OpenGL). Rant off.
Back on topic: you will also have some troubles with the texture loading system of NeHe since he uses glaux. To see another way of loading textures, check the URL home.clara.net/paulyg/ogl.htm : he uses Borland compilers.
The Glaux lib cannot be translated: if you wish to use it, you will need to download the source and compile a new library.
BTW glaux is no more maintained, it is now advised to use glut (still glut does not have loading texture functions, you will have to check the URL I gave you). Still NeHe tutorials are excellent and full of information. It is worth making a conversion from glaux based code to classic gl code.
Good Luck.
Red.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement