[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

OpenGL: Rendering bitmap with different palette



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