Метод | Описание | |
---|---|---|
CreateVertexBuffer ( GraphicsDevice graphicsDevice ) : VertexBuffer |
Creates a vertex buffer from this vertex container
|
|
CreateVertexDeclaration ( ) : |
Dynamically creates a vertex declaration that fits the data contained by this vertex container.
|
|
HasElement ( VertexElementUsage element ) : bool |
Determines whether this container contains given element type
|
|
VertexContainer ( List |
Creates a vertex container from a set of "raw" vertex channels as read from the COLLADA file. Hence, it is assumed that each channel uses its own source (rather than every channel using the same single source).
|
Метод | Описание | |
---|---|---|
CalculateVertexSize ( List |
Calculates the size of a complete vertex in number of floats used
|
Метод | Описание | |
---|---|---|
ConvertColorChannels ( List |
Converts input channels that are used for colors from Vector3/Vector4 to single float format, if necessary.
|
|
ConvertColorToSingle ( Color color ) : System.Single |
Transforms the 4 color bytes to a single float. The resulting float might not be a valid float number; but only the bytes are important for usage later on the graphics card
|
protected CalculateVertexSize ( List |
||
channels | List |
|
Результат | int |
public CreateVertexBuffer ( GraphicsDevice graphicsDevice ) : VertexBuffer | ||
graphicsDevice | GraphicsDevice | |
Результат | VertexBuffer |
public CreateVertexDeclaration ( ) : |
||
Результат |
public HasElement ( VertexElementUsage element ) : bool | ||
element | VertexElementUsage | element usage |
Результат | bool |
public VertexContainer ( List |
||
inputChannels | List |
Original Input Channels from COLLADA file |
Результат | System |