C# Класс Sharpex2D.Rendering.Texture2D

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

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

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

Приватные методы

Метод Описание
Texture2D ( ITexture texture ) : System

Initializes a new Texture2D class.

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

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

Locks the texture.
public Lock ( ) : void
Результат void

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

Initializes a new Texture2D class.
public Texture2D ( int width, int height ) : System
width int The Width.
height int The Height.
Результат System

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

Unlocks the data.
public Unlock ( ) : void
Результат void

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

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