Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
Marco.h 文件参考

浏览该文件的源代码.

宏定义

#define SESE_DEF_RESOURCE(resClass, resName, resSize, resBuf)
 
#define SESE_MAKE_RESOURCE(resName, resBuf, resSize)    std::make_shared<sese::res::Resource>(resName, resBuf, resSize)
 
#define SESE_DEF_RES_STREAM(streamClass, streamSize, streamBuf)
 
#define SESE_MAKE_RES_STREAM(streamBuf, streamSize)    std::make_unique<sese::res::ResourceStream>(streamBuf, streamSize)
 
#define SESE_ADD_RES(resName, resSize, resBuf)    this->resourceMap[resName] = SESE_MAKE_RESOURCE(resName, resBuf, resSize);
 
#define SESE_DEF_RES_MANAGER(managerName)
 
#define SESE_DEF_RES_MANAGER_END(managerName)
 

宏定义说明

◆ SESE_ADD_RES

#define SESE_ADD_RES ( resName,
resSize,
resBuf )    this->resourceMap[resName] = SESE_MAKE_RESOURCE(resName, resBuf, resSize);

◆ SESE_DEF_RES_MANAGER

#define SESE_DEF_RES_MANAGER ( managerName)
值:
class managerName final : public sese::res::ResourceManager { \
public: \
managerName() : sese::res::ResourceManager() {

◆ SESE_DEF_RES_MANAGER_END

#define SESE_DEF_RES_MANAGER_END ( managerName)
值:
} \
}; \
using managerName##Instance = sese::SingletonPtr<managerName>;

◆ SESE_DEF_RES_STREAM

#define SESE_DEF_RES_STREAM ( streamClass,
streamSize,
streamBuf )
值:
class streamClass final : public sese::res::ResourceStream { \
public: \
streamClass() : sese::res::ResourceStream(streamBuf, streamSize) {} \
};

◆ SESE_DEF_RESOURCE

#define SESE_DEF_RESOURCE ( resClass,
resName,
resSize,
resBuf )
值:
class resClass final : public sese::res::Resource { \
public: \
resClass() : sese::res::Resource(resBuf, resSize) {} \
}

◆ SESE_MAKE_RES_STREAM

#define SESE_MAKE_RES_STREAM ( streamBuf,
streamSize )    std::make_unique<sese::res::ResourceStream>(streamBuf, streamSize)

被这些函数引用 sese::res::Resource::getStream().

◆ SESE_MAKE_RESOURCE

#define SESE_MAKE_RESOURCE ( resName,
resBuf,
resSize )    std::make_shared<sese::res::Resource>(resName, resBuf, resSize)