Rev | Line | |
---|
[846] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | //#include "DXUT.h"
|
---|
| 4 |
|
---|
| 5 | //struct to define vertex for the FVF
|
---|
| 6 |
|
---|
| 7 | typedef struct D3DVERTEX_1
|
---|
| 8 | {
|
---|
| 9 | float fX,
|
---|
| 10 | fY,
|
---|
| 11 | fZ,
|
---|
| 12 | fW;
|
---|
| 13 | float fU,
|
---|
| 14 | fV;
|
---|
| 15 | public:
|
---|
| 16 | D3DVERTEX_1(){
|
---|
| 17 |
|
---|
| 18 | }
|
---|
| 19 | D3DVERTEX_1(float fX,float fY,float fZ,float fW, float fU, float fV)
|
---|
| 20 | {
|
---|
| 21 | this->fX=fX;
|
---|
| 22 | this->fY=fY;
|
---|
| 23 | this->fZ=fZ;
|
---|
| 24 | this->fW=fW;
|
---|
| 25 | this->fU=fU;
|
---|
| 26 | this->fV=fV;
|
---|
| 27 |
|
---|
| 28 | }
|
---|
| 29 | } D3DVERTEX_1;
|
---|
| 30 |
|
---|
| 31 | //Flexible vertex format define
|
---|
| 32 |
|
---|
| 33 | #define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZW | D3DFVF_TEX0 |D3DFVF_TEXCOORDSIZE2(0))
|
---|
| 34 |
|
---|
| 35 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.