From: Kevin M. <ke...@vr...> - 2002-04-11 01:53:24
|
or you could disable textures for those elements... or since you are loading the image, you could iterate over the pixels and set the colors yourself... if all you need is a single solid color, just make a 4x4 image, and set all 8 pixels to your color. you may want to test performance for all these cases... @--@---@---@----@-----@------@------@-----@----@---@---@--@ Kevin Meinert __ _ __ http://www.vrac.iastate.edu/~kevn \ || \| \ / ` Virtual Reality Applications Center \ ||.-'|--\\ Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, ----------------------------------------------------------- On Wed, 10 Apr 2002, Josh Brown wrote: > > I am working on a simple game that is texturing polygons using mipmapping. > I have 4 textures drawn they all use 1 color, I need a copy of those > textures in a different color. Is there a way to make openGL draw the > texture using a different color? Is there a flag that when I call > glColor3f(...) sets the color of a texture map. Or am I going to have to > settle for making a new set of the textures in the different color and > applying those instead of originals? > > Thanks > Josh > > > _______________________________________________ > ISUGameDev-devel mailing list > ISU...@li... > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > |