Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Migrate public headers to #pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Feb 25, 2024
1 parent 7ddf740 commit 44a368e
Show file tree
Hide file tree
Showing 95 changed files with 95 additions and 476 deletions.
7 changes: 1 addition & 6 deletions include/CMeshBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __T_MESH_BUFFER_H_INCLUDED__
#define __T_MESH_BUFFER_H_INCLUDED__
#pragma once

#include "irrArray.h"
#include "IMeshBuffer.h"
Expand Down Expand Up @@ -293,7 +292,3 @@ namespace scene
typedef CMeshBuffer<video::S3DVertexTangents> SMeshBufferTangents;
} // end namespace scene
} // end namespace irr

#endif


5 changes: 1 addition & 4 deletions include/EAttributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_ATTRIBUTES_H_INCLUDED__
#define __E_ATTRIBUTES_H_INCLUDED__
#pragma once

namespace irr
{
Expand Down Expand Up @@ -31,5 +30,3 @@ enum E_ATTRIBUTE_TYPE

} // end namespace io
} // end namespace irr

#endif
7 changes: 1 addition & 6 deletions include/ECullingTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_CULLING_TYPES_H_INCLUDED__
#define __E_CULLING_TYPES_H_INCLUDED__
#pragma once

#include "irrTypes.h"

Expand Down Expand Up @@ -35,7 +34,3 @@ namespace scene

} // end namespace scene
} // end namespace irr


#endif // __E_CULLING_TYPES_H_INCLUDED__

7 changes: 1 addition & 6 deletions include/EDebugSceneTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_DEBUG_SCENE_TYPES_H_INCLUDED__
#define __E_DEBUG_SCENE_TYPES_H_INCLUDED__
#pragma once

namespace irr
{
Expand Down Expand Up @@ -41,7 +40,3 @@ namespace scene

} // end namespace scene
} // end namespace irr


#endif // __E_DEBUG_SCENE_TYPES_H_INCLUDED__

6 changes: 1 addition & 5 deletions include/EDeviceTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_DEVICE_TYPES_H_INCLUDED__
#define __E_DEVICE_TYPES_H_INCLUDED__
#pragma once

namespace irr
{
Expand Down Expand Up @@ -45,6 +44,3 @@ namespace irr
};

} // end namespace irr

#endif // __E_DEVICE_TYPES_H_INCLUDED__

7 changes: 1 addition & 6 deletions include/EDriverFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_DRIVER_FEATURES_H_INCLUDED__
#define __E_DRIVER_FEATURES_H_INCLUDED__
#pragma once

namespace irr
{
Expand Down Expand Up @@ -136,7 +135,3 @@ namespace video

} // end namespace video
} // end namespace irr


#endif

6 changes: 1 addition & 5 deletions include/EDriverTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_DRIVER_TYPES_H_INCLUDED__
#define __E_DRIVER_TYPES_H_INCLUDED__
#pragma once

#include "irrTypes.h"

Expand Down Expand Up @@ -43,6 +42,3 @@ namespace video

} // end namespace video
} // end namespace irr


#endif
6 changes: 1 addition & 5 deletions include/EFocusFlags.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef E_FOCUS_FLAGS_H_INCLUDED__
#define E_FOCUS_FLAGS_H_INCLUDED__
#pragma once

namespace irr
{
Expand Down Expand Up @@ -33,6 +32,3 @@ enum EFOCUS_FLAG

} // namespace gui
} // namespace irr

#endif

5 changes: 1 addition & 4 deletions include/EGUIAlignment.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_GUI_ALIGNMENT_H_INCLUDED__
#define __E_GUI_ALIGNMENT_H_INCLUDED__
#pragma once

#include "irrTypes.h"

Expand Down Expand Up @@ -35,5 +34,3 @@ const c8* const GUIAlignmentNames[] =

} // namespace gui
} // namespace irr

#endif // __E_GUI_ALIGNMENT_H_INCLUDED__
9 changes: 1 addition & 8 deletions include/EGUIElementTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_GUI_ELEMENT_TYPES_H_INCLUDED__
#define __E_GUI_ELEMENT_TYPES_H_INCLUDED__
#pragma once

#include "irrTypes.h"

Expand Down Expand Up @@ -133,9 +132,3 @@ const c8* const GUIElementTypeNames[] =

} // end namespace gui
} // end namespace irr

#endif




6 changes: 1 addition & 5 deletions include/EHardwareBufferFlags.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_HARDWARE_BUFFER_FLAGS_INCLUDED__
#define __E_HARDWARE_BUFFER_FLAGS_INCLUDED__
#pragma once

namespace irr
{
Expand Down Expand Up @@ -39,6 +38,3 @@ namespace scene

} // end namespace scene
} // end namespace irr

#endif

7 changes: 1 addition & 6 deletions include/EMaterialProps.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_MATERIAL_PROPS_H_INCLUDED__
#define __E_MATERIAL_PROPS_H_INCLUDED__
#pragma once

