Show / Hide Table of Contents

Struct TextureData

Holds Texture Dimensions and Pixel Data

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct TextureData

Properties

Height

Texture Height in Pixels

Declaration
public uint Height { readonly get; set; }
Property Value
Type Description
uint

Pixels

Texture Pixel Data as normalised four component RGBA floats when used for texture creation or reading RGBA texture data If used to pass Float32 Pixel data back from the GPU, then the first component is used only

Declaration
public Vector4[] Pixels { readonly get; set; }
Property Value
Type Description
Vector4[]

Width

Texture Width in Pixels

Declaration
public uint Width { readonly get; set; }
Property Value
Type Description
uint
In this article
Back to top yak2D - Alex Paterson