C# Class Sharpex2D.Rendering.Texture2D

Inheritance: IContent
Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Texture2D ( ITexture texture ) : System

Initializes a new Texture2D class.

Method Details

Lock() public méthode

Locks the texture.
public Lock ( ) : void
Résultat void

Texture2D() public méthode

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

Unlock() public méthode

Unlocks the data.
public Unlock ( ) : void
Résultat void

this() public méthode

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.
Résultat Color