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: directx8中文教程.zip [view]
Upload User: whgydz
Upload Date: 2007-01-12
Package Size: 2259k
Code Size: 1k
Category:
Other Books
Development Platform:
HTML/CSS
- // Base.h: interface for the CBase class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_BASE_H__19BD59EB_1A65_420F_B8CC_09F798CE485C__INCLUDED_)
- #define AFX_BASE_H__19BD59EB_1A65_420F_B8CC_09F798CE485C__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include <stdio.h>
- #include <stdarg.h>
- #include <d3dx8.h>
- #include <tlhelp32.h>
- #include <windows.h>
- #define SafeRelease(pInterface) if(pInterface != NULL) {pInterface->Release(); pInterface=NULL;}
- #define SafeDelete(pObject) if(pObject != NULL) {delete pObject; pObject=NULL;}
- class CBase
- {
- private:
- static bool m_fEnableLogging;
- public:
- CBase();
- virtual ~CBase();
- D3DXVECTOR3 GetTriangeNormal(D3DXVECTOR3* vVertex1, D3DXVECTOR3* vVertex2, D3DXVECTOR3* vVertex3);
- static void StartLogging();
- static void StopLogging();
- static void LogError(char *lpszText, ...);
- static void LogInfo(char *lpszText, ...);
- static void LogWarning(char *lpszText, ...);
- static DWORD GetMemoryUsage();
- static void LogMemoryUsage();
- };
- #endif // !defined(AFX_BASE_H__19BD59EB_1A65_420F_B8CC_09F798CE485C__INCLUDED_)