source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/Standalone/EnvMap [DirectX]/Cube.h @ 3255

Revision 3255, 478 bytes checked in by szirmay, 15 years ago (diff)
Line 
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*/
10class Cube
11{
12        IDirect3DDevice9* pd3dDevice;
13        HRESULT hr;
14
15public:
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.