RB.Offscreen
Method - Static
Parameters
Returns
Nothing.
Description
Switch rendering target to a sprite sheet given by spriteSheetIndex. All rendering that follows will be done on the sprite sheet until end of frame, or until RB.Offscreen or RB.Onscreen is called.
The target sprite sheet could be any sprite sheet, including one loaded from an image, a sprite pack, or a blank sprite sheet.
The results can then be copied to the display by targeting the display again with RB.Onscreen, and copying from the previously targeted sprite sheet with RB.DrawCopy.
This is a very powerful feature of RetroBlit, it can be used for numerous effects, and mixed with custom shaders.
Example
See Also
RB.Onscreen
RB.ShaderSet
See Docs
Features - Drawing into a Sprite Sheet
Features - Shaders (Advanced Topic)
|