namespace irr
{
Expand Down Expand Up @@ -81,7 +80,3 @@ namespace video

} // end namespace video
} // end namespace irr


#endif // __E_MATERIAL_PROPS_H_INCLUDED__

7 changes: 1 addition & 6 deletions include/EMaterialTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_MATERIAL_TYPES_H_INCLUDED__
#define __E_MATERIAL_TYPES_H_INCLUDED__
#pragma once

#include "irrTypes.h"

Expand Down Expand Up @@ -74,7 +73,3 @@ namespace video

} // end namespace video
} // end namespace irr


#endif // __E_MATERIAL_TYPES_H_INCLUDED__

7 changes: 1 addition & 6 deletions include/EMeshWriterEnums.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_MESH_WRITER_ENUMS_H_INCLUDED__
#define __E_MESH_WRITER_ENUMS_H_INCLUDED__
#pragma once

#include "irrTypes.h"

Expand Down Expand Up @@ -59,7 +58,3 @@ namespace scene

} // end namespace scene
} // end namespace irr


#endif // __E_MESH_WRITER_ENUMS_H_INCLUDED__

6 changes: 1 addition & 5 deletions include/EPrimitiveTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_PRIMITIVE_TYPES_H_INCLUDED__
#define __E_PRIMITIVE_TYPES_H_INCLUDED__
#pragma once

namespace irr
{
Expand Down Expand Up @@ -42,6 +41,3 @@ namespace scene

} // end namespace scene
} // end namespace irr

#endif

6 changes: 1 addition & 5 deletions include/EReadFileType.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_READ_FILE_TYPES_H_INCLUDED__
#define __E_READ_FILE_TYPES_H_INCLUDED__
#pragma once

#include "irrTypes.h"

Expand All @@ -29,6 +28,3 @@ namespace io
};
} // end namespace io
} // end namespace irr


#endif
7 changes: 1 addition & 6 deletions include/ESceneNodeTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __E_SCENE_NODE_TYPES_H_INCLUDED__
#define __E_SCENE_NODE_TYPES_H_INCLUDED__
#pragma once

#include "irrTypes.h"

Expand Down Expand Up @@ -50,7 +49,3 @@ namespace scene

} // end namespace scene
} // end namespace irr


#endif

6 changes: 1 addition & 5 deletions include/EShaderTypes.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef __E_SHADER_TYPES_H_INCLUDED__
#define __E_SHADER_TYPES_H_INCLUDED__
#pragma once

#include "irrTypes.h"

Expand Down Expand Up @@ -85,6 +84,3 @@ const c8* const GEOMETRY_SHADER_TYPE_NAMES[] = {

} // end namespace video
} // end namespace irr

#endif // __E_SHADER_TYPES_H_INCLUDED__

5 changes: 1 addition & 4 deletions include/EVertexAttributes.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef __E_VERTEX_ATTRIBUTES_H_INCLUDED__
#define __E_VERTEX_ATTRIBUTES_H_INCLUDED__
#pragma once

namespace irr
{
Expand Down Expand Up @@ -34,5 +33,3 @@ const char* const sBuiltInVertexAttributeNames[] =

} // end namespace video
} // end namespace irr

#endif //__E_VERTEX_ATTRIBUTES_H_INCLUDED__
6 changes: 1 addition & 5 deletions include/IAnimatedMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __I_ANIMATED_MESH_H_INCLUDED__
#define __I_ANIMATED_MESH_H_INCLUDED__
#pragma once

#include "aabbox3d.h"
#include "IMesh.h"
Expand Down Expand Up @@ -69,6 +68,3 @@ namespace scene

} // end namespace scene
} // end namespace irr

#endif

6 changes: 1 addition & 5 deletions include/IAnimatedMeshSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __I_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
#define __I_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
#pragma once

#include "ISceneNode.h"
#include "IBoneSceneNode.h"
Expand Down Expand Up @@ -172,6 +171,3 @@ namespace scene

} // end namespace scene
} // end namespace irr

#endif

5 changes: 1 addition & 4 deletions include/IAttributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __I_ATTRIBUTES_H_INCLUDED__
#define __I_ATTRIBUTES_H_INCLUDED__
#pragma once

#include "IReferenceCounted.h"
#include "EAttributes.h"
Expand Down Expand Up @@ -128,5 +127,3 @@ class IAttributes : public virtual IReferenceCounted

} // end namespace io
} // end namespace irr

#endif
7 changes: 1 addition & 6 deletions include/IBillboardSceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h

#ifndef __I_BILLBOARD_SCENE_NODE_H_INCLUDED__
#define __I_BILLBOARD_SCENE_NODE_H_INCLUDED__
#pragma once

#include "ISceneNode.h"

Expand Down Expand Up @@ -90,7 +89,3 @@ class IBillboardSceneNode : public ISceneNode

} // end namespace scene
} // end namespace irr


#endif

Loading

0 comments on commit 44a368e

Please sign in to comment.