Commit 9f7227b7 authored by hybrid's avatar hybrid

Some whitespace adjustment.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4500 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 6d6b2439
...@@ -82,11 +82,11 @@ namespace scene ...@@ -82,11 +82,11 @@ namespace scene
{ {
c8 headerID[4]; //id of file, always "IDP3" c8 headerID[4]; //id of file, always "IDP3"
s32 Version; //this is a version number, always 15 s32 Version; //this is a version number, always 15
s8 fileName[68]; //sometimes left Blank... 65 chars, 32bit aligned == 68 chars s8 fileName[68];//sometimes left Blank... 65 chars, 32bit aligned == 68 chars
s32 numFrames; //number of KeyFrames s32 numFrames; //number of KeyFrames
s32 numTags; //number of 'tags' per frame s32 numTags; //number of 'tags' per frame
s32 numMeshes; //number of meshes/skins s32 numMeshes; //number of meshes/skins
s32 numMaxSkins; //maximum number of unique skins used in md3 file. artefact md2 s32 numMaxSkins;//maximum number of unique skins used in md3 file. artefact md2
s32 frameStart; //starting position of frame-structur s32 frameStart; //starting position of frame-structur
s32 tagStart; //starting position of tag-structures s32 tagStart; //starting position of tag-structures
s32 tagEnd; //ending position of tag-structures/starting position of mesh-structures s32 tagEnd; //ending position of tag-structures/starting position of mesh-structures
......
...@@ -179,7 +179,7 @@ namespace scene ...@@ -179,7 +179,7 @@ namespace scene
if (!out) if (!out)
return; return;
out->addBool ("IsOrthogonal", IsOrthogonal ); out->addBool("IsOrthogonal", IsOrthogonal);
} }
//! Reads attributes of the camera node //! Reads attributes of the camera node
......
...@@ -81,7 +81,7 @@ namespace gui ...@@ -81,7 +81,7 @@ namespace gui
virtual u32 insertItem(u32 idx, const wchar_t* text, s32 commandId=-1, bool enabled=true, virtual u32 insertItem(u32 idx, const wchar_t* text, s32 commandId=-1, bool enabled=true,
bool hasSubMenu=false, bool checked=false, bool autoChecking=false) = 0; bool hasSubMenu=false, bool checked=false, bool autoChecking=false) = 0;
//! Find an item by it's CommandID //! Find an item by its CommandID
/** /**
\param commandId: We are looking for the first item which has this commandID \param commandId: We are looking for the first item which has this commandID
\param idxStartSearch: Start searching from this index. \param idxStartSearch: Start searching from this index.
......
...@@ -147,7 +147,6 @@ namespace gui ...@@ -147,7 +147,6 @@ namespace gui
//! Get the cursor blinktime //! Get the cursor blinktime
virtual irr::u32 getCursorBlinkTime() const = 0; virtual irr::u32 getCursorBlinkTime() const = 0;
}; };
......
...@@ -114,7 +114,6 @@ public: ...@@ -114,7 +114,6 @@ public:
//! Get maximal random derivation from the direction //! Get maximal random derivation from the direction
virtual s32 getMaxAngleDegrees() const = 0; virtual s32 getMaxAngleDegrees() const = 0;
//! Get emitter type //! Get emitter type
virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_POINT; } virtual E_PARTICLE_EMITTER_TYPE getType() const { return EPET_POINT; }
}; };
......
...@@ -68,8 +68,9 @@ public: ...@@ -68,8 +68,9 @@ public:
virtual void clearParticles() = 0; virtual void clearParticles() = 0;
//! Do manually update the particles. //! Do manually update the particles.
//! This should only be called when you want to render the node outside the scenegraph, /** This should only be called when you want to render the node outside
//! as the node will care about this otherwise automatically. the scenegraph, as the node will care about this otherwise
automatically. */
virtual void doParticleSystem(u32 time) = 0; virtual void doParticleSystem(u32 time) = 0;
//! Gets the particle emitter, which creates the particles. //! Gets the particle emitter, which creates the particles.
......
...@@ -412,9 +412,7 @@ namespace quake3 ...@@ -412,9 +412,7 @@ namespace quake3
SAWTOOTH_INVERSE = WAVE_MODIFIER_FUNCTION + 6, SAWTOOTH_INVERSE = WAVE_MODIFIER_FUNCTION + 6,
NOISE = WAVE_MODIFIER_FUNCTION + 7, NOISE = WAVE_MODIFIER_FUNCTION + 7,
UNKNOWN = -2 UNKNOWN = -2
}; };
struct SModifierFunction struct SModifierFunction
......
...@@ -702,17 +702,17 @@ namespace scene ...@@ -702,17 +702,17 @@ namespace scene
{ {
if (!out) if (!out)
return; return;
out->addString ("Name", Name.c_str()); out->addString("Name", Name.c_str());
out->addInt ("Id", ID ); out->addInt("Id", ID );
out->addVector3d("Position", getPosition() ); out->addVector3d("Position", getPosition() );
out->addVector3d("Rotation", getRotation() ); out->addVector3d("Rotation", getRotation() );
out->addVector3d("Scale", getScale() ); out->addVector3d("Scale", getScale() );
out->addBool ("Visible", IsVisible ); out->addBool("Visible", IsVisible );
out->addInt ("AutomaticCulling", AutomaticCullingState); out->addInt("AutomaticCulling", AutomaticCullingState);
out->addInt ("DebugDataVisible", DebugDataVisible ); out->addInt("DebugDataVisible", DebugDataVisible );
out->addBool ("IsDebugObject", IsDebugObject ); out->addBool("IsDebugObject", IsDebugObject );
} }
......
...@@ -845,7 +845,6 @@ precision will be lower but speed higher. currently X86 only ...@@ -845,7 +845,6 @@ precision will be lower but speed higher. currently X86 only
#define _tfindnext __tfindnext #define _tfindnext __tfindnext
typedef long intptr_t; typedef long intptr_t;
#endif #endif
#endif #endif
#endif // __IRR_COMPILE_CONFIG_H_INCLUDED__ #endif // __IRR_COMPILE_CONFIG_H_INCLUDED__
......
...@@ -20,27 +20,26 @@ namespace core ...@@ -20,27 +20,26 @@ namespace core
// ----------- some basic quite often used string functions ----------------- // ----------- some basic quite often used string functions -----------------
//! search if a filename has a proper extension //! search if a filename has a proper extension
inline s32 isFileExtension ( const io::path& filename, inline s32 isFileExtension (const io::path& filename, const io::path& ext0,
const io::path& ext0, const io::path& ext1, const io::path& ext2)
const io::path& ext1,
const io::path& ext2)
{ {
s32 extPos = filename.findLast ( '.' ); s32 extPos = filename.findLast ( '.' );
if ( extPos < 0 ) if ( extPos < 0 )
return 0; return 0;
extPos += 1; extPos += 1;
if ( filename.equals_substring_ignore_case ( ext0, extPos ) ) return 1; if ( filename.equals_substring_ignore_case ( ext0, extPos ) )
if ( filename.equals_substring_ignore_case ( ext1, extPos ) ) return 2; return 1;
if ( filename.equals_substring_ignore_case ( ext2, extPos ) ) return 3; if ( filename.equals_substring_ignore_case ( ext1, extPos ) )
return 2;
if ( filename.equals_substring_ignore_case ( ext2, extPos ) )
return 3;
return 0; return 0;
} }
//! search if a filename has a proper extension //! search if a filename has a proper extension
inline bool hasFileExtension ( const io::path& filename, inline bool hasFileExtension(const io::path& filename, const io::path& ext0,
const io::path& ext0, const io::path& ext1 = "", const io::path& ext2 = "")
const io::path& ext1 = "",
const io::path& ext2 = "")
{ {
return isFileExtension ( filename, ext0, ext1, ext2 ) > 0; return isFileExtension ( filename, ext0, ext1, ext2 ) > 0;
} }
......
...@@ -13,8 +13,8 @@ namespace irr ...@@ -13,8 +13,8 @@ namespace irr
namespace core namespace core
{ {
//! Selection of characters which count as decimal point in fast_atof //! Selection of characters which count as decimal point in fast_atof
// TODO: This should probably also be used in irr::core::string, but the float-to-string code // TODO: This should probably also be used in irr::core::string, but
// used there has to be rewritten first. // the float-to-string code used there has to be rewritten first.
IRRLICHT_API extern irr::core::stringc LOCALE_DECIMAL_POINTS; IRRLICHT_API extern irr::core::stringc LOCALE_DECIMAL_POINTS;
// we write [17] here instead of [] to work around a swig bug // we write [17] here instead of [] to work around a swig bug
......
...@@ -25,8 +25,7 @@ class array ...@@ -25,8 +25,7 @@ class array
public: public:
//! Default constructor for empty array. //! Default constructor for empty array.
array() array() : data(0), allocated(0), used(0),
: data(0), allocated(0), used(0),
strategy(ALLOC_STRATEGY_DOUBLE), free_when_destroyed(true), is_sorted(true) strategy(ALLOC_STRATEGY_DOUBLE), free_when_destroyed(true), is_sorted(true)
{ {
} }
...@@ -34,9 +33,9 @@ public: ...@@ -34,9 +33,9 @@ public:
//! Constructs an array and allocates an initial chunk of memory. //! Constructs an array and allocates an initial chunk of memory.
/** \param start_count Amount of elements to pre-allocate. */ /** \param start_count Amount of elements to pre-allocate. */
array(u32 start_count) array(u32 start_count) : data(0), allocated(0), used(0),
: data(0), allocated(0), used(0), strategy(ALLOC_STRATEGY_DOUBLE),
strategy(ALLOC_STRATEGY_DOUBLE), free_when_destroyed(true), is_sorted(true) free_when_destroyed(true), is_sorted(true)
{ {
reallocate(start_count); reallocate(start_count);
} }
......
...@@ -164,18 +164,18 @@ strings ...@@ -164,18 +164,18 @@ strings
//! define a break macro for debugging. //! define a break macro for debugging.
#if defined(_DEBUG) #if defined(_DEBUG)
#if defined(_IRR_WINDOWS_API_) && defined(_MSC_VER) && !defined (_WIN32_WCE) #if defined(_IRR_WINDOWS_API_) && defined(_MSC_VER) && !defined (_WIN32_WCE)
#if defined(WIN64) || defined(_WIN64) // using portable common solution for x64 configuration #if defined(WIN64) || defined(_WIN64) // using portable common solution for x64 configuration
#include <crtdbg.h> #include <crtdbg.h>
#define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) if (_CONDITION_) {_CrtDbgBreak();} #define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) if (_CONDITION_) {_CrtDbgBreak();}
#else #else
#define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) if (_CONDITION_) {_asm int 3} #define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) if (_CONDITION_) {_asm int 3}
#endif #endif
#else #else
#include "assert.h" #include "assert.h"
#define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) assert( !(_CONDITION_) ); #define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) assert( !(_CONDITION_) );
#endif #endif
#else #else
#define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) #define _IRR_DEBUG_BREAK_IF( _CONDITION_ )
#endif #endif
//! Defines a deprecated macro which generates a warning at compile time //! Defines a deprecated macro which generates a warning at compile time
......
...@@ -254,7 +254,7 @@ namespace core ...@@ -254,7 +254,7 @@ namespace core
// This catches some floating point troubles. // This catches some floating point troubles.
// Unfortunately slightly expensive and we don't really know the best epsilon for iszero. // Unfortunately slightly expensive and we don't really know the best epsilon for iszero.
vector3d<f64> cp1 = bminusa.normalize().crossProduct((p1 - a).normalize()); vector3d<f64> cp1 = bminusa.normalize().crossProduct((p1 - a).normalize());
if ( core::iszero(cp1.X, (f64)ROUNDING_ERROR_f32) if (core::iszero(cp1.X, (f64)ROUNDING_ERROR_f32)
&& core::iszero(cp1.Y, (f64)ROUNDING_ERROR_f32) && core::iszero(cp1.Y, (f64)ROUNDING_ERROR_f32)
&& core::iszero(cp1.Z, (f64)ROUNDING_ERROR_f32) ) && core::iszero(cp1.Z, (f64)ROUNDING_ERROR_f32) )
{ {
......
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