Skip to main content
GameDev.net gamedev.net
🔒 Locked

glDrawRangeElements

Started by b3rs3rk May 13, 2004 at 1:17 AM 3 replies 1.3k views
Original Post
b3rs3rk
b3rs3rk
"glDrawRangeElements is available only if the GL version is 1.2 or greater. " i have version 1.3 installed but when i try to compile i receive this error: error C2065: ''glDrawRangeElements'' : undeclared identifier i have an ATI Radeon 9000... i''m starting to think that i have the 1.1 version..if so, where can i find the newest version of opengl?
skow
skow
To use extentions you will need to include glext.h. You can find a updated copy of this at SGI''s site.
vincoof
vincoof
I won''t get into much detail because it has been asked hundreds of times, but under Windows you actually need to stick with OpenGL1.1 features and you have to deal with extensions if you want to use OpenGL1.2+ features.
Take a look at the OpenGL.org FAQ or search the forums at opengl.org / gamedev.net where everything is very well explained.

As a last note, this only applies to Windows. Linux, Mac and other OSes are not limited to this bs.
Lutz
Lutz
Before you can use the glDrawRangeElements function, you need to grab it under Windows. Check out the NeHe Lesson - I don''t know the number, but it''s the one about extensions. You will learn how to grab routines by some Windows specific call.
_the_phantom_
_the_phantom_
you could also use a wrapper, such as GLee (see OpenGL forum FAQ for link) which setsup the extensions for you so you dont have to worry about it

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.