af3DObject.h
资源名称:AirForce.rar [点击查看]
上传用户:kaiguan
上传日期:2007-10-28
资源大小:1074k
文件大小:1k
源码类别:
其他游戏
开发平台:
Visual C++
- // af3DObject.h: interface for the af3DObject class.
- //
- //////////////////////////////////////////////////////////////////////
- #ifndef AF_3DOBJECT
- #define AF_3DOBJECT
- #pragma once
- class af3DObject
- {
- public:
- af3DObject(){}
- virtual ~af3DObject() {}
- /// The implementing object has to destroy all device dependent objects
- /**
- * When switching to fullscreen or changing window size
- * the render device has to be destroyed and afterwards
- * recreated. This enforces, that all device depended
- * objects are destroyed and recreated too.
- * Its the duty of the implementating object destroy
- * all device dependent objects and call all
- * sub-objects' deleteDeviceObjects() methods.
- */
- virtual void deleteDeviceObjects() = 0;
- /// The implementing object has to recreate all device dependent objects
- /**
- * Its the duty of the implementating object recreate
- * all device dependent objects and call all
- * sub-objects' restoreDeviceObjects() methods.
- */
- virtual bool restoreDeviceObjects() = 0;
- static LPDIRECT3DDEVICE9 pd3dDevice;
- };
- #endif