mirror of
https://github.com/aap/librw.git
synced 2026-07-24 07:47:04 +01:00
changed project structure, made VS projects, added d3d9 support and viewer, worked on xbox instancing
This commit is contained in:
@@ -30,4 +30,27 @@ public:
|
||||
virtual void render(Atomic *atomic);
|
||||
};
|
||||
|
||||
void findMinVertAndNumVertices(uint16 *indices, uint32 numIndices, uint32 *minVert, uint32 *numVertices);
|
||||
|
||||
// everything xbox, d3d8 and d3d9 may want to use
|
||||
enum {
|
||||
VERT_BYTE2 = 1,
|
||||
VERT_BYTE3,
|
||||
VERT_SHORT2,
|
||||
VERT_SHORT3,
|
||||
VERT_NORMSHORT2,
|
||||
VERT_NORMSHORT3,
|
||||
VERT_FLOAT2,
|
||||
VERT_FLOAT3,
|
||||
VERT_ARGB,
|
||||
VERT_COMPNORM
|
||||
};
|
||||
|
||||
#define COLOR_ARGB(a,r,g,b) \
|
||||
((uint32)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff)))
|
||||
|
||||
void instV3d(int type, uint8 *dst, float *src, uint32 numVertices, uint32 stride);
|
||||
void instV2d(int type, uint8 *dst, float *src, uint32 numVertices, uint32 stride);
|
||||
bool32 instColor(int type, uint8 *dst, uint8 *src, uint32 numVertices, uint32 stride);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user