mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-08 13:14:33 +00:00
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:
parent
0df3bea9ca
commit
68e762130d
1016 changed files with 2848 additions and 5532 deletions
|
|
@ -19,13 +19,12 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MANGAXIS_H_
|
||||
#define _MANGAXIS_H_
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
#ifndef USE_TEMPLATE_MATRIX
|
||||
class MatrixF;
|
||||
|
|
|
|||
|
|
@ -19,22 +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 _MBOX_H_
|
||||
#define _MBOX_H_
|
||||
|
||||
#ifndef _MBOXBASE_H_
|
||||
#include "math/mBoxBase.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPOINT2_H_
|
||||
#include "math/mPoint2.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_TEMPLATE_MATRIX
|
||||
class MatrixF;
|
||||
|
|
|
|||
|
|
@ -19,14 +19,12 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MBOXBASE_H_
|
||||
#define _MBOXBASE_H_
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
|
||||
/// Base class for box geometries.
|
||||
class BoxBase
|
||||
|
|
|
|||
|
|
@ -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 _MCONSTANTS_H_
|
||||
#define _MCONSTANTS_H_
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@
|
|||
http://www.robertpenner.com/profmx
|
||||
http://www.amazon.com/exec/obidos/ASIN/0072223561/robertpennerc-20
|
||||
*/
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MEASE_H_
|
||||
#define _MEASE_H_
|
||||
|
|
|
|||
|
|
@ -19,42 +19,26 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MINTERSECTOR_H_
|
||||
#define _MINTERSECTOR_H_
|
||||
|
||||
#ifndef _MCONSTANTS_H_
|
||||
#include "math/mConstants.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MBOX_H_
|
||||
#include "math/mBox.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MORIENTEDBOX_H_
|
||||
#include "math/mOrientedBox.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MSPHERE_H_
|
||||
#include "math/mSphere.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPLANE_H_
|
||||
#include "math/mPlane.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPOLYHEDRON_H_
|
||||
#include "math/mPolyhedron.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPLANETRANSFORMER_H_
|
||||
#include "math/mPlaneTransformer.h"
|
||||
#endif
|
||||
|
||||
#ifndef _PROFILER_H_
|
||||
#include "platform/profiler.h"
|
||||
#endif
|
||||
|
||||
|
||||
/// @file
|
||||
/// Precise and fast geometric intersection testing.
|
||||
|
|
|
|||
|
|
@ -19,35 +19,27 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MMATH_H_
|
||||
#define _MMATH_H_
|
||||
|
||||
|
||||
#ifndef _MRECT_H_
|
||||
#include "math/mRect.h"
|
||||
#endif
|
||||
#ifndef _MBOX_H_
|
||||
|
||||
#include "math/mBox.h"
|
||||
#endif
|
||||
#ifndef _MMATRIX_H_
|
||||
|
||||
#include "math/mMatrix.h"
|
||||
#endif
|
||||
#ifndef _MQUAT_H_
|
||||
|
||||
#include "math/mQuat.h"
|
||||
#endif
|
||||
#ifndef _MANGAXIS_H_
|
||||
|
||||
#include "math/mAngAxis.h"
|
||||
#endif
|
||||
#ifndef _MSPHERE_H_
|
||||
|
||||
#include "math/mSphere.h"
|
||||
#endif
|
||||
#ifndef _MRANDOM_H_
|
||||
|
||||
#include "math/mRandom.h"
|
||||
#endif
|
||||
#ifndef _MEASE_H_
|
||||
|
||||
#include "math/mEase.h"
|
||||
#endif
|
||||
|
||||
#ifndef MROTATION_H
|
||||
#include "math/mRotation.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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 _MMATHFN_H_
|
||||
#define _MMATHFN_H_
|
||||
|
|
@ -26,14 +28,9 @@
|
|||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <limits>
|
||||
|
||||
#ifndef _MCONSTANTS_H_
|
||||
#include "math/mConstants.h"
|
||||
#endif
|
||||
#ifndef _PLATFORMASSERT_H_
|
||||
#include "platform/platformAssert.h"
|
||||
#endif
|
||||
|
||||
#include "platform/platformAssert.h"
|
||||
|
||||
extern void MathConsoleInit();
|
||||
|
||||
|
|
|
|||
|
|
@ -19,40 +19,26 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MMATRIX_H_
|
||||
#define _MMATRIX_H_
|
||||
#include <algorithm>
|
||||
#ifndef _MPLANE_H_
|
||||
#include "math/mPlane.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MBOX_H_
|
||||
#include "math/mBox.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPOINT4_H_
|
||||
#include "math/mPoint4.h"
|
||||
#endif
|
||||
|
||||
#ifndef _ENGINETYPEINFO_H_
|
||||
#include "console/engineTypeInfo.h"
|
||||
#endif
|
||||
|
||||
#ifndef _FRAMEALLOCATOR_H_
|
||||
#include "core/frameAllocator.h"
|
||||
#endif
|
||||
|
||||
#ifndef _STRINGFUNCTIONS_H_
|
||||
#include "core/strings/stringFunctions.h"
|
||||
#endif
|
||||
|
||||
#ifndef _CONSOLE_H_
|
||||
#include "console/console.h"
|
||||
#endif
|
||||
#ifndef _MATH_BACKEND_H_
|
||||
#include "math/public/math_backend.h"
|
||||
#endif
|
||||
|
||||
#ifndef USE_TEMPLATE_MATRIX
|
||||
|
||||
|
|
|
|||
|
|
@ -19,18 +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 _MORIENTEDBOX_H_
|
||||
#define _MORIENTEDBOX_H_
|
||||
|
||||
#ifndef _MBOXBASE_H_
|
||||
#include "math/mBoxBase.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_TEMPLATE_MATRIX
|
||||
class MatrixF;
|
||||
|
|
|
|||
|
|
@ -19,26 +19,18 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MPLANE_H_
|
||||
#define _MPLANE_H_
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MBOX_H_
|
||||
#include "math/mBox.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MORIENTEDBOX_H_
|
||||
#include "math/mOrientedBox.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MSPHERE_H_
|
||||
#include "math/mSphere.h"
|
||||
#endif
|
||||
|
||||
|
||||
/// A 3D plane defined by a normal and a distance along the normal.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -19,34 +19,22 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MPLANESET_H_
|
||||
#define _MPLANESET_H_
|
||||
|
||||
#ifndef _MPLANE_H_
|
||||
#include "math/mPlane.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MBOX_H_
|
||||
#include "math/mBox.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MSPHERE_H_
|
||||
#include "math/mSphere.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MORIENTEDBOX_H_
|
||||
#include "math/mOrientedBox.h"
|
||||
#endif
|
||||
|
||||
#ifndef _TEMPALLOC_H_
|
||||
#include "util/tempAlloc.h"
|
||||
#endif
|
||||
|
||||
#ifndef _TALGORITHM_H_
|
||||
#include "core/tAlgorithm.h"
|
||||
#endif
|
||||
|
||||
|
||||
/// Set of planes which can be tested against bounding volumes.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -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 _MPLANETRANSFORMER_H_
|
||||
#define _MPLANETRANSFORMER_H_
|
||||
|
||||
#ifndef _MMATRIX_H_
|
||||
#include "math/mMatrix.h"
|
||||
#endif
|
||||
#ifndef _MPOINT3_H_
|
||||
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
#ifndef _MPLANE_H_
|
||||
|
||||
#include "math/mPlane.h"
|
||||
#endif
|
||||
|
||||
// =========================================================
|
||||
class PlaneTransformer
|
||||
|
|
|
|||
|
|
@ -19,13 +19,12 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MPOINT2_H_
|
||||
#define _MPOINT2_H_
|
||||
|
||||
#ifndef _MMATHFN_H_
|
||||
#include "math/mMathFn.h"
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// 2D integer point
|
||||
|
|
|
|||
|
|
@ -19,19 +19,15 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#define _MPOINT3_H_
|
||||
|
||||
#ifndef _MMATHFN_H_
|
||||
#include "math/mMathFn.h"
|
||||
#endif
|
||||
#ifndef _MPOINT2_H_
|
||||
|
||||
#include "math/mPoint2.h"
|
||||
#endif
|
||||
#ifndef _MATH_BACKEND_H_
|
||||
#include "math/public/math_backend.h"
|
||||
#endif
|
||||
|
||||
#include <array>
|
||||
|
||||
|
|
|
|||
|
|
@ -19,20 +19,15 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MPOINT4_H_
|
||||
#define _MPOINT4_H_
|
||||
|
||||
#ifndef _MMATHFN_H_
|
||||
#include "math/mMathFn.h"
|
||||
#endif
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
#ifndef _MATH_BACKEND_H_
|
||||
#include "math/public/math_backend.h"
|
||||
#endif
|
||||
|
||||
#include "math/mPoint3.h"
|
||||
#include "math/public/math_backend.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// 4D integer point
|
||||
|
|
|
|||
|
|
@ -19,38 +19,24 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MPOLYHEDRON_H_
|
||||
#define _MPOLYHEDRON_H_
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPLANE_H_
|
||||
#include "math/mPlane.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPLANESET_H_
|
||||
#include "math/mPlaneSet.h"
|
||||
#endif
|
||||
|
||||
#ifndef _TVECTOR_H_
|
||||
#include "core/util/tVector.h"
|
||||
#endif
|
||||
|
||||
#ifndef _TUNMANAGEDVECTOR_H_
|
||||
#include "core/util/tUnmanagedVector.h"
|
||||
#endif
|
||||
|
||||
#ifndef _TFIXEDSIZEVECTOR_H_
|
||||
#include "core/util/tFixedSizeVector.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MCONSTANTS_H_
|
||||
#include "math/mConstants.h"
|
||||
#endif
|
||||
|
||||
|
||||
/// @file
|
||||
/// Templated polyhedron code to allow all code to use a central definition of polyhedrons and
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
#ifndef _MPOLYHEDRON_IMPL_H_
|
||||
#define _MPOLYHEDRON_IMPL_H_
|
||||
|
|
|
|||
|
|
@ -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 _MQUADPATCH_H_
|
||||
#define _MQUADPATCH_H_
|
||||
|
||||
#ifndef _PLATFORM_H_
|
||||
#include "platform/platform.h"
|
||||
#endif
|
||||
#ifndef _MPOINT3_H_
|
||||
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
#ifndef _MSPLINEPATCH_H_
|
||||
|
||||
#include "math/mSplinePatch.h"
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// Quadratic spline patch. This is a special type of spline that only had 3 control points.
|
||||
|
|
|
|||
|
|
@ -19,13 +19,12 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MQUAT_H_
|
||||
#define _MQUAT_H_
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
#ifndef USE_TEMPLATE_MATRIX
|
||||
class MatrixF;
|
||||
|
|
|
|||
|
|
@ -19,14 +19,12 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MRANDOM_H_
|
||||
#define _MRANDOM_H_
|
||||
|
||||
#ifndef _PLATFORMASSERT_H_
|
||||
#include "platform/platformAssert.h"
|
||||
#endif
|
||||
|
||||
|
||||
//--------------------------------------
|
||||
/// Base class for random number generators
|
||||
|
|
|
|||
|
|
@ -19,13 +19,12 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MRANDOMDECK_H_
|
||||
#define _MRANDOMDECK_H_
|
||||
|
||||
#ifndef _MRANDOM_H_
|
||||
#include "math/mRandom.h"
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
class MRandomDeck
|
||||
|
|
|
|||
|
|
@ -19,13 +19,12 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MRANDOMSET_H_
|
||||
#define _MRANDOMSET_H_
|
||||
|
||||
#ifndef _MRANDOM_H_
|
||||
#include "math/mRandom.h"
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
class MRandomSet
|
||||
|
|
|
|||
|
|
@ -19,14 +19,12 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MRECT_H_
|
||||
#define _MRECT_H_
|
||||
|
||||
#ifndef _MPOINT2_H_
|
||||
#include "math/mPoint2.h"
|
||||
#endif
|
||||
|
||||
|
||||
class RectI
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,26 +22,15 @@
|
|||
|
||||
#ifndef MROTATION_H
|
||||
#define MROTATION_H
|
||||
|
||||
#ifndef _MMATHFN_H_
|
||||
#include "math/mMathFn.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MQUAT_H_
|
||||
#include "math/mQuat.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MMATRIX_H_
|
||||
#include "math/mMatrix.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MANGAXIS_H_
|
||||
#include "math/mAngAxis.h"
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// Rotation Interop Utility class
|
||||
|
|
|
|||
|
|
@ -19,18 +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 _MSILHOUETTEEXTRACTOR_H_
|
||||
#define _MSILHOUETTEEXTRACTOR_H_
|
||||
|
||||
#ifndef _FRAMEALLOCATOR_H_
|
||||
#include "core/frameAllocator.h"
|
||||
#endif
|
||||
|
||||
#ifndef _TVECTOR_H_
|
||||
#include "core/util/tVector.h"
|
||||
#endif
|
||||
|
||||
|
||||
/// @file
|
||||
/// Routines for extracting silhouette polygons from polyhedrons.
|
||||
|
|
|
|||
|
|
@ -19,14 +19,12 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MSPHERE_H_
|
||||
#define _MSPHERE_H_
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
|
||||
class SphereF
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 _MSPLINEPATCH_H_
|
||||
#define _MSPLINEPATCH_H_
|
||||
|
||||
#ifndef _PLATFORM_H_
|
||||
#include "platform/platform.h"
|
||||
#endif
|
||||
#ifndef _MPOINT3_H_
|
||||
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
#ifndef _TVECTOR_H_
|
||||
|
||||
#include "core/util/tVector.h"
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Spline control points
|
||||
|
|
|
|||
|
|
@ -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 _MTRANSFORM_H_
|
||||
#define _MTRANSFORM_H_
|
||||
|
|
|
|||
|
|
@ -19,21 +19,18 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MATHIO_H_
|
||||
#define _MATHIO_H_
|
||||
|
||||
//Includes
|
||||
#ifndef _PLATFORM_H_
|
||||
#include "platform/platform.h"
|
||||
#endif
|
||||
#ifndef _STREAM_H_
|
||||
#include "core/stream/stream.h"
|
||||
#endif
|
||||
#ifndef _MMATH_H_
|
||||
#include "math/mMath.h"
|
||||
#endif
|
||||
|
||||
#include "core/stream/stream.h"
|
||||
|
||||
#include "math/mMath.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//-------------------------------------- READING
|
||||
|
|
|
|||
|
|
@ -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 _MATHTYPES_H_
|
||||
#define _MATHTYPES_H_
|
||||
|
|
|
|||
|
|
@ -19,30 +19,19 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MATHUTILS_H_
|
||||
#define _MATHUTILS_H_
|
||||
|
||||
#ifndef _MPOINT3_H_
|
||||
#include "math/mPoint3.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MMATRIX_H_
|
||||
#include "math/mMatrix.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MRECT_H_
|
||||
#include "math/mRect.h"
|
||||
#endif
|
||||
|
||||
#ifndef _TVECTOR_H_
|
||||
#include "core/util/tVector.h"
|
||||
#endif
|
||||
|
||||
#ifndef _MATHUTIL_FRUSTUM_H_
|
||||
#include "math/util/frustum.h"
|
||||
#endif
|
||||
|
||||
|
||||
class Box3F;
|
||||
class RectI;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#pragma once
|
||||
#ifndef _FLOAT3_DISPATCH_H_
|
||||
#define _FLOAT3_DISPATCH_H_
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#pragma once
|
||||
#ifndef _FLOAT4_DISPATCH_H_
|
||||
#define _FLOAT4_DISPATCH_H_
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#pragma once
|
||||
#ifndef _MAT44_DISPATCH_H_
|
||||
#define _MAT44_DISPATCH_H_
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +1,15 @@
|
|||
#pragma once
|
||||
#pragma once
|
||||
#ifndef _MATH_BACKEND_H_
|
||||
#define _MATH_BACKEND_H_
|
||||
|
||||
#ifndef _MCONSTANTS_H_
|
||||
#include "math/mConstants.h"
|
||||
#endif
|
||||
#ifndef _PLATFORMASSERT_H_
|
||||
|
||||
#include "platform/platformAssert.h"
|
||||
#endif
|
||||
#ifndef _FLOAT4_DISPATCH_H_
|
||||
#include "math/public/float4_dispatch.h"
|
||||
#endif
|
||||
#ifndef _FLOAT3_DISPATCH_H_
|
||||
|
||||
#include "math/public/float3_dispatch.h"
|
||||
#endif
|
||||
#ifndef _MAT44_DISPATCH_H_
|
||||
|
||||
#include "math/public/mat44_dispatch.h"
|
||||
#endif
|
||||
|
||||
namespace math_backend
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue