source: GTP/trunk/App/Demos/Illum/StochasticIteration/d3ddefs.h @ 1808

Revision 1808, 1.1 KB checked in by szirmay, 18 years ago (diff)
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
25typedef struct D3DVERTEX_1
26{
27float   fX,
28                fY,
29                fZ;
30float   fU,
31                fV;
32public:
33        D3DVERTEX_1();
34        D3DVERTEX_1(float       fX,float        fY,float        fZ,float        fU,float        fV);
35} D3DVERTEX_1;
36
37
38/**
39D3D vertex model structure. Corresponds to D3DFVF_CUSTOMVERTEX_MODEL
40*/
41typedef struct D3DVERTEX_MODEL
42{
43float   fX,
44                fY,
45                fZ,
46                fW;
47float   colorRGBr,
48                colorRGBg,
49                colorRGBb,
50                colorRGBa;
51float   u1,
52                v1;
53float   u2,
54                v2,
55                w2;
56float   u3,
57                v3,
58                w3,
59                a3;
60float   nX,
61                nY,
62                nZ,
63                nW;
64} D3DVERTEX_MODEL;
65
66#endif
Note: See TracBrowser for help on using the repository browser.