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: HRESULT InitRender(LPDIRECT3DDEVICE8 lpD3DDEV); // 初期化 0016: void Render(LPDIRECT3DDEVICE8 lpD3DDEV); // 描画 0017: void CleanRender(LPDIRECT3DDEVICE8 lpD3DDEV); // 後片付け 0018: 0019: // ---------------------------------------------------------------------------- 0020: // 頂点の定義 0021: typedef struct { 0022: float x,y,z; 0023: float nx,ny,nz; 0024: float tu0,tv0; 0025: }D3DVERTEX; 0026: #define D3DFVF_VERTEX (D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1) 0027: 0028: 0029: 0030: #endif /* !_DRAW_H */ 0031: