C# Class Sparrow.Textures.RenderTexture

Inheritance: SubTexture
Afficher le fichier Open project: fmotagarcia/sparrow-sharp

Méthodes publiques

Méthode Description
Clear ( uint color, float alpha ) : void

Clears the texture with a certain color and alpha value.

DrawBundled ( System.Action block ) : void

Bundles several calls to 'drawObject' together in a block. This avoids framebuffer switches.

DrawObject ( DisplayObject obj ) : void

Draws an object onto the texture, adhering its properties for position, scale, rotation and alpha.

RenderTexture ( float width, float height, uint argbFillColor = 0x0, float scale = 1.0f ) : System

Initializes a render texture with a certain ARGB color (0xAARRGGBB) and a scale factor.

Method Details

Clear() public méthode

Clears the texture with a certain color and alpha value.
public Clear ( uint color, float alpha ) : void
color uint
alpha float
Résultat void

DrawBundled() public méthode

Bundles several calls to 'drawObject' together in a block. This avoids framebuffer switches.
public DrawBundled ( System.Action block ) : void
block System.Action
Résultat void

DrawObject() public méthode

Draws an object onto the texture, adhering its properties for position, scale, rotation and alpha.
public DrawObject ( DisplayObject obj ) : void
obj Sparrow.Display.DisplayObject
Résultat void

RenderTexture() public méthode

Initializes a render texture with a certain ARGB color (0xAARRGGBB) and a scale factor.
public RenderTexture ( float width, float height, uint argbFillColor = 0x0, float scale = 1.0f ) : System
width float
height float
argbFillColor uint
scale float
Résultat System