How to copy a part of a ITexture to another

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
Guest

How to copy a part of a ITexture to another

Post by Guest »

Hello,

I am a begginer with IRRLICHT and find it awesome!

I was wondering if there a simple way to copy a part of a ITexture image to another ITexture. I noticed there a way of doing this in C++ using the lock() method for obtaining a pointer to the image and then performing a memcopy. Unfortunatelly the lock() method of the ITexture object is not implemented in .NET (but documented).

Is there a way to do this using Draw2DImage to render the ITexture?

Thank you in advance for your answers.

dan
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

It would be possible if the other texture would be a rendertarget texture, created using createRenderTargetTexture(). But it would be better if the lock() method would be available in .NET, right.
Locked