[Max2D] DirectX and RenderTargets

BlitzMax Forums/BlitzMax Programming/[Max2D] DirectX and RenderTargets

ChristianK(Posted 2007) [#1]
I'm trying to create a render target in Max2D, but it doesn't work. I'm not really familiar with DX7 so i need help.

I already created a surface, and set it as render target using: device.SetRenderTarget( surface, 0 )
But nothing happens. Max2D still renders to the back buffer. I hope you can help me.


TartanTangerine (was Indiepath)(Posted 2007) [#2]
You need to hack the modules since BMAX does not create surfaces that can be rendered to. I suggest you download some of the render to texture code to see how it's done.


ChristianK(Posted 2007) [#3]
Okay, i will try.
Thank you, Indiepath!


smilertoo(Posted 2007) [#4]
would be nice if this was added to the official libs.