Archived

This topic is now archived and is closed to further replies.

snickles

Drawing in 2D - glBitmap?

Recommended Posts

I'm trying to draw a simple 2D picture to the screen, while drawing 3D stuff too, and I was wondering how I did it... I *THINK* I've found what I want - glBitmap - but my problem is the last argument - a pointer to the bitmap that's of a type GLubyte... But I've NO idea how to load this bitmap to a type GLubyte.. is it something like GenTextures but for bitmaps or something? If this is COMPLETELY wrong (I'm trying to do a simple BLT like you would in win32 GDI or DirectDraw) then please tell me the right way to do it. Thanks. Nick Edited by - snickles on March 20, 2001 2:01:41 PM

Share this post


Link to post
Share on other sites
I don''t know exactly what you want to do and i can''t say
you anything to ''glBitmap'' but first simply take a quad and
mapped it with a textur, i know it is not the best way
but it works.

Share this post


Link to post
Share on other sites
You want glCopyPixels(...) but using a textured quad with an orthographic projection is the fastest way to do it.

The fanatic is incorruptible: if he kills for an idea, he can just as well get himself killed for one; in either case, tyrant or martyr, he is a monster.
--EM Cioran

Opere Citato

Share this post


Link to post
Share on other sites