Sign in to follow this  
jackhat25

Big problem show with vertex arrays from file

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this