|
enum | eUsage {
USAGE_CHUNKMASK = 0xFF0
, USAGE_CHUNKMASKSHIFT = 4
, USAGE_TYPEMASK =0xF000
, USAGE_TYPEMASKSHIFT = 12
,
USAGE_FLOAT1 = 0<<USAGE_CHUNKMASKSHIFT
, USAGE_FLOAT2 = 1<<USAGE_CHUNKMASKSHIFT
, USAGE_FLOAT3 = 2<<USAGE_CHUNKMASKSHIFT
, USAGE_FLOAT4 = 3<<USAGE_CHUNKMASKSHIFT
,
USAGE_COLOR4 = 4<<USAGE_CHUNKMASKSHIFT
, USAGE_POSITION =0<<USAGE_TYPEMASKSHIFT
, USAGE_BLENDWEIGHT =1<<USAGE_TYPEMASKSHIFT
, USAGE_BLENDINDICES =2<<USAGE_TYPEMASKSHIFT
,
USAGE_NORMAL =3<<USAGE_TYPEMASKSHIFT
, USAGE_PSIZE =4<<USAGE_TYPEMASKSHIFT
, USAGE_TEXCOORD =5<<USAGE_TYPEMASKSHIFT
, USAGE_TANGENT =6<<USAGE_TYPEMASKSHIFT
,
USAGE_BINORMAL =7<<USAGE_TYPEMASKSHIFT
, USAGE_TESSFACTOR =8<<USAGE_TYPEMASKSHIFT
, USAGE_POSITIONT =9<<USAGE_TYPEMASKSHIFT
, USAGE_COLOR =10<<USAGE_TYPEMASKSHIFT
,
USAGE_FOG =11<<USAGE_TYPEMASKSHIFT
, USAGE_DEPTH =12<<USAGE_TYPEMASKSHIFT
, USAGE_SAMPLE =13<<USAGE_TYPEMASKSHIFT
, FLAGAOS_DONTCOPY_VERTICES = 1<<0
,
FLAGAOS_DONTCOPY_ELEMENTS = 1<<1
, FLAGAOS_DONTCOPY_MEMBERS = 1<<2
, FLAGAOS_VERTICES_DYNAMIC = 1<<3
, FLAGAOS_ELEMENTS_32BIT = 1<<4
,
FLAG_VERTEXDIRTY = 1<<30
, USAGE_END =0x7FFFFFFFU
} |
|
static DisplayObject * | GetFirstObject (void) |
| Get the first display object in the global linked list.
|
|
static void | ReleaseAll (Display *pDisplay) |
| Release all display objects.
|
|
| DisplayObject (void) |
| Add this display object to the global linked list.
|
|
virtual | ~DisplayObject () |
| Remove this display object from the global linked list.
|
|
const void * | m_pVertexArray |
| Pointer to the vertex data to upload, if NULL don't upload data.
|
|
uintptr_t | m_uVertexArraySize |
| Size in bytes of the entire vertex buffer, if 0, don't generate vertex data.
|
|
const void * | m_pElements |
| Pointer to the element index data to upload, NULL don't upload data.
|
|
uintptr_t | m_uElementSize |
| Size in bytes of the entire element buffer, if 0, don't generate an element index array.
|
|
const uint_t * | m_pMembers |
| Pointer to array of array description enumerations.
|
|
D3DVertexBuffer * | m_pD3DVertexBuffer |
| (XBox 360 Only) DirectX vertex buffer
|
|
D3DVertexDeclaration * | m_pD3DVertexDeclaration |
| (XBox 360 Only) DirectX vertex array description
|
|
D3DIndexBuffer * | m_pD3DIndexBuffer |
| (XBox 360 Only) DirectX index buffer
|
|
union { | |
|
struct { | |
|
IDirect3DVertexBuffer9 * m_pVertexBuffer | |
| DirectX 9 vertex buffer. More...
|
|
IDirect3DVertexDeclaration9 * m_pDescription | |
| DirectX 9 vertex array description. More...
|
|
IDirect3DIndexBuffer9 * m_pIndexBuffer | |
| DirectX 9 index buffer. More...
|
|
} m_DX9 | |
| DirectX 9 specific data. More...
|
|
struct { | |
|
uint_t m_uVertexArrayObjectID | |
| (OpenGL only) Main Vertex Object Array More...
|
|
uint_t m_uElementID | |
| (OpenGL only) ID to the index array More...
|
|
uint_t m_uBufferID | |
| (OpenGL only) ID for the buffer More...
|
|
} m_GL | |
| OpenGL specific data. More...
|
|
} | m_Platform | |
| Union of vertex buffer data for the platform.
|
|
uint_t | m_uStride |
| Size in bytes of each entry in the vertex array.
|
|
uint_t | m_uArrayEntryCount |
| Number of entries in the vertex array.
|
|
uint_t | m_uElementEntryCount |
| Number of entries in the element array.
|
|
uint_t | m_uMemberCount |
| Number of entries in the member array.
|
|
uint_t | m_uFlags |
| Flags describing how to treat the data.
|
|
DisplayObject * | m_pNextDisplayObject |
| Pointer to the next DisplayObject.
|
|
DisplayObject * | m_pPrevDisplayObject |
| Pointer to the previous DisplayObject.
|
|
static DisplayObject * | g_pHead = NULL |
| Global pointer to the linked list of display objects.
|
|