how to change the color of the blit from a texture?

Started by qjvictor, November 20, 2006, 06:01:03 PM

Previous topic - Next topic

qjvictor

I blitted some words and numbers from a texture, but I need to change the color of these dynamically, so is it possible to change it?
Thanks

EgonOlsen

You either have to use different colored textures for this or manipulate the texture by implementing an ITextureEffect. However, please keep in mind that manipulating a texture's pixel data results in destroying the existing texture and uploading the new one to the graphics card if OpenGL is being used. So in case of the hardware renderer, it will get quite slow when doing this per frame. Doing it once in a while is fine.

qjvictor