Screen, Sprite and RenderToTexture

Advanced game related topics
User avatar
[blendman]
Enthusiast
Enthusiast
Posts: 297
Joined: Thu Apr 07, 2011 1:14 pm
Location: 3 arks
Contact:

Screen, Sprite and RenderToTexture

Post by [blendman] »

Hi

I would like to render some sprites on a "surface" (render to texture). But I think it's not possible for the moment in purebasic.

I would like to draw(on the screen for example) :
- some sprites (under)
- the surface / render to texture (on which I draw sprite, and shader eventually)
- the other sprites (above)

Do you know how I can do that in purebasic ?

I know that MP3D can do that, but in "native" (with sprite/screen) I don't know how to do that. Perhap's there is an include that helps to do that, but I don't know if it exists.
Do you know How I can do that ?

Thank you.