PDA

View Full Version : Witchcraft



The Yeti
01-24-2011, 04:36 PM
Hi!
I'm new to OpenGl, but strating to get the hang of it!
I wrote a program, that draws a [5][5] vector on the screen, but
It doesn't seem to be working right. the function which fills the vector is initV(); and it seem to be working fine, but in the IdleH(); function(the function which supposed to keep it on screen) some of its elements' "y" coordinate changes from 6 to 1, always the same elements, and I couldn't find out what is wrong with it! :(
I'd really appreciate some help, thanks in advance! :)
Here's the code: http://www.friendpaste.com/6pJtSeGdYdOZNTJURqGjFY