Commit ffa92105 authored by cutealien's avatar cutealien

Fix compling on 64-bit. Remove warning. Add header to c::b project files.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3866 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 84291fd1
...@@ -75,7 +75,7 @@ E_COLLADA_IRR_COLOR CColladaMeshWriterProperties::getColorMapping(const video::S ...@@ -75,7 +75,7 @@ E_COLLADA_IRR_COLOR CColladaMeshWriterProperties::getColorMapping(const video::S
return ECIC_NONE; return ECIC_NONE;
} }
//! Return custom colors for certain color types requested by collada. //! Return custom colors for certain color types requested by collada.
video::SColor CColladaMeshWriterProperties::getCustomColor(const video::SMaterial & material, E_COLLADA_COLOR_SAMPLER cs) const video::SColor CColladaMeshWriterProperties::getCustomColor(const video::SMaterial & material, E_COLLADA_COLOR_SAMPLER cs) const
{ {
return video::SColor(255, 0, 0, 0); return video::SColor(255, 0, 0, 0);
...@@ -634,13 +634,13 @@ irr::core::stringw CColladaMeshWriter::toRef(const irr::core::stringw& source) c ...@@ -634,13 +634,13 @@ irr::core::stringw CColladaMeshWriter::toRef(const irr::core::stringw& source) c
irr::core::stringw CColladaMeshWriter::uniqueNameForMesh(const scene::IMesh* mesh) const irr::core::stringw CColladaMeshWriter::uniqueNameForMesh(const scene::IMesh* mesh) const
{ {
return irr::core::stringw( (int)mesh ); return irr::core::stringw((long)mesh);
} }
irr::core::stringw CColladaMeshWriter::uniqueNameForNode(const scene::ISceneNode* node) const irr::core::stringw CColladaMeshWriter::uniqueNameForNode(const scene::ISceneNode* node) const
{ {
irr::core::stringw name(L"id"); // (prefix, because xs::ID can't start with a number) irr::core::stringw name(L"id"); // (prefix, because xs::ID can't start with a number)
name += irr::core::stringw((int)node); name += irr::core::stringw((long)node);
if ( node ) if ( node )
name += irr::core::stringw(node->getName()); name += irr::core::stringw(node->getName());
return name; return name;
...@@ -1488,6 +1488,9 @@ video::SColor CColladaMeshWriter::getColorMapping(const video::SMaterial & mater ...@@ -1488,6 +1488,9 @@ video::SColor CColladaMeshWriter::getColorMapping(const video::SMaterial & mater
{ {
switch ( colType ) switch ( colType )
{ {
case ECIC_NONE:
return video::SColor(255, 0, 0, 0);
case ECIC_CUSTOM: case ECIC_CUSTOM:
return getProperties()->getCustomColor(material, cs); return getProperties()->getCustomColor(material, cs);
...@@ -1601,7 +1604,7 @@ void CColladaMeshWriter::writeFxElement(const irr::core::stringw& meshname, cons ...@@ -1601,7 +1604,7 @@ void CColladaMeshWriter::writeFxElement(const irr::core::stringw& meshname, cons
f32 t = getProperties()->getReflectivity(material); f32 t = getProperties()->getReflectivity(material);
if ( t >= 0.f ) if ( t >= 0.f )
{ {
// <transparency> <float>1.000000</float> </transparency> // <transparency> <float>1.000000</float> </transparency>
Writer->writeElement(L"reflectivity", false); Writer->writeElement(L"reflectivity", false);
Writer->writeLineBreak(); Writer->writeLineBreak();
writeFloatElement(t); writeFloatElement(t);
...@@ -1621,7 +1624,7 @@ void CColladaMeshWriter::writeFxElement(const irr::core::stringw& meshname, cons ...@@ -1621,7 +1624,7 @@ void CColladaMeshWriter::writeFxElement(const irr::core::stringw& meshname, cons
f32 t = getProperties()->getTransparency(material); f32 t = getProperties()->getTransparency(material);
if ( t >= 0.f ) if ( t >= 0.f )
{ {
// <transparency> <float>1.000000</float> </transparency> // <transparency> <float>1.000000</float> </transparency>
Writer->writeElement(L"transparency", false); Writer->writeElement(L"transparency", false);
Writer->writeLineBreak(); Writer->writeLineBreak();
writeFloatElement(t); writeFloatElement(t);
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<Build> <Build>
<Target title="Win32 - Debug - dll"> <Target title="Win32 - Debug - dll">
<Option platforms="Windows;" /> <Option platforms="Windows;" />
<Option output="../../lib/Win32-gcc/Irrlicht" prefix_auto="1" extension_auto="1" /> <Option output="../../lib/Win32-gcc/libIrrlicht" prefix_auto="1" extension_auto="1" />
<Option object_output="../obj/win32-gcc-debug-dll" /> <Option object_output="../obj/win32-gcc-debug-dll" />
<Option type="3" /> <Option type="3" />
<Option compiler="gcc" /> <Option compiler="gcc" />
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</Target> </Target>
<Target title="Win32 - Release - accurate math - dll"> <Target title="Win32 - Release - accurate math - dll">
<Option platforms="Windows;" /> <Option platforms="Windows;" />
<Option output="../../lib/Win32-gcc/Irrlicht" prefix_auto="1" extension_auto="1" /> <Option output="../../lib/Win32-gcc/libIrrlicht" prefix_auto="1" extension_auto="1" />
<Option object_output="../obj/win32-gcc-release-dll" /> <Option object_output="../obj/win32-gcc-release-dll" />
<Option type="3" /> <Option type="3" />
<Option compiler="gcc" /> <Option compiler="gcc" />
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</Target> </Target>
<Target title="Win32 - Release - fast math - dll"> <Target title="Win32 - Release - fast math - dll">
<Option platforms="Windows;" /> <Option platforms="Windows;" />
<Option output="../../lib/Win32-gcc/Irrlicht" prefix_auto="1" extension_auto="1" /> <Option output="../../lib/Win32-gcc/libIrrlicht" prefix_auto="1" extension_auto="1" />
<Option object_output="../obj/win32-gcc-release-fast-dll" /> <Option object_output="../obj/win32-gcc-release-fast-dll" />
<Option type="3" /> <Option type="3" />
<Option compiler="gcc" /> <Option compiler="gcc" />
...@@ -455,6 +455,7 @@ ...@@ -455,6 +455,7 @@
<Unit filename="../../include/IBillboardTextSceneNode.h" /> <Unit filename="../../include/IBillboardTextSceneNode.h" />
<Unit filename="../../include/IBoneSceneNode.h" /> <Unit filename="../../include/IBoneSceneNode.h" />
<Unit filename="../../include/ICameraSceneNode.h" /> <Unit filename="../../include/ICameraSceneNode.h" />
<Unit filename="../../include/IColladaMeshWriter.h" />
<Unit filename="../../include/ICursorControl.h" /> <Unit filename="../../include/ICursorControl.h" />
<Unit filename="../../include/IDummyTransformationSceneNode.h" /> <Unit filename="../../include/IDummyTransformationSceneNode.h" />
<Unit filename="../../include/IDynamicMeshBuffer.h" /> <Unit filename="../../include/IDynamicMeshBuffer.h" />
......
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