Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Game.h
Package: directx8中文教程.zip [view]
Upload User: whgydz
Upload Date: 2007-01-12
Package Size: 2259k
Code Size: 1k
Category:
Other Books
Development Platform:
HTML/CSS
- // Game.h: interface for the CGame class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_GAME_H__687221F3_ACFF_4D66_97DB_88AB70E0CA59__INCLUDED_)
- #define AFX_GAME_H__687221F3_ACFF_4D66_97DB_88AB70E0CA59__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include <d3dx8.h>
- #include "Base.h"
- #include "Cuboid.h"
- #include "Terrain.h"
- #include "Sphere.h"
- #include "Cone.h"
- #include "Cylinder.h"
- #include "Mesh.h"
- class CGame : public CBase
- {
- public:
- bool Initialise(HWND hWnd, UINT nWidth, UINT nHeight);
- void GameLoop();
- LPDIRECT3DDEVICE8 GetDevice();
- CGame();
- virtual ~CGame();
- private:
- bool InitialiseLights();
- D3DFORMAT CheckDisplayMode(UINT nWidth, UINT nHeight, UINT nDepth);
- bool InitialiseGame();
- bool InitialiseD3D(HWND hWnd, UINT nWidth, UINT nHeight);
- void Render();
- LPDIRECT3D8 m_pD3D;
- LPDIRECT3DDEVICE8 m_pD3DDevice;
- void SetupCamera();
- DWORD m_dwFrames;
- DWORD m_dwStartTime;
- DWORD m_dwEndTime;
- DWORD m_dwTotalPolygons;
- CMesh* m_pMesh1;
- CMesh* m_pMesh2;
- CMesh* m_pMesh3;
- };
- #endif // !defined(AFX_GAME_H__687221F3_ACFF_4D66_97DB_88AB70E0CA59__INCLUDED_)