fixed some structures

This commit is contained in:
aap 2015-12-22 12:11:10 +01:00
parent 39ff5b6288
commit aed3fefd01
2 changed files with 128 additions and 129 deletions

View File

@ -169,13 +169,13 @@ struct RslMaterialList {
struct RslGeometry {
RslObject object;
uint16 locked; // ?
int16 refCount; // ?
int16 refCount;
int16 pad1;
RslMaterialList matList;
RslSkin *skin;
uint32 pad; // 0xAAAAAAAA
uint32 pad2; // 0xAAAAAAAA
};
struct RslMatFXEnv {
@ -194,8 +194,7 @@ struct RslMatFX {
struct RslMaterial {
char *texname;
uint32 color;
uint16 refCount;
uint16 pad;
uint32 refCount;
RslMatFX *matfx;
};

View File

@ -64,14 +64,14 @@ RslGeometryForAllMaterials(RslGeometry *geometry, RslMaterialCallBack fpCallBack
RslFrame *dumpFrameCB(RslFrame *frame, void *data)
{
printf(" frm: %x %s %x\n", frame->nodeId, frame->name, frame->unk3);
printf(" frm: %x %s %x\n", frame->nodeId, frame->name, frame->hierId);
RslFrameForAllChildren(frame, dumpFrameCB, data);
return frame;
}
RslMaterial *dumpMaterialCB(RslMaterial *material, void*)
{
printf(" mat: %s %x %x\n", material->texname, material->pad, material->refCount);
printf(" mat: %s %x\n", material->texname, material->refCount);
if(material->matfx){
RslMatFX *fx = material->matfx;
printf(" matfx: ", fx->effectType);