Skip to main content
gamedev.net
🔒 Locked

vertex/list problem

Started by guitarman 2 replies 650+ views
Original Post
guitarman
guitarman
I have a DXF model loader I am working on, and I''ve come across a problem. I have a class CDXFModel, it has a _verticies private member, which is a templated linked list. When I run this thru the console and loop thru the verticies to print them, it works fine. But, when I run it inside of glBegin(...) and glEnd() blocks, I get nothing. If I use GL_POINTS, I get a single point on the screen, but nothing with anything else. Any help would be appreciated.
[source]#define Jesus 1[/source]
White Rabbit
White Rabbit
Take atention to the camera orientation, by default she is placed at 0,0,0 look at the positive end of the Z axis.
"Follow the white rabbit."
guitarman
guitarman
That''s not the problem, I can see the model using GL_POINTS, but only one point!
[source]#define Jesus 1[/source]
guitarman
guitarman
I went thru the Draw() loop, and it called every one of mo coordinates right. I think I''ve encountered this problem before. Might it have something to do with the fact that I am using a pointer to the vertex list?
[source]#define Jesus 1[/source]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.