0001: // ---------------------------------------------------------------------------- 0002: // 0003: // draw.h - 全体的な定義 0004: // 0005: // Copyright (c) 2001 if (if@edokko.com) 0006: // All Rights Reserved. 0007: // 0008: // ---------------------------------------------------------------------------- 0009: #ifndef _DRAW_H 0010: #define _DRAW_H 0011: 0012: #include <d3d8.h> 0013: #include <d3dx8.h> 0014: 0015: class IdMgr{ 0016: static float id; 0017: public: 0018: static void Reset(){id=0.0f;} 0019: static float GetId() {return id+=32.0f/256.0f;} 0020: }; 0021: 0022: HRESULT InitRender(LPDIRECT3DDEVICE8 lpD3DDEV); // 初期化 0023: void Render(LPDIRECT3DDEVICE8 lpD3DDEV); // 描画 0024: void CleanRender(LPDIRECT3DDEVICE8 lpD3DDEV); // 後片付け 0025: 0026: // ---------------------------------------------------------------------------- 0027: // 頂点の定義 0028: typedef struct { 0029: float x,y,z; 0030: float nx,ny,nz; 0031: float tu0,tv0; 0032: }D3DVERTEX; 0033: #define D3DFVF_VERTEX (D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1) 0034: 0035: 0036: 0037: #endif /* !_DRAW_H */ 0038: