Advertisement

Drawing in 2D - glBitmap?

Started by March 20, 2001 12:59 PM
1 comment, last by snickles 23 years, 8 months ago
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
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.
Advertisement
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
"... we should have such an empire for liberty as she has never surveyed since the creation ..."Thomas Jefferson

This topic is closed to new replies.

Advertisement