[DEV] replace 'include guard' with 'pragma once'

This commit is contained in:
Edouard DUPIN 2016-02-02 21:18:54 +01:00
parent 2393c4da35
commit 15ada13bf8
49 changed files with 98 additions and 306 deletions

View File

@ -5,14 +5,11 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_AUDIO_ELEMENT_H__
#define __EGE_AUDIO_ELEMENT_H__
#pragma once
namespace ege {
};
#endif
}

View File

@ -5,14 +5,10 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_AUDIO_ENGINE_H__
#define __EGE_AUDIO_ENGINE_H__
#pragma once
namespace ege {
};
#endif
}

View File

@ -6,9 +6,7 @@
* @license BSD v3 (see license file)
*
*/
#ifndef __EGE_COLLISION_SHAPE_CREATOR_H__
#define __EGE_COLLISION_SHAPE_CREATOR_H__
#pragma once
#include <etk/types.h>
#include <ege/resource/Mesh.h>
@ -17,7 +15,6 @@
namespace ege {
namespace collision {
btCollisionShape* createShape(const std::shared_ptr<ege::resource::Mesh>& _mesh);
};
};
#endif
}
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_ENVIRONEMENT_H__
#define __EGE_ENVIRONEMENT_H__
#pragma once
namespace ege {
class Environement;
@ -276,8 +274,6 @@ namespace ege {
}
virtual void onParameterChangeValue(const ewol::parameter::Ref& _paramPointer);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_SCENE_H__
#define __EGE_SCENE_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector3D.h>
@ -49,9 +47,5 @@ namespace ege {
ege::PhysicEngine m_physicEngine; //!< physic engine interface
ege::AudioEngine m_AudioEngine; //!< physic engine interface
ege::IAEngine m_iAEngine; //!< physic engine interface
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_LIGHT_H__
#define __EGE_LIGHT_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector3D.h>
@ -54,8 +52,5 @@ namespace ege {
friend std::ostream& operator <<(std::ostream& _os, const ege::Light& _obj);
};
std::ostream& operator <<(std::ostream& _os, const ege::Light& _obj);
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_MATERIAL_H__
#define __EGE_MATERIAL_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector3D.h>
@ -88,9 +86,6 @@ namespace ege {
m_texture0->flush();
};
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PARTICULE_H__
#define __EGE_PARTICULE_H__
#pragma once
namespace ege {
class Particule;
@ -76,8 +74,7 @@ namespace ege {
*/
virtual void onEnd() {};
};
};
#endif
}

View File

@ -7,9 +7,7 @@
*/
#include <ege/Environement.h>
#ifndef __EGE_PARTICULE_ENGINE_H__
#define __EGE_PARTICULE_ENGINE_H__
#pragma once
namespace ege {
class ParticuleEngine;
@ -66,8 +64,6 @@ namespace ege {
Particule* respown(const char* _particuleType);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PARTICULE_SIMPLE_H__
#define __EGE_PARTICULE_SIMPLE_H__
#pragma once
namespace ege {
class ParticuleSimple;
@ -65,8 +63,6 @@ namespace ege {
virtual void setScale(const vec3& _scale);
virtual void setScaleExpend(const vec3& _scaleExpand);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_RAY_H__
#define __EGE_RAY_H__
#pragma once
#include <etk/math/Vector3D.h>
namespace ege {
@ -73,6 +71,5 @@ namespace ege {
vec3 testRayZeroPlane();
};
std::ostream& operator <<(std::ostream& _os, const ege::Ray& _obj);
};
}
#endif

View File

@ -6,8 +6,7 @@
* @license BSD v3 (see license file)
*/
#ifndef __EGE_CAMERA_H__
#define __EGE_CAMERA_H__
#pragma once
#include <etk/types.h>
@ -173,9 +172,6 @@ namespace ege {
* @param[in,out] draw Basic system to draw the debug shape and informations
*/
virtual void drawDebug(const std::shared_ptr<ewol::resource::Colored3DObject>& _draw, const std::shared_ptr<ege::Camera>& _camera) { }
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_CAMERA_VIEW_H__
#define __EGE_CAMERA_VIEW_H__
#pragma once
#include <ege/camera/Camera.h>
@ -81,8 +79,6 @@ namespace ege {
virtual float getTetha();
virtual float getPsy();
};
};
};
#endif
}
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_DEBUG_H__
#define __EGE_DEBUG_H__
#pragma once
#include <etk/log.h>
@ -39,5 +37,4 @@ namespace ege {
} \
} while (0)
#endif

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_ELEMENT_H__
#define __EGE_ELEMENT_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector3D.h>
@ -230,8 +228,6 @@ namespace ege {
*/
virtual void dynamicDisable() {};
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_ELEMENT_BASE_H__
#define __EGE_ELEMENT_BASE_H__
#pragma once
#include <ege/elements/Element.h>
@ -37,8 +35,5 @@ namespace ege {
virtual const vec3& getPosition();
virtual void setPosition(const vec3& _pos);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_ELEMENT_PHYSIC_H__
#define __EGE_ELEMENT_PHYSIC_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector3D.h>
@ -208,8 +206,6 @@ namespace ege {
*/
virtual void onCollisionDetected(const std::shared_ptr<ege::Element>& _obj, const vec3& _point, const vec3& _normal) {};
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PHYSICS_ENGINE_H__
#define __EGE_PHYSICS_ENGINE_H__
#pragma once
namespace ege {
namespace physics {
@ -99,7 +97,6 @@ namespace ege {
*/
std::vector<ege::physics::Engine::collisionPoints> getListOfCollision();
};
};
};
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PHYSICS_BOX_H__
#define __EGE_PHYSICS_BOX_H__
#pragma once
#include <etk/types.h>
@ -42,6 +40,5 @@ namespace ege {
return this;
};
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PHYSICS_CAPSULE_H__
#define __EGE_PHYSICS_CAPSULE_H__
#pragma once
#include <etk/types.h>
@ -46,7 +44,5 @@ namespace ege {
return this;
};
};
};
}
#endif

View File

@ -5,15 +5,11 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PHYSICS_CONE_H__
#define __EGE_PHYSICS_CONE_H__
#pragma once
#include <etk/types.h>
#include <ege/physicsShape/PhysicsShape.h>
namespace ege {
class PhysicsCone : public ege::PhysicsShape {
public:
@ -46,7 +42,5 @@ namespace ege {
return this;
};
};
};
}
#endif

