Sign in to follow this  
vivendi

something like glDrawElements

Recommended Posts

vivendi    123
Hello, i was wondering if there is another function that also renders primitives from array data. Just like glDrawElements. PS. and i also dont mean glDrawArrays :)

Share this post


Link to post
Share on other sites
vivendi    123
I found what i was looking for, it was glDrawRangeElements.
But when i try to compile my code with this function i get

'glDrawRangeElements' : undeclared identifier

Any idea what could be wrong...??

Share this post


Link to post
Share on other sites
Toji    535
Since glDrawRangeElements is not a part of OpenGL 1.1 (therefore does not have native windows support) it is treated as an extension. Like any extension, You need to register it in order to use it.

(I can post code if you need it later, but I don't have any avalible just now...)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this