Rev | Line | |
---|
[1488] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | \brief A simple cube mesh.
|
---|
| 5 |
|
---|
| 6 | Texture coordinates range from 0..1 for each face, thus no texture atlas is necessary
|
---|
| 7 | when texturing all faces with the same texture.
|
---|
| 8 | See EnvMap::DrawEnvObjects().
|
---|
| 9 | */
|
---|
| 10 | class Cube
|
---|
| 11 | {
|
---|
| 12 | IDirect3DDevice9* pd3dDevice;
|
---|
| 13 | HRESULT hr;
|
---|
| 14 |
|
---|
| 15 | public:
|
---|
| 16 | IDirect3DVertexBuffer9 *pVertexBuffer;
|
---|
| 17 | Cube(IDirect3DDevice9* pd3dDevice);
|
---|
| 18 | void Destroy();
|
---|
| 19 | void PrepareDrawing();
|
---|
| 20 | void Draw();
|
---|
| 21 | void DrawFace(int index);
|
---|
| 22 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.