Commit 1671a7b4 authored by hybrid's avatar hybrid

Avoid warning.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1112 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 65331f57
......@@ -341,12 +341,7 @@ bool CMS3DMeshFileLoader::load(io::IReadFile* file)
if (framesPerSecond==0)
framesPerSecond=1;
s32 frameCount = *(s32*)pPtr;
#ifdef __BIG_ENDIAN__
frameCount = os::Byteswap::byteswap(frameCount);
#endif
pPtr += sizeof(s32);
pPtr += sizeof(s32); // frameCount
u16 jointCount = *(u16*)pPtr;
#ifdef __BIG_ENDIAN__
......
......@@ -106,7 +106,6 @@ void CShadowVolumeSceneNode::createShadowVolume(const core::vector3df& light)
// is used
createZPassVolume(faceCount, numEdges, light, svp, UseZFailMethod);
for (s32 i=0; i<numEdges; ++i)
{
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,
const core::vector3df& light,
SShadowVolume* svp)
......@@ -206,6 +206,7 @@ void CShadowVolumeSceneNode::createZFailVolume(s32 faceCount, s32& numEdges,
}
}
void CShadowVolumeSceneNode::createZPassVolume(s32 faceCount,
s32& numEdges,
core::vector3df light,
......@@ -249,6 +250,7 @@ void CShadowVolumeSceneNode::createZPassVolume(s32 faceCount,
}
}
//! sets the mesh from which the shadow volume should be generated.
void CShadowVolumeSceneNode::setMeshToRenderFrom(const IMesh* mesh)
{
......@@ -344,7 +346,6 @@ void CShadowVolumeSceneNode::setMeshToRenderFrom(const IMesh* mesh)
}
//! pre render method
void CShadowVolumeSceneNode::OnRegisterSceneNode()
{
......@@ -355,7 +356,6 @@ void CShadowVolumeSceneNode::OnRegisterSceneNode()
}
//! renders the node.
void CShadowVolumeSceneNode::render()
{
......@@ -372,7 +372,6 @@ void CShadowVolumeSceneNode::render()
}
//! returns the axis aligned bounding box of this node
const core::aabbox3d<f32>& CShadowVolumeSceneNode::getBoundingBox() const
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment