Hi everyone, i'm new here :)

Started by
10 comments, last by MARS_999 19 years, 2 months ago
Hey, i really like this SDL stuff. I'm learning a lot faster than i did with GLUT.

I just have a question about images. Is tehre anyway i can draw an imported image on the screen, but rotated a certain amount of degrees?

Gavin
-------------------------------------Physics Labhttp://www.physics-lab.netC++ Labhttp://cpp.physics-lab.net
Advertisement
Quote:Original post by Gavinl
Hey, i really like this SDL stuff. I'm learning a lot faster than i did with GLUT.

I just have a question about images. Is tehre anyway i can draw an imported image on the screen, but rotated a certain amount of degrees?

Gavin


If you just want to rotate the image as a whole just call
glRotatef(45.0f, 0.0f, 0.0f, 1.0f);


That will rotate your polygon by 45 on Z axis.

This topic is closed to new replies.

Advertisement