Main > Features > Render Targets

Tiny2D supports drawing to render targets which can also
be used as textures (aka render textures).

Sample code:

// Initialization

Texture renderTarget;
renderTarget.CreateRenderTarget(512, 512);

// Rendering to render target

renderTarget.BeginDrawing();
texture.Draw(10, 10);
renderTarget.EndDrawing();

// Using render target as a texture

renderTarget.Draw(30, 30);





Contact: contact at pixelelephant dot com
(C) 2013 Pixel Elephant - All Rights Reserved