non-texture bitmaps
i wondered how i can add non texture bitmaps to my scene.
like a 640x60 picture.
- cD_
February 22, 2001 09:45 PM
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.
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)
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
Popular Topics
Advertisement