glDrawPixels help
-
Hello, i am creating a rectangle using glDrawPixels by specifying it's height and width. I need to rotate this rectangle somehow 45 degrees. What should i do in order to rotate this rectangle. by using glRasterPos i am positioning that rect somewhere on the screen. How would i keep it rotating? thanks:confused:
-
Hello, i am creating a rectangle using glDrawPixels by specifying it's height and width. I need to rotate this rectangle somehow 45 degrees. What should i do in order to rotate this rectangle. by using glRasterPos i am positioning that rect somewhere on the screen. How would i keep it rotating? thanks:confused:
Why are you using glDrawPixels ? Can't you use glRect and then apply transformation on it (glRotate for instance) ?
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
Why are you using glDrawPixels ? Can't you use glRect and then apply transformation on it (glRotate for instance) ?
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++hello, i am using it because i was told to use it. I can't use OpenGL for rotation so somehow i need to apply the pixels from glDrawPixels to the rotation matrix... please don't tell me not to use glDrawPixels and use something else because i am just following the assignment. I must use it. So i am curious having that.. how can go around and trying to rotate those pixels with rotation matrix. NOT OPNEGL... I know it's not the best way to do it but this is what i am asked to do. thanks