C# Class Glare.Graphics.Rendering.ModelAttribute

A vertex array channel for a ModelPart.
Mostrar archivo Open project: Burton-Radons/Alexandria

Public Properties

Property Type Description
Buffer GraphicsBuffer
Channel ModelAttributeChannel
Format System.Text.Format
Index int
Name string
OffsetInBytes int
Stride int

Public Methods

Method Description
ModelAttribute ( GraphicsBuffer buffer, int offsetInBytes, System.Text.Format format, int stride, ModelAttributeChannel channel, int index ) : System
ModelAttribute ( string name, GraphicsBuffer buffer, int offsetInBytes, System.Text.Format format, int stride, ModelAttributeChannel channel, int index ) : System

Private Methods

Method Description
GetName ( ModelAttributeChannel channel, int index ) : string

Method Details

ModelAttribute() public method

public ModelAttribute ( GraphicsBuffer buffer, int offsetInBytes, System.Text.Format format, int stride, ModelAttributeChannel channel, int index ) : System
buffer GraphicsBuffer
offsetInBytes int
format System.Text.Format
stride int
channel ModelAttributeChannel
index int
return System

ModelAttribute() public method

public ModelAttribute ( string name, GraphicsBuffer buffer, int offsetInBytes, System.Text.Format format, int stride, ModelAttributeChannel channel, int index ) : System
name string
buffer GraphicsBuffer
offsetInBytes int
format System.Text.Format
stride int
channel ModelAttributeChannel
index int
return System

Property Details

Buffer public_oe property

Get the buffer to bind this to.
public GraphicsBuffer Buffer
return GraphicsBuffer

Channel public_oe property

Get the ModelAttributeChannel for the ProgramAttribute to bind this to.
public ModelAttributeChannel Channel
return ModelAttributeChannel

Format public_oe property

Get the data format of the attribute. This must be a member of VectorFormats.
public Format,System.Text Format
return System.Text.Format

Index public_oe property

Get the zero-based index of the Channel to bind to.
public int Index
return int

Name public_oe property

Get the name of the channel to bind to.
public string Name
return string

OffsetInBytes public_oe property

Get the offset in bytes from the start of the Buffer to the attribute of the first vertex.
public int OffsetInBytes
return int

Stride public_oe property

Get the number of bytes between each attribute value, or 0 to use the size of the Format.
public int Stride
return int