PDA

View Full Version : TLVertex in OpenGL



mdive
06-04-2003, 03:46 AM
hello.

In Microsoft DirectX, we often use TLVertex for 2D background image rendering.

In OpenGL, how do I render 2D background image? What kind of vertex can I use?

If you know solution, I'm glad to listen the solution.

sorry, my broken English.
thanks.

kehziah
06-04-2003, 06:01 AM
2 solutions :

1/Use glDrawPixels
2/Use a textured quad (with proper projection matrix, ie orthographic projection)

mdive
06-04-2003, 09:57 PM
I try to get 2D image by textured quad and glOrtho function. And I got 2D image.

I'm glad to hear your advice.
Thank you very much.