Compilation changes

Few compile time attempts to speed things up

Swap include guards for pramga once
Change compile options in the cmakeLists for source
generate a pch

small tweaks
This commit is contained in:
marauder2k7 2026-05-21 23:55:35 +01:00
parent 0df3bea9ca
commit 68e762130d
1016 changed files with 2848 additions and 5532 deletions

View file

@ -19,34 +19,21 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#ifndef _MATHUTIL_FRUSTUM_H_
#define _MATHUTIL_FRUSTUM_H_
#ifndef _MPOLYHEDRON_H_
#include "math/mPolyhedron.h"
#endif
#ifndef _MBOX_H_
#include "math/mBox.h"
#endif
#ifndef _MPLANE_H_
#include "math/mPlane.h"
#endif
#ifndef _MMATRIX_H_
#include "math/mMatrix.h"
#endif
#ifndef _MQUAT_H_
#include "math/mQuat.h"
#endif
#ifndef _MSPHERE_H_
#include "math/mSphere.h"
#endif
//TODO: Specialize intersection tests for frustums using octant tests

View file

@ -19,19 +19,14 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _MATRIXSET_H_
#define _MATRIXSET_H_
#ifndef _MMATRIX_H_
#include "math/mMatrix.h"
#endif
#ifndef _UTIL_DELEGATE_H_
#include "core/util/delegate.h"
#endif
#ifndef _MATRIXSETDELEGATES_H_
#include "math/util/matrixSetDelegateMethods.h"
#endif
#include "math/util/matrixSetDelegateMethods.h"
dALIGN_BEGIN

View file

@ -19,6 +19,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _MATRIXSETDELEGATES_H_
#define _MATRIXSETDELEGATES_H_

View file

@ -19,19 +19,16 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _QUADTOQUADTRANSFORMS_H_
#define _QUADTOQUADTRANSFORMS_H_
#ifndef _MPOINT2_H_
#include "math/mPoint2.h"
#endif
#ifndef _MPOINT3_H_
#include "math/mPoint3.h"
#endif
#ifndef _MMATRIX_H_
#include "math/mMatrix.h"
#endif
// NOTE: The code in these classes originate from the Wild Magic Source Code
// library by David Eberly and is used with permission.

View file

@ -19,16 +19,14 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#pragma once
#pragma once
#ifndef _SPHEREMESH_H_
#define _SPHEREMESH_H_
#ifndef _MMATH_H_
#include "math/mMath.h"
#endif
#ifndef _TVECTOR_H_
#include "core/util/tVector.h"
#endif
//------------------------------------------------------------------------------
// Class: SphereMesh

View file

@ -23,22 +23,16 @@
// Notice:
// Some of this code originates from an article in AI Game Programming Wisdom
// by Dave Mark.
#pragma once
#pragma once
#ifndef _TRESPONSECURVE_H_
#define _TRESPONSECURVE_H_
#ifndef _TVECTOR_H_
#include "core/util/tVector.h"
#endif
#ifndef _MMATHFN_H_
#include "math/mMathFn.h"
#endif
#ifndef _SIMOBJECT_H_
#include "console/simObject.h"
#endif
// -------------------------------
// Represents a sigmoid function