C# 클래스 Sparrow.Textures.RenderTexture

상속: SubTexture
파일 보기 프로젝트 열기: fmotagarcia/sparrow-sharp

공개 메소드들

메소드 설명
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