C# Class Sharpex2D.Rendering.Texture2D

Inheritance: IContent
Datei anzeigen Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method Description
Lock ( ) : void

Locks the texture.

Texture2D ( int width, int height ) : System

Initializes a new Texture2D class.

Unlock ( ) : void

Unlocks the data.

this ( int x, int y ) : Color

Gets or sets the color of the specified texel.

The texture must be locked before accessing the color data.

Private Methods

Method Description
Texture2D ( ITexture texture ) : System

Initializes a new Texture2D class.

Method Details

Lock() public method

Locks the texture.
public Lock ( ) : void
return void

Texture2D() public method

Initializes a new Texture2D class.
public Texture2D ( int width, int height ) : System
width int The Width.
height int The Height.
return System

Unlock() public method

Unlocks the data.
public Unlock ( ) : void
return void

this() public method

Gets or sets the color of the specified texel.
The texture must be locked before accessing the color data.
public this ( int x, int y ) : Color
x int The x offset.
y int The y offset.
return Color