Commit c2ec44c7 authored by hybrid's avatar hybrid

Minor cleanup.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@761 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 64ea350e
This diff is collapsed.
This diff is collapsed.
...@@ -77,7 +77,7 @@ private: ...@@ -77,7 +77,7 @@ private:
{ {
SMyMaterialEntry () SMyMaterialEntry ()
: Texture1FileName("null"), Texture2FileName("null"), : Texture1FileName("null"), Texture2FileName("null"),
Texture1(0), Texture2(0), MaterialType(video::EMT_SOLID) {;} Texture1(0), Texture2(0), MaterialType(video::EMT_SOLID) {}
SMyMaterialHeader Header; SMyMaterialHeader Header;
core::stringc Texture1FileName; core::stringc Texture1FileName;
...@@ -91,18 +91,18 @@ private: ...@@ -91,18 +91,18 @@ private:
{ {
SMyMeshBufferEntry() : MaterialIndex(-1), MeshBuffer(0) {} SMyMeshBufferEntry() : MaterialIndex(-1), MeshBuffer(0) {}
SMyMeshBufferEntry(s32 mi, SMeshBufferLightMap* mb) SMyMeshBufferEntry(s32 mi, SMeshBufferLightMap* mb)
: MaterialIndex(mi), MeshBuffer(mb) {;} : MaterialIndex(mi), MeshBuffer(mb) {}
s32 MaterialIndex; s32 MaterialIndex;
SMeshBufferLightMap* MeshBuffer; SMeshBufferLightMap* MeshBuffer;
}; };
core::array<SMyMaterialEntry> MaterialEntry;
core::array<SMyMeshBufferEntry> MeshBufferEntry;
SMyMaterialEntry* getMaterialEntryByIndex (u32 matInd); SMyMaterialEntry* getMaterialEntryByIndex (u32 matInd);
SMeshBufferLightMap* getMeshBufferByMaterialIndex(u32 matInd); SMeshBufferLightMap* getMeshBufferByMaterialIndex(u32 matInd);
core::array<SMyMaterialEntry> MaterialEntry;
core::array<SMyMeshBufferEntry> MeshBufferEntry;
core::array<ISceneNode*> ChildNodes; core::array<ISceneNode*> ChildNodes;
}; };
......
// Copyright (C) 2002-2007 Nikolaus Gebhardt // Copyright (C) 2002-2007 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine". // This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h // For conditions of distribution and use, see copyright notice in irrlicht.h
// //
// This file was originally written by ZDimitor. // This file was originally written by ZDimitor.
//---------------------------------------------------------------------- //----------------------------------------------------------------------
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#include <irrTypes.h> #include <irrTypes.h>
namespace irr namespace irr
{ {
namespace scene namespace scene
{ {
//********************************************************************** //**********************************************************************
...@@ -54,7 +54,7 @@ const unsigned long MY_PIXEL_FORMAT_24 = 0x5f32345f; // was: #define MY_PIXEL_FO ...@@ -54,7 +54,7 @@ const unsigned long MY_PIXEL_FORMAT_24 = 0x5f32345f; // was: #define MY_PIXEL_FO
const unsigned long MY_PIXEL_FORMAT_16 = 0x5f31365f; // was: #define MY_PIXEL_FORMAT_16 '_16_' const unsigned long MY_PIXEL_FORMAT_16 = 0x5f31365f; // was: #define MY_PIXEL_FORMAT_16 '_16_'
//-------------------------------------------------------------------- //--------------------------------------------------------------------
// byte-align structures // byte-align structures
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__) #if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
# pragma pack( push, packing ) # pragma pack( push, packing )
# pragma pack( 1 ) # pragma pack( 1 )
# define PACK_STRUCT # define PACK_STRUCT
...@@ -64,7 +64,7 @@ const unsigned long MY_PIXEL_FORMAT_16 = 0x5f31365f; // was: #define MY_PIXEL_FO ...@@ -64,7 +64,7 @@ const unsigned long MY_PIXEL_FORMAT_16 = 0x5f31365f; // was: #define MY_PIXEL_FO
# error compiler not supported # error compiler not supported
#endif #endif
//---------------------------------------------------------------------- //----------------------------------------------------------------------
struct SMyColor struct SMyColor
{ SMyColor () {;} { SMyColor () {;}
SMyColor (s32 __R, s32 __G, s32 __B, s32 __A) SMyColor (s32 __R, s32 __G, s32 __B, s32 __A)
: R(__R), G(__G), B(__B), A(__A) {} : R(__R), G(__G), B(__B), A(__A) {}
...@@ -83,15 +83,15 @@ struct SMyVector2 ...@@ -83,15 +83,15 @@ struct SMyVector2
SMyVector2(f32 __X, f32 __Y) SMyVector2(f32 __X, f32 __Y)
: X(__X), Y(__Y) {} : X(__X), Y(__Y) {}
f32 X, Y; f32 X, Y;
} PACK_STRUCT; } PACK_STRUCT;
struct SMyVertex struct SMyVertex
{ SMyVertex () {;} { SMyVertex () {;}
SMyVertex (SMyVector3 _Coord, SMyColor _Color, SMyVector3 _Normal) SMyVertex (SMyVector3 _Coord, SMyColor _Color, SMyVector3 _Normal)
:Coord(_Coord), Color(_Color), Normal(_Normal) {;} :Coord(_Coord), Color(_Color), Normal(_Normal) {;}
SMyVector3 Coord; SMyVector3 Coord;
SMyColor Color; SMyColor Color;
SMyVector3 Normal; SMyVector3 Normal;
} PACK_STRUCT; } PACK_STRUCT;
struct SMyTVertex struct SMyTVertex
...@@ -117,7 +117,7 @@ struct SMyFileHeader ...@@ -117,7 +117,7 @@ struct SMyFileHeader
// scene header // scene header
struct SMySceneHeader struct SMySceneHeader
{ SMyColor BackgrColor; // background color { SMyColor BackgrColor; // background color
SMyColor AmbientColor; // ambient color SMyColor AmbientColor; // ambient color
s32 MaterialCount; // material count s32 MaterialCount; // material count
s32 MeshCount; // mesh count s32 MeshCount; // mesh count
} PACK_STRUCT; } PACK_STRUCT;
...@@ -130,7 +130,7 @@ struct SMyMaterialHeader ...@@ -130,7 +130,7 @@ struct SMyMaterialHeader
SMyColor DiffuseColor; SMyColor DiffuseColor;
SMyColor EmissiveColor; SMyColor EmissiveColor;
SMyColor SpecularColor; SMyColor SpecularColor;
f32 Shininess; f32 Shininess;
f32 Transparency; f32 Transparency;
s32 TextureCount; // texture count s32 TextureCount; // texture count
} PACK_STRUCT; } PACK_STRUCT;
...@@ -144,7 +144,7 @@ struct SMyMeshHeader ...@@ -144,7 +144,7 @@ struct SMyMeshHeader
// texture data header // texture data header
struct SMyTexDataHeader struct SMyTexDataHeader
{ c8 Name[256]; // texture name { c8 Name[256]; // texture name
u32 ComprMode; //compression mode u32 ComprMode; //compression mode
u32 PixelFormat; u32 PixelFormat;
u32 Width; // image width u32 Width; // image width
...@@ -177,12 +177,12 @@ struct SMyRLEHeader ...@@ -177,12 +177,12 @@ struct SMyRLEHeader
} PACK_STRUCT; } PACK_STRUCT;
// Default alignment // Default alignment
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__) #if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
# pragma pack( pop, packing ) # pragma pack( pop, packing )
#endif #endif
} // end namespace } // end namespace
} // end namespace } // end namespace
#endif #endif
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