mirror of
https://github.com/aap/librw.git
synced 2024-11-25 21:25:42 +00:00
fixed (wdgl) native skin
This commit is contained in:
parent
b62da21ef8
commit
235d435b6b
@ -563,7 +563,7 @@ Stream*
|
|||||||
writeNativeSkin(Stream *stream, int32 len, void *object, int32 offset)
|
writeNativeSkin(Stream *stream, int32 len, void *object, int32 offset)
|
||||||
{
|
{
|
||||||
writeChunkHeader(stream, ID_STRUCT, len-12);
|
writeChunkHeader(stream, ID_STRUCT, len-12);
|
||||||
stream->writeU32(PLATFORM_WDGL);
|
stream->writeU32(PLATFORM_GL);
|
||||||
Skin *skin = *PLUGINOFFSET(Skin*, object, offset);
|
Skin *skin = *PLUGINOFFSET(Skin*, object, offset);
|
||||||
stream->writeI32(skin->numBones);
|
stream->writeI32(skin->numBones);
|
||||||
stream->write(skin->inverseMatrices, skin->numBones*64);
|
stream->write(skin->inverseMatrices, skin->numBones*64);
|
||||||
|
@ -180,11 +180,11 @@ writeSkin(Stream *stream, int32 len, void *object, int32 offset, int32)
|
|||||||
|
|
||||||
if(geometry->instData){
|
if(geometry->instData){
|
||||||
if(geometry->instData->platform == PLATFORM_PS2)
|
if(geometry->instData->platform == PLATFORM_PS2)
|
||||||
ps2::writeNativeSkin(stream, len, object, offset);
|
return ps2::writeNativeSkin(stream, len, object, offset);
|
||||||
else if(geometry->instData->platform == PLATFORM_WDGL)
|
else if(geometry->instData->platform == PLATFORM_WDGL)
|
||||||
wdgl::writeNativeSkin(stream, len, object, offset);
|
return wdgl::writeNativeSkin(stream, len, object, offset);
|
||||||
else if(geometry->instData->platform == PLATFORM_XBOX)
|
else if(geometry->instData->platform == PLATFORM_XBOX)
|
||||||
xbox::writeNativeSkin(stream, len, object, offset);
|
return xbox::writeNativeSkin(stream, len, object, offset);
|
||||||
else{
|
else{
|
||||||
assert(0 && "unsupported native skin platform");
|
assert(0 && "unsupported native skin platform");
|
||||||
return nil;
|
return nil;
|
||||||
|
Loading…
Reference in New Issue
Block a user