C# Класс Axiom.Graphics.VertexElement

This class declares the usage of a single vertex buffer as a component of a complete VertexDeclaration.
Наследование: ICloneable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
index int
offset int
semantic VertexElementSemantic
source short
type VertexElementType

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

Метод Описание
Clone ( ) : object

Simple memberwise clone since all local fields are value types.

ConvertColorValue ( ColorEx color, VertexElementType colorVertexElementType ) : int
GetTypeCount ( VertexElementType type ) : int

Utility method which returns the count of values in a given type.

GetTypeSize ( VertexElementType type ) : int

Utility method for helping to calculate offsets.

MultiplyTypeCount ( VertexElementType type, int count ) : VertexElementType

Returns proper enum for a base type multiplied by a value. This is helpful when working with tex coords especially since you might not know the number of texture dimensions at runtime, and when creating the VertexBuffer you will have to get a VertexElementType based on that amount to creating the VertexElement.

VertexElement ( short source, int offset, VertexElementType type, VertexElementSemantic semantic ) : System

Constructor.

VertexElement ( short source, int offset, VertexElementType type, VertexElementSemantic semantic, int index ) : System

Constructor.

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

Clone() публичный метод

Simple memberwise clone since all local fields are value types.
public Clone ( ) : object
Результат object

ConvertColorValue() публичный статический метод

public static ConvertColorValue ( ColorEx color, VertexElementType colorVertexElementType ) : int
color ColorEx
colorVertexElementType VertexElementType
Результат int

GetTypeCount() публичный статический метод

Utility method which returns the count of values in a given type.
public static GetTypeCount ( VertexElementType type ) : int
type VertexElementType
Результат int

GetTypeSize() публичный статический метод

Utility method for helping to calculate offsets.
public static GetTypeSize ( VertexElementType type ) : int
type VertexElementType
Результат int

MultiplyTypeCount() публичный статический метод

Returns proper enum for a base type multiplied by a value. This is helpful when working with tex coords especially since you might not know the number of texture dimensions at runtime, and when creating the VertexBuffer you will have to get a VertexElementType based on that amount to creating the VertexElement.
public static MultiplyTypeCount ( VertexElementType type, int count ) : VertexElementType
type VertexElementType Data type.
count int Multiplier.
Результат VertexElementType

VertexElement() публичный метод

Constructor.
public VertexElement ( short source, int offset, VertexElementType type, VertexElementSemantic semantic ) : System
source short The source vertex buffer, as bound to an index using .
offset int The offset in the buffer that this element starts at.
type VertexElementType The type of element.
semantic VertexElementSemantic The meaning of the element.
Результат System

VertexElement() публичный метод

Constructor.
public VertexElement ( short source, int offset, VertexElementType type, VertexElementSemantic semantic, int index ) : System
source short The source vertex buffer, as bound to an index using .
offset int The offset in the buffer that this element starts at.
type VertexElementType The type of element.
semantic VertexElementSemantic The meaning of the element.
index int Index of the item, only applicable for some elements like texture coords.
Результат System

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

index защищенное свойство

Index of the item, only applicable for some elements like texture coords.
protected int index
Результат int

offset защищенное свойство

The offset in the buffer that this element starts at.
protected int offset
Результат int

semantic защищенное свойство

The meaning of the element.
protected VertexElementSemantic semantic
Результат VertexElementSemantic

source защищенное свойство

The source vertex buffer, as bound to an index using VertexBufferBinding.
protected short source
Результат short

type защищенное свойство

The type of element.
protected VertexElementType type
Результат VertexElementType