C# Class Sparrow.Textures.Texture

Show file Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Public Methods

Method Description
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.

Method Details

AdjustPositions() public method

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
return void

AdjustTexCoords() public method

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
return void

AdjustVertexData() public method

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
return void