View File

@ -5,15 +5,11 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PHYSICS_CONVEX_HULL_H__
#define __EGE_PHYSICS_CONVEX_HULL_H__
#pragma once
#include <etk/types.h>
#include <ege/physicsShape/PhysicsShape.h>
namespace ege {
class PhysicsConvexHull : public ege::PhysicsShape {
public:
@ -46,7 +42,5 @@ namespace ege {
return this;
};
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PHYSICS_CYLINDER_H__
#define __EGE_PHYSICS_CYLINDER_H__
#pragma once
#include <etk/types.h>
@ -40,6 +38,5 @@ namespace ege {
return this;
};
};
};
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PHYSICS_SHAPE_H__
#define __EGE_PHYSICS_SHAPE_H__
#pragma once
#include <etk/types.h>
#include <etk/types.h>
@ -131,8 +128,5 @@ namespace ege {
return nullptr;
};
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_PHYSICS_SPHERE_H__
#define __EGE_PHYSICS_SPHERE_H__
#pragma once
#include <etk/types.h>
@ -43,6 +41,5 @@ namespace ege {
return this;
};
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_MESH_H__
#define __EGE_MESH_H__
#pragma once
#include <etk/types.h>
#include <etk/Hash.h>
@ -298,8 +296,6 @@ namespace ege {
int32_t findTextureInList(const vec2& _uv);
int32_t findColorInList(const etk::Color<float>& _color);
};
};
};
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_RESOURCE_PARTICULE_MESH_H__
#define __EGE_RESOURCE_PARTICULE_MESH_H__
#pragma once
#include <ege/resource/Mesh.h>
@ -28,8 +26,5 @@ namespace ege {
bool _enableDepthTest = true,
bool _enableDepthUpdate = true);
};
};
};
#endif
}
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_FACE_H__
#define __EGE_FACE_H__
#pragma once
namespace ege {
/**
@ -101,6 +99,5 @@ namespace ege {
m_color[2] = _c3;
}
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_FACE_INDEXING_H__
#define __EGE_FACE_INDEXING_H__
#pragma once
namespace ege {
class FaceIndexing {
@ -15,7 +13,5 @@ namespace ege {
std::vector<Face> m_faces;
std::vector<uint32_t> m_index;
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_TOOLS_ICOSPHERE_H__
#define __EGE_TOOLS_ICOSPHERE_H__
#pragma once
#include <ege/resource/tools/Face.h>
#include <ege/resource/tools/FaceIndexing.h>
@ -18,9 +16,6 @@ namespace ege {
namespace icoSphere {
void create(etk::Hash<std::shared_ptr<ege::Material>>& _materials, etk::Hash<FaceIndexing>& _listFaces, std::vector<vec3>& _listVertex, std::vector<vec2>& _listUV,
const std::string& _materialName, float _size, int32_t _recursionLevel);
};
};
#endif
}
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_TOOLS_ISOSPHERE_H__
#define __EGE_TOOLS_ISOSPHERE_H__
#pragma once
#include <ege/resource/tools/Face.h>
#include <ege/resource/tools/FaceIndexing.h>
@ -18,9 +16,6 @@ namespace ege {
namespace isoSphere {
void create(etk::Hash<std::shared_ptr<ege::Material>>& _materials, etk::Hash<FaceIndexing>& _listFaces, std::vector<vec3>& _listVertex, std::vector<vec2>& _listUV,
const std::string& _materialName, int32_t _recursionLevel);
};
};
#endif
}
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_TOOLS_VIEWBOX_H__
#define __EGE_TOOLS_VIEWBOX_H__
#pragma once
#include <ege/resource/tools/Face.h>
#include <ege/resource/tools/FaceIndexing.h>
@ -18,9 +16,6 @@ namespace ege {
namespace viewBox {
void create(etk::Hash<std::shared_ptr<ege::Material>>& _materials, etk::Hash<FaceIndexing>& _listFaces, std::vector<vec3>& _listVertex, std::vector<vec2>& _listUV,
const std::string& _materialName, float _size);
};
};
#endif
}
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EWOL_WIDGET_MESH_H__
#define __EWOL_WIDGET_MESH_H__
#pragma once
#include <etk/types.h>
#include <ewol/widget/Widget.h>
@ -68,8 +66,5 @@ namespace ege {
*/
void setDistance(float _distance);
};
};
};
#endif
}
}

