Jump to content
  • Advertisement
Sign in to follow this  
jackhat25

Big problem show with vertex arrays from file

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

Is a problem no usually; I have a file (.txt); have 3000 records with vectorial directions; but with structures glvertex or direct draw mode show all the arrays normaly with vertex arrays I have a trouble: structure glvertex or direct draw mode: ---------------------------- for COUNT:= 1 TO SIZE DO BEGIN glbegin(GL_QUADS); glTextcood2f(1[count],2[count]); glvertexf(A1[count],B1[count],C1[count]); . . . glTextcood2f(7[count],8[count]); glvertexf(A4[count],B4[count],C4[count]); glend(); END; show all the arrays very well; but when I have running the code Vertex array only show the first array in file; the others arrays show incomplete information not draw the square else triangles : vertex array code: ----------------------------------------------------- glTexCoordPointer(2, GL_FLOAT, 0, @COORDENADAS); glVertexPointer(3, GL_FLOAT, 0, @VERTEXS); glDrawElements(GL_QUADS, 4, GL_UNSIGNED_INT, @INDEX);

Share this post


Link to post
Share on other sites
Advertisement
anyone can help me...?


Im missing in that rare trouble....why I can't show all the records...?

why only show one record ...???

always is the first record in the file ...??

Share this post


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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!