TextureExtensions

Static Class in Zigurous.Graphics

Declaration

public static class TextureExtensions

Description

Extension methods for textures.

Extension Methods

GetPixelCoordinatesMaps the UV coordinates in the range [0..1] to pixel coordinates in the range [0..width-1] and [0..height-1].
GetUVCoordinatesMaps the pixel coordinates in the range [0..width-1] and [0..height-1] to UV coordinates in the range [0..1].
Sample
SetColorSets every pixel in the texture to the specified color.