absence_thelab
diff src/3deng/3dengtypes.h @ 0:1cffe3409164
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 23 Oct 2014 01:46:07 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/3deng/3dengtypes.h Thu Oct 23 01:46:07 2014 +0300 1.3 @@ -0,0 +1,22 @@ 1.4 +#ifndef _3DENGTYPES_H_ 1.5 +#define _3DENGTYPES_H_ 1.6 + 1.7 +#include "d3d8.h" 1.8 +#include "typedefs.h" 1.9 + 1.10 +typedef IDirect3DSurface8 Surface; 1.11 +typedef IDirect3DTexture8 Texture; 1.12 +typedef IDirect3DVertexBuffer8 VertexBuffer; 1.13 +typedef IDirect3DIndexBuffer8 IndexBuffer; 1.14 + 1.15 +#define FixedFunction VertexFormat 1.16 + 1.17 +//const dword VertexFormat = D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE | D3DFVF_TEX4; 1.18 +//const dword VertexFormat = D3DFVF_XYZ | D3DFVF_XYZB1 | D3DFVF_NORMAL | D3DFVF_DIFFUSE | D3DFVF_TEX4; 1.19 +const dword VertexFormat = D3DFVF_XYZB2 | D3DFVF_LASTBETA_UBYTE4 | D3DFVF_NORMAL | D3DFVF_DIFFUSE | D3DFVF_TEX4; 1.20 +const D3DFORMAT IndexFormat = D3DFMT_INDEX16; 1.21 +const dword IndexSize = 2; 1.22 +typedef uint16 Index; 1.23 + 1.24 + 1.25 +#endif // _3DENGTYPES_H_ 1.26 \ No newline at end of file