View File

@ -5,9 +5,7 @@
*
* @license BSD v3 (see license file)
*/
#ifndef __EGE_SCENE_H__
#define __EGE_SCENE_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector3D.h>
@ -116,9 +114,6 @@ namespace ege {
return m_debugApplication.get();
}
};
};
};
#endif
}
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_WINDOWS_H__
#define __APPL_WINDOWS_H__
#pragma once
#include <ewol/widget/Windows.h>
#include <ege/Environement.h>
@ -27,7 +25,5 @@ namespace appl {
private:
void onCallbackPeriodicUpdateCamera(const ewol::event::Time& _event);
};
};
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_DEBUG_H__
#define __APPL_DEBUG_H__
#pragma once
#include <etk/log.h>
@ -49,4 +46,3 @@ namespace appl {
} \
} while (0)
#endif

View File

@ -5,10 +5,5 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_MAIN_H__
#define __APPL_MAIN_H__
#endif
#pragma once

View File

@ -5,9 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_WINDOWS_H__
#define __APPL_WINDOWS_H__
#pragma once
#include <ewol/widget/Windows.h>
#include <ege/Environement.h>
@ -32,7 +30,5 @@ namespace appl {
vec2 m_oldScreenPos;
void onCallbackPeriodicCheckCollision(const ewol::event::Time& _event);
};
};
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_DEBUG_H__
#define __APPL_DEBUG_H__
#pragma once
#include <etk/log.h>
@ -49,4 +46,3 @@ namespace appl {
} \
} while (0)
#endif

View File

@ -5,10 +5,5 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_MAIN_H__
#define __APPL_MAIN_H__
#endif
#pragma once

View File

@ -5,9 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_WINDOWS_H__
#define __APPL_WINDOWS_H__
#pragma once
#include <ewol/widget/Windows.h>
#include <ege/Environement.h>
@ -31,7 +29,5 @@ namespace appl {
float m_anglePsy;
vec2 m_oldScreenPos;
};
};
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_DEBUG_H__
#define __APPL_DEBUG_H__
#pragma once
#include <etk/log.h>
@ -49,4 +46,3 @@ namespace appl {
} \
} while (0)
#endif

View File

@ -5,10 +5,5 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_MAIN_H__
#define __APPL_MAIN_H__
#endif
#pragma once

View File

@ -5,9 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_WINDOWS_H__
#define __APPL_WINDOWS_H__
#pragma once
#include <ewol/widget/Windows.h>
#include <ege/Environement.h>
@ -27,7 +25,5 @@ namespace appl {
private:
void onCallbackPeriodicUpdateCamera(const ewol::event::Time& _event);
};
};
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_DEBUG_H__
#define __APPL_DEBUG_H__
#pragma once
#include <etk/log.h>
@ -49,4 +46,3 @@ namespace appl {
} \
} while (0)
#endif

View File

@ -5,10 +5,5 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_MAIN_H__
#define __APPL_MAIN_H__
#endif
#pragma once

View File

@ -5,9 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_WINDOWS_H__
#define __APPL_WINDOWS_H__
#pragma once
#include <ewol/widget/Windows.h>
#include <ege/Environement.h>
@ -34,7 +32,5 @@ namespace appl {
vec2 m_oldScreenPos;
std::pair<vec3,vec3> m_destination;
};
};
}
#endif

View File

@ -5,10 +5,7 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_DEBUG_H__
#define __APPL_DEBUG_H__
#pragma once
#include <etk/log.h>
@ -49,4 +46,3 @@ namespace appl {
} \
} while (0)
#endif

View File

@ -5,10 +5,5 @@
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_MAIN_H__
#define __APPL_MAIN_H__
#endif
#pragma once