Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
Marco.h File Reference

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

◆ 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)
Value:
class managerName final : public sese::res::ResourceManager { \
public: \
managerName() : sese::res::ResourceManager() {

◆ SESE_DEF_RES_MANAGER_END

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

◆ SESE_DEF_RES_STREAM

#define SESE_DEF_RES_STREAM ( streamClass,
streamSize,
streamBuf )
Value:
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 )
Value:
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_MAKE_RESOURCE

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