afResourceManager.h
资源名称:AirForce.rar [点击查看]
上传用户:kaiguan
上传日期:2007-10-28
资源大小:1074k
文件大小:1k
源码类别:
其他游戏
开发平台:
Visual C++
- #ifndef AF_RESOURCEMANAGER
- #define AF_RESOURCEMANAGER
- #include <D3D9.h>
- #include "afImage.h"
- #include "afList.h"
- #include "afPtrList.h"
- #include "afString.h"
- class afTexture;
- /// afIResourceManager is the one and only instance for loading graphics stuff from HD.
- namespace afResourceManager
- {
- enum { MAX_TEXTURES = 1024 };
- /// Init has to be called before any resource can be loaded.
- void init();
- void deinit();
- /// Returns the image loaded from the given filename.
- afImage* getRawImage(const afString& nFileName, int nWidth, int nHeight, afImage::FORMAT nFormat);
- /// Returns the texture with the given name.
- afTexture* getTexture(const afString& nFileName, afImage::FORMAT nFormat=afImage::UNKNOWN);
- };
- #endif