ITexture: how to get access to pixels?

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
EViruS
Posts: 19
Joined: Sat Jul 07, 2007 8:32 pm

ITexture: how to get access to pixels?

Post by EViruS »

How to change some pixels on ITexture?
EViruS
Posts: 19
Joined: Sat Jul 07, 2007 8:32 pm

Re: ITexture: how to get access to pixels?

Post by EViruS »

EViruS wrote:How to change some pixels on ITexture?
I found solution:
void *p = ->lock()
getColorFormat
...

But how to save my modified texture to file?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Use the image writer.
EViruS
Posts: 19
Joined: Sat Jul 07, 2007 8:32 pm

Post by EViruS »

hybrid wrote:Use the image writer.
How to use it? Can you give me example?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply