mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 14: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,39 +19,29 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
#ifndef _BASEMATINSTANCE_H_
|
||||
#define _BASEMATINSTANCE_H_
|
||||
|
||||
#ifndef _TSIGNAL_H_
|
||||
#include "core/util/tSignal.h"
|
||||
#endif
|
||||
#ifndef _BASEMATERIALDEFINITION_H_
|
||||
|
||||
#include "materials/baseMaterialDefinition.h"
|
||||
#endif
|
||||
#ifndef _MATERIALPARAMETERS_H_
|
||||
|
||||
#include "materials/materialParameters.h"
|
||||
#endif
|
||||
#ifndef _MMATRIX_H_
|
||||
|
||||
#include "math/mMatrix.h"
|
||||
#endif
|
||||
#ifndef _GFXENUMS_H_
|
||||
|
||||
#include "gfx/gfxEnums.h"
|
||||
#endif
|
||||
#ifndef _GFXSHADER_H_
|
||||
|
||||
#include "gfx/gfxShader.h"
|
||||
#endif
|
||||
#ifndef _MATERIALFEATUREDATA_H_
|
||||
|
||||
#include "materials/materialFeatureData.h"
|
||||
#endif
|
||||
#ifndef _MATINSTANCEHOOK_H_
|
||||
|
||||
#include "materials/matInstanceHook.h"
|
||||
#endif
|
||||
#ifndef _MATSTATEHINT_H_
|
||||
|
||||
#include "materials/matStateHint.h"
|
||||
#endif
|
||||
#ifndef _GFXDEVICE_H_
|
||||
|
||||
#include "gfx/gfxDevice.h"
|
||||
#endif
|
||||
|
||||
#ifndef CUSTOMSHADERBINDINGDATA_H
|
||||
#include "materials/customShaderBindingData.h"
|
||||
|
|
|
|||
|
|
@ -19,12 +19,11 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
#ifndef _BASEMATERIALDEFINITION_H_
|
||||
#define _BASEMATERIALDEFINITION_H_
|
||||
|
||||
#ifndef _SIMOBJECT_H_
|
||||
#include "console/simObject.h"
|
||||
#endif
|
||||
|
||||
class BaseMatInstance;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,12 +19,11 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
#ifndef _CUSTOMMATERIALDEFINITION_H_
|
||||
#define _CUSTOMMATERIALDEFINITION_H_
|
||||
|
||||
#ifndef _MATERIALDEFINITION_H_
|
||||
#include "materials/materialDefinition.h"
|
||||
#endif
|
||||
|
||||
class ShaderData;
|
||||
class GFXStateBlockData;
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
|
||||
#ifndef CUSTOMSHADERBINDINGDATA_H
|
||||
#define CUSTOMSHADERBINDINGDATA_H
|
||||
#ifndef _GFXDEVICE_H_
|
||||
#include "gfx/gfxDevice.h"
|
||||
#endif
|
||||
|
||||
struct CustomShaderBindingData
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,24 +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 _MATINSTANCE_H_
|
||||
#define _MATINSTANCE_H_
|
||||
|
||||
#ifndef _MATERIALDEFINITION_H_
|
||||
#include "materials/materialDefinition.h"
|
||||
#endif
|
||||
#ifndef _BASEMATINSTANCE_H_
|
||||
|
||||
#include "materials/baseMatInstance.h"
|
||||
#endif
|
||||
#ifndef _SCENEDATA_H_
|
||||
|
||||
#include "materials/sceneData.h"
|
||||
#endif
|
||||
#ifndef _GFXSTATEBLOCK_H_
|
||||
|
||||
#include "gfx/gfxStateBlock.h"
|
||||
#endif
|
||||
#ifndef _FEATURESET_H_
|
||||
|
||||
#include "shaderGen/featureSet.h"
|
||||
#endif
|
||||
|
||||
class GFXShader;
|
||||
class GFXCubemap;
|
||||
|
|
|
|||
|
|
@ -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 _MATINSTANCEHOOK_H_
|
||||
#define _MATINSTANCEHOOK_H_
|
||||
|
||||
#ifndef _TDICTIONARY_H_
|
||||
#include "core/util/tDictionary.h"
|
||||
#endif
|
||||
|
||||
|
||||
/// The hook type wrapper object
|
||||
class MatInstanceHookType
|
||||
|
|
|
|||
|
|
@ -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 _MATSTATEHINT_H_
|
||||
#define _MATSTATEHINT_H_
|
||||
|
||||
#ifndef _TORQUE_STRING_H_
|
||||
#include "core/util/str.h"
|
||||
#endif
|
||||
|
||||
class ProcessedMaterial;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,28 +19,21 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#ifndef _MATTEXTURETARGET_H_
|
||||
#define _MATTEXTURETARGET_H_
|
||||
|
||||
#ifndef _TDICTIONARY_H_
|
||||
#include "core/util/tDictionary.h"
|
||||
#endif
|
||||
#ifndef _REFBASE_H_
|
||||
|
||||
#include "core/util/refBase.h"
|
||||
#endif
|
||||
#ifndef _GFXTEXTUREHANDLE_H_
|
||||
|
||||
#include "gfx/gfxTextureHandle.h"
|
||||
#endif
|
||||
#ifndef _MRECT_H_
|
||||
|
||||
#include "math/mRect.h"
|
||||
#endif
|
||||
#ifndef _GFXSTATEBLOCK_H_
|
||||
|
||||
#include "gfx/gfxStateBlock.h"
|
||||
#endif
|
||||
#ifndef _UTIL_DELEGATE_H_
|
||||
#include "core/util/delegate.h"
|
||||
#endif
|
||||
|
||||
struct GFXShaderMacro;
|
||||
class ConditionerFeature;
|
||||
|
|
|
|||
|
|
@ -19,34 +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 _MATERIALDEFINITION_H_
|
||||
#define _MATERIALDEFINITION_H_
|
||||
|
||||
#ifndef _BASEMATERIALDEFINITION_H_
|
||||
#include "materials/baseMaterialDefinition.h"
|
||||
#endif
|
||||
#ifndef _TDICTIONARY_H_
|
||||
|
||||
#include "core/util/tDictionary.h"
|
||||
#endif
|
||||
#ifndef _GFXTEXTUREHANDLE_H_
|
||||
|
||||
#include "gfx/gfxTextureHandle.h"
|
||||
#endif
|
||||
#ifndef _GFXSTRUCTS_H_
|
||||
|
||||
#include "gfx/gfxStructs.h"
|
||||
#endif
|
||||
#ifndef _GFXCUBEMAP_H_
|
||||
|
||||
#include "gfx/gfxCubemap.h"
|
||||
#endif
|
||||
#ifndef _DYNAMIC_CONSOLETYPES_H_
|
||||
#include "console/dynamicTypes.h"
|
||||
#endif
|
||||
|
||||
#ifndef IMAGE_ASSET_H
|
||||
#include "T3D/assets/ImageAsset.h"
|
||||
#endif
|
||||
#ifndef _ASSET_PTR_H_
|
||||
#include "assets/assetPtr.h"
|
||||
#endif
|
||||
|
||||
#ifndef SOUND_ASSET_H
|
||||
#include "T3D/assets/SoundAsset.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -19,17 +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 _MATERIALFEATUREDATA_H_
|
||||
#define _MATERIALFEATUREDATA_H_
|
||||
|
||||
#ifndef _UTIL_DELEGATE_H_
|
||||
#include "core/util/delegate.h"
|
||||
#endif
|
||||
#ifndef _FEATURESET_H_
|
||||
#include "shaderGen/featureSet.h"
|
||||
#endif
|
||||
|
||||
#include "shaderGen/featureSet.h"
|
||||
|
||||
class ProcessedMaterial;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 _MATERIALFEATURETYPES_H_
|
||||
#define _MATERIALFEATURETYPES_H_
|
||||
|
||||
#ifndef _FEATURETYPE_H_
|
||||
#include "shaderGen/featureType.h"
|
||||
#endif
|
||||
|
||||
|
||||
///
|
||||
enum MaterialFeatureGroup
|
||||
|
|
|
|||
|
|
@ -19,17 +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 _MATERIALLIST_H_
|
||||
#define _MATERIALLIST_H_
|
||||
|
||||
#ifndef _TVECTOR_H_
|
||||
#include "core/util/tVector.h"
|
||||
#endif
|
||||
#ifndef _GFXTEXTUREHANDLE_H_
|
||||
#include "gfx/gfxTextureHandle.h"
|
||||
#endif
|
||||
|
||||
#include "gfx/gfxTextureHandle.h"
|
||||
|
||||
class Material;
|
||||
class BaseMatInstance;
|
||||
|
|
|
|||
|
|
@ -19,21 +19,16 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#ifndef _MATERIAL_MGR_H_
|
||||
#define _MATERIAL_MGR_H_
|
||||
|
||||
#ifndef _MATERIALDEFINITION_H_
|
||||
#include "materials/materialDefinition.h"
|
||||
#endif
|
||||
#ifndef _FEATURESET_H_
|
||||
|
||||
#include "shaderGen/featureSet.h"
|
||||
#endif
|
||||
#ifndef _GFXDEVICE_H_
|
||||
|
||||
#include "gfx/gfxDevice.h"
|
||||
#endif
|
||||
#ifndef _TSINGLETON_H_
|
||||
|
||||
#include "core/util/tSingleton.h"
|
||||
#endif
|
||||
|
||||
class SimSet;
|
||||
class MatInstance;
|
||||
|
|
|
|||
|
|
@ -19,12 +19,11 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma once
|
||||
#ifndef _MATERIALPARAMETERS_H_
|
||||
#define _MATERIALPARAMETERS_H_
|
||||
|
||||
#ifndef _GFXSHADER_H_
|
||||
#include "gfx/gfxShader.h"
|
||||
#endif
|
||||
|
||||
///
|
||||
/// Similar class to GFXShaderConsts, but this is to describe generic material parameters.
|
||||
|
|
|
|||
|
|
@ -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 _MISCSHDRDAT_H_
|
||||
#define _MISCSHDRDAT_H_
|
||||
|
||||
|
|
|
|||
|
|
@ -19,17 +19,13 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
#ifndef _MATERIALS_PROCESSEDCUSTOMMATERIAL_H_
|
||||
#define _MATERIALS_PROCESSEDCUSTOMMATERIAL_H_
|
||||
|
||||
#ifndef _MATERIALS_PROCESSEDSHADERMATERIAL_H_
|
||||
#include "materials/processedShaderMaterial.h"
|
||||
#endif
|
||||
#ifndef _CUSTOMMATERIALDEFINITION_H_
|
||||
#include "materials/customMaterialDefinition.h"
|
||||
#endif
|
||||
|
||||
#include "materials/customMaterialDefinition.h"
|
||||
|
||||
///
|
||||
class ProcessedCustomMaterial : public ProcessedShaderMaterial
|
||||
|
|
|
|||
|
|
@ -19,25 +19,19 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
#ifndef _MATERIALS_PROCESSEDMATERIAL_H_
|
||||
#define _MATERIALS_PROCESSEDMATERIAL_H_
|
||||
|
||||
#ifndef _MATERIALDEFINITION_H_
|
||||
#include "materials/materialDefinition.h"
|
||||
#endif
|
||||
#ifndef _MATERIALFEATUREDATA_H_
|
||||
|
||||
#include "materials/materialFeatureData.h"
|
||||
#endif
|
||||
#ifndef _GFXSTATEBLOCK_H_
|
||||
|
||||
#include "gfx/gfxStateBlock.h"
|
||||
#endif
|
||||
#ifndef _MATTEXTURETARGET_H_
|
||||
|
||||
#include "materials/matTextureTarget.h"
|
||||
#endif
|
||||
#ifndef _MATSTATEHINT_H_
|
||||
|
||||
#include "materials/matStateHint.h"
|
||||
#endif
|
||||
|
||||
#ifndef CUSTOMSHADERBINDINGDATA_H
|
||||
#include "materials/customShaderBindingData.h"
|
||||
|
|
|
|||
|
|
@ -19,16 +19,14 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
#ifndef _MATERIALS_PROCESSEDSHADERMATERIAL_H_
|
||||
#define _MATERIALS_PROCESSEDSHADERMATERIAL_H_
|
||||
|
||||
#ifndef _MATERIALS_PROCESSEDMATERIAL_H_
|
||||
#include "processedMaterial.h"
|
||||
#endif
|
||||
#ifndef _GFXSHADER_H_
|
||||
|
||||
#include "gfx/gfxShader.h"
|
||||
#endif
|
||||
|
||||
#ifndef CUSTOMSHADERBINDINGDATA_H
|
||||
#include "materials/customShaderBindingData.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -19,18 +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 _SCENEDATA_H_
|
||||
#define _SCENEDATA_H_
|
||||
|
||||
#ifndef _SCENERENDERSTATE_H_
|
||||
#include "scene/sceneRenderState.h"
|
||||
#endif
|
||||
#ifndef _LIGHTMANAGER_H_
|
||||
|
||||
#include "lighting/lightManager.h"
|
||||
#endif
|
||||
#ifndef _GFXDEVICE_H_
|
||||
|
||||
#include "gfx/gfxDevice.h"
|
||||
#endif
|
||||
|
||||
class GFXTexHandle;
|
||||
class GFXCubemap;
|
||||
|
|
|
|||
|
|
@ -19,18 +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 _SHADERTDATA_H_
|
||||
#define _SHADERTDATA_H_
|
||||
|
||||
#ifndef _SIMOBJECT_H_
|
||||
#include "console/simObject.h"
|
||||
#endif
|
||||
#ifndef _GFXSHADER_H_
|
||||
|
||||
#include "gfx/gfxShader.h"
|
||||
#endif
|
||||
#ifndef _TDICTIONARY_H_
|
||||
|
||||
#include "core/util/tDictionary.h"
|
||||
#endif
|
||||
|
||||
class GFXShader;
|
||||
class ShaderData;
|
||||
|
|
|
|||
|
|
@ -19,17 +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 _SHADERMATERIALPARAMETERS_H_
|
||||
#define _SHADERMATERIALPARAMETERS_H_
|
||||
|
||||
#ifndef _MATERIALPARAMETERS_H_
|
||||
#include "materials/materialParameters.h"
|
||||
#endif
|
||||
#ifndef _GFXSHADER_H_
|
||||
#include "gfx/gfxShader.h"
|
||||
#endif
|
||||
|
||||
#include "gfx/gfxShader.h"
|
||||
|
||||
class ShaderMaterialParameterHandle : public MaterialParameterHandle
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue