git mv Code\Sandbox\Editor Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,211 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#pragma once
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Crytek Engine Source File.
|
||||
// Copyright (C), Crytek Studios
|
||||
// -------------------------------------------------------------------------
|
||||
// Created: 13/2/2003 by Timur.
|
||||
// Description: Main header included by every file in Editor.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef CRYINCLUDE_EDITOR_EDITORDEFS_H
|
||||
#define CRYINCLUDE_EDITOR_EDITORDEFS_H
|
||||
|
||||
#include <AzCore/PlatformDef.h>
|
||||
|
||||
// It is vital that at least some Qt header is pulled in to this header, so that
|
||||
// QT_VERSION is defined and the editor gets the correct set of overloads in the
|
||||
// IXML interface. This also disambiguates the GUID/REFGUID situation in Guid.h
|
||||
#include <QUuid>
|
||||
|
||||
#include <platform.h>
|
||||
|
||||
#include "ProjectDefines.h"
|
||||
|
||||
#ifdef NOMINMAX
|
||||
#include "Cry_Math.h"
|
||||
#endif //NOMINMAX
|
||||
|
||||
// Resource includes
|
||||
#include "Resource.h"
|
||||
|
||||
|
||||
#include <Include/SandboxAPI.h>
|
||||
#include <Include/EditorCoreAPI.h>
|
||||
|
||||
// Warnings in STL
|
||||
#pragma warning (disable : 4786) // identifier was truncated to 'number' characters in the debug information.
|
||||
#pragma warning (disable : 4244) // conversion from 'long' to 'float', possible loss of data
|
||||
#pragma warning (disable : 4018) // signed/unsigned mismatch
|
||||
#pragma warning (disable : 4800) // BOOL bool conversion
|
||||
|
||||
// Disable warning when a function returns a value inside an __asm block
|
||||
#pragma warning (disable : 4035)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// 64-bits related warnings.
|
||||
#pragma warning (disable : 4267) // conversion from 'size_t' to 'int', possible loss of data
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Simple type definitions.
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
#include "BaseTypes.h"
|
||||
|
||||
// Which cfg file to use.
|
||||
#define EDITOR_CFG_FILE "editor.cfg"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// C runtime lib includes
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
#include <cmath>
|
||||
#include <cfloat>
|
||||
#include <climits>
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// STL
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
#undef rand // remove cryengine protection against wrong rand usage
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// VARIOUS MACROS AND DEFINES
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#ifdef new
|
||||
#undef new
|
||||
#endif
|
||||
|
||||
#ifndef SAFE_DELETE
|
||||
#define SAFE_DELETE(p) { if (p) { delete (p); (p) = NULL; } \
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef SAFE_DELETE_ARRAY
|
||||
#define SAFE_DELETE_ARRAY(p) { if (p) { delete[] (p); (p) = NULL; } \
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef SAFE_RELEASE
|
||||
#define SAFE_RELEASE(p) { if (p) { (p)->Release(); (p) = NULL; } \
|
||||
}
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CRY Stuff ////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#include <platform.h>
|
||||
#include <Cry_Math.h>
|
||||
#include <Cry_Geo.h>
|
||||
#include <Range.h>
|
||||
#include <StlUtils.h>
|
||||
|
||||
#include <smartptr.h>
|
||||
#define TSmartPtr _smart_ptr
|
||||
|
||||
#define TOOLBAR_TRANSPARENT_COLOR QColor(0xC0, 0xC0, 0xC0)
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Interfaces ///////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#include <IRenderer.h>
|
||||
#include <CryFile.h>
|
||||
#include <ISystem.h>
|
||||
#include <IIndexedMesh.h>
|
||||
#include <ITimer.h>
|
||||
#include <IXml.h>
|
||||
#include <IMovieSystem.h>
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Commonly used Editor includes.
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Utility classes.
|
||||
#include "Util/EditorUtils.h"
|
||||
#include "Util/FileEnum.h"
|
||||
#include "Util/Math.h"
|
||||
#include "Util/AffineParts.h"
|
||||
|
||||
// Xml support.
|
||||
#include "Util/XmlArchive.h"
|
||||
#include "Util/XmlTemplate.h"
|
||||
|
||||
// Utility classes.
|
||||
#include "Util/bitarray.h"
|
||||
#include "Util/RefCountBase.h"
|
||||
#include "Util/TRefCountBase.h"
|
||||
#include "Util/MemoryBlock.h"
|
||||
#include "Util/PathUtil.h"
|
||||
|
||||
// Main Editor interface definition.
|
||||
#include "IEditor.h"
|
||||
|
||||
// Log file access
|
||||
#include "LogFile.h"
|
||||
|
||||
// Prevent macros to override certain function names
|
||||
#ifdef GetObject
|
||||
#undef GetObject
|
||||
#endif
|
||||
|
||||
#ifdef max
|
||||
#undef max
|
||||
#undef min
|
||||
#endif
|
||||
|
||||
#ifdef DeleteFile
|
||||
#undef DeleteFile
|
||||
#endif
|
||||
|
||||
#ifdef CreateDirectory
|
||||
#undef CreateDirectory
|
||||
#endif
|
||||
|
||||
#ifdef RemoveDirectory
|
||||
#undef RemoveDirectory
|
||||
#endif
|
||||
|
||||
#ifdef CopyFile
|
||||
#undef CopyFile
|
||||
#endif
|
||||
|
||||
#ifdef GetUserName
|
||||
#undef GetUserName
|
||||
#endif
|
||||
|
||||
#ifdef LoadCursor
|
||||
#undef LoadCursor
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
#if !defined(AZ_PLATFORM_LINUX)
|
||||
#ifdef assert
|
||||
#undef assert
|
||||
#if defined(USE_AZ_ASSERT)
|
||||
#define assert(condition) AZ_Assert(condition, "")
|
||||
#else
|
||||
#define assert CRY_ASSERT
|
||||
#endif
|
||||
#endif // !defined(AZ_PLATFORM_LINUX)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#endif // CRYINCLUDE_EDITOR_EDITORDEFS_H
|
||||
Reference in New Issue
Block a user