#include <eft_Resource.h>
Public Types | |
| enum | { cInvalidID = -1 } |
Public Member Functions | |
| Resource () | |
| Resource (Heap *heap, void *bin, s32 resourceID, System *eftSys) | |
| virtual | ~Resource () |
| const char * | GetProjectName () const |
| Heap * | GetHeap () const |
| s32 | GetNumEmitterSet () const |
| s32 | GetNumEmitter (s32 emitterSetID) const |
| const CommonEmitterData * | GetEmitterData (s32 emitterSetID, s32 emitterID) const |
| const EmitterSetData * | GetEmitterSetData (s32 emitterSetID) const |
| u32 | GetUserData (s32 emitterSetID) const |
| u8 | GetUserDataNum1 (s32 emitterSetID) const |
| u8 | GetUserDataNum2 (s32 emitterSetID) const |
| u16 | GetUserDataBit (s32 emitterSetID) const |
| const char * | GetEmitterName (s32 emitterSetID, s32 emitterID) const |
| ResourceEmitterSet * | GetEmitterSetResource (s32 emitterSetID) const |
| char * | GetEmitterSetNameTable () const |
| s32 | GetNumEmitterROM (s32 emitterSetID) const |
| const CommonEmitterData * | GetEmitterDataROM (s32 emitterSetID, s32 emitterID) const |
| const EmitterSetData * | GetEmitterSetDataROM (s32 emitterSetID) const |
| u32 | GetUserDataROM (s32 emitterSetID) const |
| const char * | GetEmitterNameROM (s32 emitterSetID, s32 emitterID) const |
| const char * | GetEmitterSetName (s32 emitterSetID) const |
| s32 | SearchEmitterSetID (const char *name) const |
| s32 | SearchEmitterID (const char *setName, const char *emitterName) const |
| s32 | SearchEmitterID (s32 emitterSetID, const char *emitterName) const |
| s32 | SearchEmitterID (s32 emitterSetID, const char *emitterName, u32 emitterIdx) const |
| void | Initialize (Heap *heap, void *bin, s32 resourceID, System *eftSys) |
| void | Finalize (Heap *heap) |
| bool | BindResource (s32 targetSetID, ResourceBind *bind, EmitterTblData *newTbl, s32 newNumEmitter, const char *newSetName, u32 newUserData, u32 newShaderNum, ParticleShader **newShaderArray, u32 newPrimitiveNum, Primitive **newPrimitiveArray) |
| bool | UnbindResource (ResourceBind *bind, bool isReBind, bool isKill) |
| ParticleShader * | GetShader (u32 index) |
| ParticleShader * | GetShader (s32 emitterSetID, u32 index) |
| ParticleShader * | GetShader (const VertexShaderKey *vertexKey, const FragmentShaderKey *fragmentKey) |
| ParticleShader * | GetShader (s32 emitterSetID, const VertexShaderKey *vertexKey, const FragmentShaderKey *fragmentKey) |
| u32 | GetShaderNum () const |
| ParticleShader ** | GetShaderArray () const |
| u32 | GetPrimitiveNum () const |
| Primitive ** | GetPrimitiveArray () const |
| Primitive * | GetPrimitive (s32 emitterSetID, u32 index) |
Static Private Member Functions | |
| static void | CreateFtexbTextureHandle (Heap *heap, void *texture_data, TextureRes &texRes) |
| static void | CreateOriginalTextureHandle (Heap *heap, void *texture_data, TextureRes &texRes) |
| static void | DeleteTextureHandle (Heap *heap, TextureRes &texRes, bool isOriginalTexture) |
Private Attributes | |
| System * | mSystem |
| s32 | mResourceID |
| HeaderData * | mHeader |
| char * | mNameTbl |
| const void * | mTextureTbl |
| ResourceEmitterSet * | mResEmitterSet |
| Heap * | mHeap |
| ParticleShader ** | mShader |
| u32 | mShaderNum |
| Primitive ** | mPrimitive |
| u32 | mPrimitiveNum |
|
inline |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| s32 nw::eft::Resource::SearchEmitterSetID | ( | const char * | name | ) | const |
| s32 nw::eft::Resource::SearchEmitterID | ( | const char * | setName, |
| const char * | emitterName ) const |
| s32 nw::eft::Resource::SearchEmitterID | ( | s32 | emitterSetID, |
| const char * | emitterName ) const |
| s32 nw::eft::Resource::SearchEmitterID | ( | s32 | emitterSetID, |
| const char * | emitterName, | ||
| u32 | emitterIdx ) const |
| void nw::eft::Resource::Finalize | ( | Heap * | heap | ) |
|
staticprivate |
|
staticprivate |
|
staticprivate |
| bool nw::eft::Resource::BindResource | ( | s32 | targetSetID, |
| ResourceBind * | bind, | ||
| EmitterTblData * | newTbl, | ||
| s32 | newNumEmitter, | ||
| const char * | newSetName, | ||
| u32 | newUserData, | ||
| u32 | newShaderNum, | ||
| ParticleShader ** | newShaderArray, | ||
| u32 | newPrimitiveNum, | ||
| Primitive ** | newPrimitiveArray ) |
| bool nw::eft::Resource::UnbindResource | ( | ResourceBind * | bind, |
| bool | isReBind, | ||
| bool | isKill ) |
| ParticleShader * nw::eft::Resource::GetShader | ( | u32 | index | ) |
| ParticleShader * nw::eft::Resource::GetShader | ( | s32 | emitterSetID, |
| u32 | index ) |
| ParticleShader * nw::eft::Resource::GetShader | ( | const VertexShaderKey * | vertexKey, |
| const FragmentShaderKey * | fragmentKey ) |
| ParticleShader * nw::eft::Resource::GetShader | ( | s32 | emitterSetID, |
| const VertexShaderKey * | vertexKey, | ||
| const FragmentShaderKey * | fragmentKey ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |