Copy part of texture into another

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
ghs

Copy part of texture into another

Post by ghs »

Hello.

Is there any way to copy part (rect) of one texture into another in Irrlicht without going into DX/OpenGL native procedures or changing RenderTarget? If any - does it work with RenderTargetTextures?

And how can I access pixels of RenderTargetTexture? Textures created with createRenderTargetTexture() can not be locked under DX9...
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

emil halim's magic2d library has good texture editing features, and there is no way to lock a render target atm.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
turboferret
Posts: 49
Joined: Thu Aug 12, 2004 12:42 pm
Location: Sweden
Contact:

Post by turboferret »

Here's my fix for locking d3d8/9 rendertargets
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=10154
This monkey is useless, it only has ONE ass!!!
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

my bad, i'm sure i saw this somewhere before but i couldn't find it in search so thought i must have been mistaken. nice work turboferret :)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
turboferret
Posts: 49
Joined: Thu Aug 12, 2004 12:42 pm
Location: Sweden
Contact:

Post by turboferret »

heh thanks :)
This monkey is useless, it only has ONE ass!!!
Post Reply