SimpleVertexStream Struct Reference
 
 
 
SimpleVertexStream Struct Reference

#include <IPrimitiveRenderer.h>

Inheritance diagram for SimpleVertexStream:
MaxHeapOperators

Class Description

Used by DrawPrimitive and DrawIndexedPrimitive for vertex data.

It is used for all types of primitive. The pointers should point to arrays in system memory.

Remarks:
The size of the arrays should be at least the same as "primitiveCount" passed in DrawPrimitive and DrawIndexedPrimitive. Simply set an array to NULL if it is not needed, however Positions should never be NULL, it must always have valid data. This structure is used to define a simple vertex stream
See also:
IPrimitiveRenderer::DrawPrimitive() IPrimitiveRenderer::DrawIndexedPrimitive()

Public Types

enum   { MaximalTextureStreams = 4 }

Public Member Functions

  SimpleVertexStream ()

Public Attributes

Point3 Positions
  Position array.
Point3 Normals
  Normals array.
Point4 Colors
  Vertex Color array.
TextureCoordStream  TextureStreams [MaximalTextureStreams]
  Texture coordinate array.

Member Enumeration Documentation

anonymous enum
Enumerator:
MaximalTextureStreams 

The maximum number of texture streams.


Constructor & Destructor Documentation


Member Data Documentation

TextureCoordStream TextureStreams[MaximalTextureStreams]

Texture coordinate array.

The number of TextureCoordStreams is defined by "MaximalTextureStreams".