Advertisement

non-texture bitmaps

Started by February 22, 2001 05:37 AM
1 comment, last by cD_ 23 years, 9 months ago
i wondered how i can add non texture bitmaps to my scene. like a 640x60 picture. - cD_
You can draw bitmaps with OpenGL but it is really slow for big bitmaps. If speed is a concern is it better to use textures.
Advertisement
There are three ways you can do it: glBitmap, glDrawPixels, and a texture-mapped quad.

glBitmap is limited to bitmaps (1 bit/pixel) and thus you can''t draw pixmaps (truecolor).

glDrawPixels can draw any type but is very slow.

A texture-mapped quad is the fastest and simplest way to do it that I know.

Jason A.

---
I write code.
DelphiGL (http://delphigl.cfxweb.net)
---I write code.DelphiGL (http://delphigl.cfxweb.net)

This topic is closed to new replies.

Advertisement