• Advertisement
Sign in to follow this  

applique texture using glTextCoordPointer

This topic is 1455 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