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
SIMPENGINE.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 __SIMPENGINE
- #define __SIMPENGINE
- #define WIN32_LEAN_AND_MEAN
- #define WIN32_EXTRA_LEAN
- #include <windows.h>
- #include <gl/gl.h>
- #include <gl/glu.h>
- #include "engine.h"
- #include "object.h"
- #include "camera.h"
- #include "terrain.h"
- #include "world.h"
- class CSimpEngine : public CEngine
- {
- private:
- CCamera *gameCamera;
- CWorld *gameWorld;
- protected:
- CCamera *OnGetCamera() { return gameCamera; }
- CWorld *OnGetWorld() { return gameWorld; }
- void OnPrepare();
- void OnMouseDownL(float x, float y);
- void OnMouseMove(int deltaX, int deltaY);
- void OnMouseMove(int x, int y, int centerX, int centerY);
- void OnKeyDown(int nVirtKey);
- public:
- CSimpEngine()
- {
- gameCamera = new CCamera;
- gameWorld = new CWorld;
- }
- CSimpEngine(const char *szName, bool fscreen, int w, int h, int b) :
- CEngine(szName, fscreen, w, h, b)
- {
- gameCamera = new CCamera;
- gameWorld = new CWorld(gameCamera);
- gameCamera->centerX = centerX;
- gameCamera->centerY = centerY;
- }
- ~CSimpEngine()
- {
- delete gameWorld;
- delete gameCamera;
- gameWorld = NULL;
- gameCamera = NULL;
- }
- };
- #endif