C# Класс Sparrow.Textures.Texture

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

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

Метод Описание
AdjustPositions ( VertexData vertexData, uint startIndex, uint count ) : void

Moves the position coordinates stored at the given memory region into the format required for rendering. This happens for SubTextures that contain a 'frame'.

AdjustTexCoords ( VertexData vertexData, uint startIndex, uint count ) : void

Converts texture coordinates stored at the given memory region into the format required for rendering. While the texture coordinates of an image always use the range [0, 1], the actual coordinates could be different: you might be working with a SubTexture. This method adjusts the coordinates accordingly.

AdjustVertexData ( VertexData vertexData, uint startIndex, uint count ) : void

Converts texture coordinates and vertex positions of raw vertex data into the format required for rendering.

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

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

Moves the position coordinates stored at the given memory region into the format required for rendering. This happens for SubTextures that contain a 'frame'.
public AdjustPositions ( VertexData vertexData, uint startIndex, uint count ) : void
vertexData Sparrow.Utils.VertexData
startIndex uint
count uint
Результат void

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

Converts texture coordinates stored at the given memory region into the format required for rendering. While the texture coordinates of an image always use the range [0, 1], the actual coordinates could be different: you might be working with a SubTexture. This method adjusts the coordinates accordingly.
public AdjustTexCoords ( VertexData vertexData, uint startIndex, uint count ) : void
vertexData Sparrow.Utils.VertexData
startIndex uint
count uint
Результат void

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

Converts texture coordinates and vertex positions of raw vertex data into the format required for rendering.
public AdjustVertexData ( VertexData vertexData, uint startIndex, uint count ) : void
vertexData Sparrow.Utils.VertexData
startIndex uint
count uint
Результат void