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
Base.h
Package: OpenGL动画演示(包含代码).rar [view]
Upload User: sz83729876
Upload Date: 2013-03-07
Package Size: 4140k
Code Size: 1k
Category:
OpenGL program
Development Platform:
Windows_Unix
- #ifndef _BASE_H_
- #define _BASE_H_
- #include "Stdinc.h"
- #include "OpenGL.h"
- #include "Clock.h"
- #include "Texture.h"
- class CBaseApp
- {
- private:
- HINSTANCE m_hInstance;
- bool m_bReady;
- bool MyCreateWindow();
- static LRESULT CALLBACK WndProc( HWND hWnd, UINT uMsg,
- WPARAM wParam, LPARAM lParam );
- protected:
- HWND m_hWnd;
- int m_iWindowWidth;
- int m_iWindowHeight;
- int m_iWindowDepth;
- bool m_bWindowed;
- std::string m_strWindowTitle;
- public:
- virtual bool AppInitialize() { return true; };
- virtual bool AppCleanup() { return true; };
- virtual bool AppRender() { return true; };
- bool Initialize( HINSTANCE hInst, std::string strTitle,
- int iWidth, int iHeight, int iDepth, bool bWindowed );
- bool Cleanup();
- bool Render();
- int Run();
- CBaseApp();
- ~CBaseApp();
- };
- #endif