Probably a simple problem ( I hope ).
Hi,
In my openGL app, if I click the left mouse button a point is drawn where I click. The problem is that when I click somewhere else it creates another point(which is good) but the previous point stays there(which is bad). This also happens with everything I draw on the screen. It''s as if it gets stained on the window.
Any Ideas
Luke
Lukerd@lineone.net
"To err is human, to really mess up requires a computer"
Remind that you must call glClear( ...) (don''t remember the args) at the beginning of your display function.
at the beggining of every frame rendered...
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
Hey,
Actually I did use glClear, but after a day of searching through my code I noticed that tucked away in a function there was a missing glEnd, duh. Anyway thanks for all the replys except the one from AP
Luke
Lukerd@lineone.net
Actually I did use glClear, but after a day of searching through my code I noticed that tucked away in a function there was a missing glEnd, duh. Anyway thanks for all the replys except the one from AP
Luke
Lukerd@lineone.net
"To err is human, to really mess up requires a computer"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement