C# Класс Sparrow.Textures.RenderTexture

Наследование: SubTexture
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Clear() публичный Метод

Clears the texture with a certain color and alpha value.
public Clear ( uint color, float alpha ) : void
color uint
alpha float
Результат void

DrawBundled() публичный Метод

Bundles several calls to 'drawObject' together in a block. This avoids framebuffer switches.
public DrawBundled ( System.Action block ) : void
block System.Action
Результат void

DrawObject() публичный Метод

Draws an object onto the texture, adhering its properties for position, scale, rotation and alpha.
public DrawObject ( DisplayObject obj ) : void
obj Sparrow.Display.DisplayObject
Результат void

RenderTexture() публичный Метод

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
Результат System