mirror of https://github.com/aap/librw.git
fixed some structures
This commit is contained in:
parent
39ff5b6288
commit
aed3fefd01
|
@ -169,13 +169,13 @@ struct RslMaterialList {
|
||||||
|
|
||||||
struct RslGeometry {
|
struct RslGeometry {
|
||||||
RslObject object;
|
RslObject object;
|
||||||
uint16 locked; // ?
|
int16 refCount;
|
||||||
int16 refCount; // ?
|
int16 pad1;
|
||||||
|
|
||||||
RslMaterialList matList;
|
RslMaterialList matList;
|
||||||
|
|
||||||
RslSkin *skin;
|
RslSkin *skin;
|
||||||
uint32 pad; // 0xAAAAAAAA
|
uint32 pad2; // 0xAAAAAAAA
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RslMatFXEnv {
|
struct RslMatFXEnv {
|
||||||
|
@ -194,8 +194,7 @@ struct RslMatFX {
|
||||||
struct RslMaterial {
|
struct RslMaterial {
|
||||||
char *texname;
|
char *texname;
|
||||||
uint32 color;
|
uint32 color;
|
||||||
uint16 refCount;
|
uint32 refCount;
|
||||||
uint16 pad;
|
|
||||||
RslMatFX *matfx;
|
RslMatFX *matfx;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -64,14 +64,14 @@ RslGeometryForAllMaterials(RslGeometry *geometry, RslMaterialCallBack fpCallBack
|
||||||
|
|
||||||
RslFrame *dumpFrameCB(RslFrame *frame, void *data)
|
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);
|
RslFrameForAllChildren(frame, dumpFrameCB, data);
|
||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
RslMaterial *dumpMaterialCB(RslMaterial *material, void*)
|
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){
|
if(material->matfx){
|
||||||
RslMatFX *fx = material->matfx;
|
RslMatFX *fx = material->matfx;
|
||||||
printf(" matfx: ", fx->effectType);
|
printf(" matfx: ", fx->effectType);
|
||||||
|
|
Loading…
Reference in New Issue