Avoid warning.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1112 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2007-12-10 23:33:24 +00:00
parent 65331f5789
commit 1671a7b43c
2 changed files with 4 additions and 10 deletions

View File

@ -341,12 +341,7 @@ bool CMS3DMeshFileLoader::load(io::IReadFile* file)
if (framesPerSecond==0) if (framesPerSecond==0)
framesPerSecond=1; framesPerSecond=1;
s32 frameCount = *(s32*)pPtr; pPtr += sizeof(s32); // frameCount
#ifdef __BIG_ENDIAN__
frameCount = os::Byteswap::byteswap(frameCount);
#endif
pPtr += sizeof(s32);
u16 jointCount = *(u16*)pPtr; u16 jointCount = *(u16*)pPtr;
#ifdef __BIG_ENDIAN__ #ifdef __BIG_ENDIAN__

View File

@ -106,7 +106,6 @@ void CShadowVolumeSceneNode::createShadowVolume(const core::vector3df& light)
// is used // is used
createZPassVolume(faceCount, numEdges, light, svp, UseZFailMethod); createZPassVolume(faceCount, numEdges, light, svp, UseZFailMethod);
for (s32 i=0; i<numEdges; ++i) for (s32 i=0; i<numEdges; ++i)
{ {
core::vector3df &v1 = Vertices[Edges[2*i+0]]; core::vector3df &v1 = Vertices[Edges[2*i+0]];
@ -128,6 +127,7 @@ void CShadowVolumeSceneNode::createShadowVolume(const core::vector3df& light)
} }
} }
void CShadowVolumeSceneNode::createZFailVolume(s32 faceCount, s32& numEdges, void CShadowVolumeSceneNode::createZFailVolume(s32 faceCount, s32& numEdges,
const core::vector3df& light, const core::vector3df& light,
SShadowVolume* svp) SShadowVolume* svp)
@ -206,6 +206,7 @@ void CShadowVolumeSceneNode::createZFailVolume(s32 faceCount, s32& numEdges,
} }
} }
void CShadowVolumeSceneNode::createZPassVolume(s32 faceCount, void CShadowVolumeSceneNode::createZPassVolume(s32 faceCount,
s32& numEdges, s32& numEdges,
core::vector3df light, core::vector3df light,
@ -249,6 +250,7 @@ void CShadowVolumeSceneNode::createZPassVolume(s32 faceCount,
} }
} }
//! sets the mesh from which the shadow volume should be generated. //! sets the mesh from which the shadow volume should be generated.
void CShadowVolumeSceneNode::setMeshToRenderFrom(const IMesh* mesh) void CShadowVolumeSceneNode::setMeshToRenderFrom(const IMesh* mesh)
{ {
@ -344,7 +346,6 @@ void CShadowVolumeSceneNode::setMeshToRenderFrom(const IMesh* mesh)
} }
//! pre render method //! pre render method
void CShadowVolumeSceneNode::OnRegisterSceneNode() void CShadowVolumeSceneNode::OnRegisterSceneNode()
{ {
@ -355,7 +356,6 @@ void CShadowVolumeSceneNode::OnRegisterSceneNode()
} }
//! renders the node. //! renders the node.
void CShadowVolumeSceneNode::render() void CShadowVolumeSceneNode::render()
{ {
@ -372,7 +372,6 @@ void CShadowVolumeSceneNode::render()
} }
//! returns the axis aligned bounding box of this node //! returns the axis aligned bounding box of this node
const core::aabbox3d<f32>& CShadowVolumeSceneNode::getBoundingBox() const const core::aabbox3d<f32>& CShadowVolumeSceneNode::getBoundingBox() const
{ {