I know it is little offtopic but not really. I have to implement a livepic in my OpenGL app. But the camera gives me a 320x240 bmp. I need to turn it 90° to get a 240x320 rect. What is the fastest way to do it to keep it in real time?

why not putting everything on a quad and simply change the uv coords of the texture, so that it is in the right position.

Robbo

06-14-2002, 05:12 AM

The above method is the fastest way of doing it (actually, you are not rotating it at all). The other way to do it would be to scan along the X of the source image, putting the pixels along the Y in the destination image.