Faster single color determination in a texture

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
de3000
Posts: 20
Joined: Tue Sep 19, 2006 4:57 pm
Location: South Africa

Faster single color determination in a texture

Post by de3000 »

Is there a faster way to check if an ITexture is a single color other than converting it to an IImage and checking every pixel?
Nox
Posts: 304
Joined: Wed Jan 14, 2009 6:23 pm

Post by Nox »

You can lock it directly and check the buffer but anyway you need to move the data from the graphic-ram to the system-ram to do this (is done automatically if the texture is locked without a writeonly-flag).
Post Reply