C# Class Glare.Graphics.Rendering.ModelAttribute

A vertex array channel for a ModelPart.
Afficher le fichier Open project: Burton-Radons/Alexandria

Méthodes publiques

Свойство Type Description
Buffer GraphicsBuffer
Channel ModelAttributeChannel
Format System.Text.Format
Index int
Name string
OffsetInBytes int
Stride int

Méthodes publiques

Méthode 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

Méthode Description
GetName ( ModelAttributeChannel channel, int index ) : string

Method Details

ModelAttribute() public méthode

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
Résultat System

ModelAttribute() public méthode

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
Résultat System

Property Details

Buffer public_oe property

Get the buffer to bind this to.
public GraphicsBuffer Buffer
Résultat GraphicsBuffer

Channel public_oe property

Get the ModelAttributeChannel for the ProgramAttribute to bind this to.
public ModelAttributeChannel Channel
Résultat ModelAttributeChannel

Format public_oe property

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

Index public_oe property

Get the zero-based index of the Channel to bind to.
public int Index
Résultat int

Name public_oe property

Get the name of the channel to bind to.
public string Name
Résultat 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
Résultat 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
Résultat int