Method | 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 ( |
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.
|
public Clear ( uint color, float alpha ) : void | ||
color | uint | |
alpha | float | |
return | void |
public DrawBundled ( System.Action block ) : void | ||
block | System.Action | |
return | void |
public DrawObject ( |
||
obj | ||
return | void |
public RenderTexture ( float width, float height, uint argbFillColor = 0x0, float scale = 1.0f ) : System | ||
width | float | |
height | float | |
argbFillColor | uint | |
scale | float | |
return | System |