[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
OpenGL: Rendering bitmap with different palette
- To: linuxgames@sunsite.dk
- Subject: OpenGL: Rendering bitmap with different palette
- From: Francesco Orsenigo <xarvh@lombardiacom.it>
- Date: Sun, 14 Mar 2004 13:11:47 +0100
- Delivered-to: archiver@seul.org
- Delivered-to: mailing list linuxgames@sunsite.dk
- Delivery-date: Sun, 14 Mar 2004 07:08:19 -0500
- Mailing-list: contact linuxgames-help@sunsite.dk; run by ezmlm
- Organization: Xarvh Project
- Reply-to: linuxgames@sunsite.dk
- User-agent: KMail/1.5.4
Is possible to render a indexed bitmap with different color tables (color
indexes)?
Example:
===============
Startup code:
Load indexed bitmap from image.
===============
Draw code:
Select color pattern/table/palette (using glPixelMap() ?)
draw bitmap (using glBitmap() or glDrawPixels() or whatever)
I'm asking this because i can't find much informations about that.
It took me a week to figure out that glRasterPos() also changed the current
raster color (i could not find this on any online reference).
Are there any gl extension adding per-pixel management capabilities of this
sort?
Thanx all,
Francesco Orsenigo