
2D Rastering
Hey,
How does one go about drawing 2D elements on screen, like a HUD, or border around your scene? I''ve tried glDrawPixels, but it completely kills performance for a large image. The other way i''ve tried is adding quads, each textured with a tiled segment of my image and stencilled, however this seems to be a most awkward method, as i''m effectively taking 2D screen coords, feeding them to opengl which turns them into 3D world coords, then turns them back to 2D and rasterises them. I realise with acceleration this isn''t inefficient, but it seems a mighty odd way of doing it.
Is there a simpler way? Like locking the video memory and manually blitting? I considered trying to use OpenGL behind DirectDraw, but i''ve yet to downlooad the DX SDK, and i''ve not looked at it enough to know how difficult/futile it''d be
Anyhow, any help appreciated!
Stikman/
Never underestimate the power of stupid people in large groups.

Never underestimate the power of stupid people in large groups.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement