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
ENGINE.H
Package: openglsystem.rar [view]
Upload User: nthssl
Upload Date: 2022-04-05
Package Size: 25357k
Code Size: 1k
Category:
OpenCV
Development Platform:
Visual C++
- #ifndef __ENGINE_H
- #define __ENGINE_H
- #define WIN32_LEAN_AND_MEAN
- #define WIN32_EXTRA_LEAN
- #include "world.h"
- #include "oglwindow.h"
- #include "camera.h"
- #include "HiResTimer.h"
- #include <windows.h>
- #include <dinput.h>
- #include <gl/gl.h>
- #include <gl/glu.h>
- class CEngine : public COGLWindow
- {
- private:
- protected:
- CHiResTimer *timer; // 高分辨率计时器
- virtual void GameCycle(float deltaTime);
- virtual void OnPrepare() {} // 设置OpenGL
- virtual CCamera *OnGetCamera() { return NULL; }
- virtual CWorld *OnGetWorld() { return NULL; }
- virtual void CheckInput(float deltaTime);
- public:
- CEngine() {}
- CEngine(const char *szName, bool fscreen, int w, int h, int b) :
- COGLWindow(szName, fscreen, w, h, b) {}
- ~CEngine() {}
- LRESULT EnterMessageLoop();
- };
- #endif