Line | |
---|
1 | /**
|
---|
2 | @author Barsi Attila
|
---|
3 | @copyright BMGE Department of Control Engineering and Informatics
|
---|
4 | @brief Direct3D FVFs and vertex structures.
|
---|
5 | */
|
---|
6 | #pragma once
|
---|
7 |
|
---|
8 | #ifndef d3ddefs_h
|
---|
9 | #define d3ddefs_h
|
---|
10 |
|
---|
11 |
|
---|
12 |
|
---|
13 | //constants
|
---|
14 | #define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ | D3DFVF_TEX1)
|
---|
15 |
|
---|
16 | #define D3DFVF_CUSTOMVERTEX_MODEL2 (D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_LASTBETA_D3DCOLOR)
|
---|
17 |
|
---|
18 | #define D3DFVF_CUSTOMVERTEX_MODEL (D3DFVF_XYZW | D3DFVF_DIFFUSE| D3DFVF_TEX0| D3DFVF_TEX1 | D3DFVF_TEX2| D3DFVF_NORMAL |D3DFVF_TEXCOORDSIZE2(0)|D3DFVF_TEXCOORDSIZE3(1)|D3DFVF_TEXCOORDSIZE4(2))
|
---|
19 |
|
---|
20 |
|
---|
21 | /**
|
---|
22 | D3D vertex structure corresponds to D3DFVF_CUSTOMVERTEX.
|
---|
23 | */
|
---|
24 | //structures
|
---|
25 | typedef struct D3DVERTEX_1
|
---|
26 | {
|
---|
27 | float fX,
|
---|
28 | fY,
|
---|
29 | fZ;
|
---|
30 | float fU,
|
---|
31 | fV;
|
---|
32 | public:
|
---|
33 | D3DVERTEX_1();
|
---|
34 | D3DVERTEX_1(float fX,float fY,float fZ,float fU,float fV);
|
---|
35 | } D3DVERTEX_1;
|
---|
36 |
|
---|
37 |
|
---|
38 | /**
|
---|
39 | D3D vertex model structure. Corresponds to D3DFVF_CUSTOMVERTEX_MODEL
|
---|
40 | */
|
---|
41 | typedef struct D3DVERTEX_MODEL
|
---|
42 | {
|
---|
43 | float fX,
|
---|
44 | fY,
|
---|
45 | fZ,
|
---|
46 | fW;
|
---|
47 | float colorRGBr,
|
---|
48 | colorRGBg,
|
---|
49 | colorRGBb,
|
---|
50 | colorRGBa;
|
---|
51 | float u1,
|
---|
52 | v1;
|
---|
53 | float u2,
|
---|
54 | v2,
|
---|
55 | w2;
|
---|
56 | float u3,
|
---|
57 | v3,
|
---|
58 | w3,
|
---|
59 | a3;
|
---|
60 | float nX,
|
---|
61 | nY,
|
---|
62 | nZ,
|
---|
63 | nW;
|
---|
64 | } D3DVERTEX_MODEL;
|
---|
65 |
|
---|
66 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.