AtomLyIntegration
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
#include <Cry_Vector2.h>
|
||||
#include <IXml.h>
|
||||
#include <CryCommon/IFont.h>
|
||||
#include <AzCore/std/containers/map.h>
|
||||
#include <AzCore/std/smart_ptr/weak_ptr.h>
|
||||
#include <AzCore/std/parallel/shared_mutex.h>
|
||||
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#define ATOMFONT_EXPORTS
|
||||
|
||||
#include <platform.h>
|
||||
|
||||
#include <IFont.h>
|
||||
|
||||
#include <ILog.h>
|
||||
#include <IConsole.h>
|
||||
#include <IRenderer.h>
|
||||
#include <CrySizer.h>
|
||||
|
||||
#define USE_NULLFONT
|
||||
|
||||
#if defined(DEDICATED_SERVER)
|
||||
#define USE_NULLFONT_ALWAYS 1
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -8,9 +8,9 @@
|
||||
|
||||
// Description : Dummy font implementation (dedicated server)
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#define USE_NULLFONT
|
||||
|
||||
#if defined(USE_NULLFONT)
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include <CryCommon/Cry_Math.h>
|
||||
#include <CryCommon/Cry_Color.h>
|
||||
#include <CryCommon/CryString.h>
|
||||
#include <CryCommon/VertexFormats.h>
|
||||
#include <CryCommon/IRenderer.h>
|
||||
#include "AtomFont.h"
|
||||
|
||||
#include <AzCore/std/parallel/mutex.h>
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include <AzCore/std/smart_ptr/unique_ptr.h>
|
||||
#include <AtomLyIntegration/AtomFont/FontCommon.h>
|
||||
|
||||
class ICrySizer;
|
||||
|
||||
namespace AZ
|
||||
{
|
||||
class GlyphBitmap
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
|
||||
#if !defined(USE_NULLFONT_ALWAYS)
|
||||
#include <AtomLyIntegration/AtomFont/FontTexture.h>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
|
||||
#if !defined(USE_NULLFONT_ALWAYS)
|
||||
#include <AtomLyIntegration/AtomFont/FontTexture.h>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
// Description : AtomFont class.
|
||||
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
|
||||
#if !defined(USE_NULLFONT_ALWAYS)
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
#define USE_NULLFONT
|
||||
|
||||
#include "AtomFontSystemComponent.h"
|
||||
|
||||
#include <AzCore/Serialization/SerializeContext.h>
|
||||
@@ -95,8 +96,8 @@ namespace AZ
|
||||
#else
|
||||
// The NULL font implementation must be present for all platforms
|
||||
// supporting running as a pure dedicated server.
|
||||
system->GetILog()->LogError("Missing NULL font implementation for dedicated server");
|
||||
env.pCryFont = NULL;
|
||||
system.GetILog()->LogError("Missing NULL font implementation for dedicated server");
|
||||
gEnv->pCryFont = NULL;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
// Description : Dummy font implementation (dedicated server)
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
#define USE_NULLFONT
|
||||
|
||||
#if defined(USE_NULLFONT)
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
// Description : Font class.
|
||||
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
|
||||
#if !defined(USE_NULLFONT_ALWAYS)
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
// Description : XML parsing to load a font.
|
||||
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
|
||||
#if !defined(USE_NULLFONT_ALWAYS)
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
|
||||
#if !defined(USE_NULLFONT_ALWAYS)
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
// Purpose:
|
||||
// - Render a glyph outline into a bitmap using FreeType 2
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
|
||||
#if !defined(USE_NULLFONT_ALWAYS)
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
// Purpose:
|
||||
// - Create and update a texture with the most recently used glyphs
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
|
||||
#if !defined(USE_NULLFONT_ALWAYS)
|
||||
|
||||
|
||||
@@ -9,10 +9,9 @@
|
||||
// Purpose:
|
||||
// - Hold a glyph bitmap and blit it to the main texture
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
#include <AtomLyIntegration/AtomFont/GlyphBitmap.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <CryCommon/Cry_Math.h>
|
||||
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
AZ::GlyphBitmap::GlyphBitmap()
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
// Purpose:
|
||||
// - Manage and cache glyphs, retrieving them from the renderer as needed
|
||||
|
||||
#include <AtomLyIntegration/AtomFont/AtomFont_precompiled.h>
|
||||
|
||||
#if !defined(USE_NULLFONT_ALWAYS)
|
||||
|
||||
|
||||
@@ -28,5 +28,4 @@ set(FILES
|
||||
Include/AtomLyIntegration/AtomFont/GlyphCache.h
|
||||
Include/AtomLyIntegration/AtomFont/AtomNullFont.h
|
||||
Include/AtomLyIntegration/AtomFont/resource.h
|
||||
Include/AtomLyIntegration/AtomFont/AtomFont_precompiled.h
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user