Jump to content
  • Advertisement
Sign in to follow this  
bloupies

applique texture using glTextCoordPointer

This topic is 2095 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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..

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!