C# Класс Glare.Graphics.Rendering.ModelAttribute

A vertex array channel for a ModelPart.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Buffer GraphicsBuffer
Channel ModelAttributeChannel
Format System.Text.Format
Index int
Name string
OffsetInBytes int
Stride int

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetName ( ModelAttributeChannel channel, int index ) : string

Описание методов

ModelAttribute() публичный Метод

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
Результат System

ModelAttribute() публичный Метод

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
Результат System

Описание свойств

Buffer публичное свойство

Get the buffer to bind this to.
public GraphicsBuffer Buffer
Результат GraphicsBuffer

Channel публичное свойство

Get the ModelAttributeChannel for the ProgramAttribute to bind this to.
public ModelAttributeChannel Channel
Результат ModelAttributeChannel

Format публичное свойство

Get the data format of the attribute. This must be a member of VectorFormats.
public Format,System.Text Format
Результат System.Text.Format

Index публичное свойство

Get the zero-based index of the Channel to bind to.
public int Index
Результат int

Name публичное свойство

Get the name of the channel to bind to.
public string Name
Результат string

OffsetInBytes публичное свойство

Get the offset in bytes from the start of the Buffer to the attribute of the first vertex.
public int OffsetInBytes
Результат int

Stride публичное свойство

Get the number of bytes between each attribute value, or 0 to use the size of the Format.
public int Stride
Результат int