Hi all!
Is it possible to lock an ITexture created with IVideoDriver::createRenderTargetTexture? Everytime I try to lock such a texture it returns NULL. Normal textures work fine.
Thanks
lock rendertarget texture
-
- Posts: 49
- Joined: Thu Aug 12, 2004 12:42 pm
- Location: Sweden
- Contact:
lock rendertarget texture
This monkey is useless, it only has ONE ass!!!
-
- Posts: 49
- Joined: Thu Aug 12, 2004 12:42 pm
- Location: Sweden
- Contact:
Update:
I've been able to lock the texture when using OpenGL, but not with directx 8 or 9. The weird thing with OpenGL is that when I use draw2DImage to draw the texture afterwards, it is flipped vertically. Also the colors returned by getPixel is wrong or different than expected.
I've been able to lock the texture when using OpenGL, but not with directx 8 or 9. The weird thing with OpenGL is that when I use draw2DImage to draw the texture afterwards, it is flipped vertically. Also the colors returned by getPixel is wrong or different than expected.
This monkey is useless, it only has ONE ass!!!
-
- Posts: 49
- Joined: Thu Aug 12, 2004 12:42 pm
- Location: Sweden
- Contact: