C# 클래스 Axiom.Graphics.VertexElement

This class declares the usage of a single vertex buffer as a component of a complete VertexDeclaration.
상속: ICloneable
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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