[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
OpenGL texturing
- To: linuxgames@sunsite.dk
- Subject: OpenGL texturing
- From: Francesco Orsenigo <xarvh@lombardiacom.it>
- Date: Wed, 2 Apr 2003 14:04:39 +0200
- Delivered-to: archiver@seul.org
- Delivered-to: mailing list linuxgames@sunsite.dk
- Delivery-date: Wed, 02 Apr 2003 06:59:24 -0500
- Mailing-list: contact linuxgames-help@sunsite.dk; run by ezmlm
- Reply-to: linuxgames@sunsite.dk
How can i load a texture to use within OpenGL calls?
Each demo/tutorial i see uses different functions, many of wich are not
native OpenGL...
I'd need to perform many pixel-by-pixel color transformations: is this
possible after the texture is loaded?
Example:
for(each pixel)
if(pixel->red != 0 || pixel->blue != 0)
draw pixel; //draw the original pixel as is
else
draw table[pixel->green]; //use the green value to draw
a different color
Thanx to all,
Francesco Orsenigo