Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

applique texture using glTextCoordPointer

4: Adsense

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
No replies to this topic

#1 bloupies   Members   

112
Like
0Likes
Like

Posted 28 January 2014 - 03:15 AM

I'm drawing my points like that :
 
   
TAB_PAS = 2;


    glVertexPointer(TAB_PAS,GL_FLOAT,0,test[0].send_terrain());
    glDrawElements( GL_LINES, indice_degra_de.size(), GL_UNSIGNED_INT, indice_degra_de.constData());
    glVertexPointer(TAB_PAS,GL_FLOAT,0,test[1].send_terrain());
    glDrawElements( GL_LINES, indice_degra.size(), GL_UNSIGNED_INT, indice_degra.constData());
    glVertexPointer(TAB_PAS,GL_FLOAT,0,test[2].send_terrain());
    glDrawElements( GL_LINES, indice_degra_de.size(), GL_UNSIGNED_INT, indice_degra_de.constData());
    glVertexPointer(TAB_PAS,GL_FLOAT,0,test[3].send_terrain());
 
It draw a big terrain.
 
So now, I want for exemple applique a floor texture. I saw this function glTextCoordPointer but I don't know how to use it : 
 
        
glTexCoordPointer(2, GL_FLOAT, 0, test[0].send_terrain()); 
        // Something like that ?
 
 
I already uploaded my picture.tga, so now the problem is to applique it..





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.