Jump to content

  • Log In with Google      Sign In   
  • Create Account


applique texture using glTextCoordPointer


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


Sponsor:



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