Merge branch 'master' of http://www.hyzgame.com:3000/hyzboy/CMExamples
This commit is contained in:
commit
c168b1cab6
@ -1,5 +1,5 @@
|
||||
#include<hgl/type/StringList.h>
|
||||
#include<hgl/type/LoadStringList.h>
|
||||
#include<hgl/io/LoadStringList.h>
|
||||
#include<hgl/type/Gradient.h>
|
||||
#include<hgl/math/Vector.h>
|
||||
#include<hgl/util/imgfmt/tga.h>
|
||||
|
@ -89,4 +89,33 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#define HGL_RUNTIME_ASSET_CLASS(RA_ID_TYPE,_RA_CLASS)
|
||||
|
||||
#define HGL_RUNTIME_ASSET_DECLARATION(RA_ID_TYPE,RA_CLASS) RuntimeAssetManager<RA_ID_TYPE,RA_CLASS> RuntimeAsset<RA_ID_TYPE,RA_CLASS>::RAM;
|
||||
|
||||
/**
|
||||
* Example:
|
||||
*
|
||||
* MyRuntimeAsset.h
|
||||
*
|
||||
* using MyAssetID=uint;
|
||||
*
|
||||
* struct MyRuntimeAsset:public RuntimeAsset<MyAssetID,MyRuntimeAsset>
|
||||
* {
|
||||
* public:
|
||||
*
|
||||
* using RuntimeAsset::RuntimeAsset;
|
||||
* };
|
||||
*
|
||||
* MyRuntimeAsset.cpp
|
||||
*
|
||||
* #include"MyRuntimeAsset.h"
|
||||
*
|
||||
* HGL_RUNTIME_ASSET_DECLARATION(MyAssetID,MyRuntimeAsset);
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user