Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Indexed Vertex Array with normals!


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 dragon376   Members   -  Reputation: 140

Like
Likes
Like

Posted 22 June 2001 - 11:01 PM

How do you tell to the function glDrawElement(GL_TRIANGLES,24,GL_UNSIGNED_BYTE, indexes); that you have normals for each vertex in each face? Thanks

Sponsor:

#2 Krippy2k   Members   -  Reputation: 134

Like
Likes
Like

Posted 23 June 2001 - 03:31 AM

You need to create an array with just your normals in it, then call glNormalPointer to specify this array and:

glEnableClientState( GL_NORMAL_ARRAY );

Each normal element will belong to the correspond vertex in your vertex array.

Seeya
Krippy




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS