1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Create Drawing.String.h

This commit is contained in:
Gymnasiast
2025-10-16 20:44:13 +02:00
parent 0ec4e3353b
commit fe24e9b77b
8 changed files with 37 additions and 14 deletions

View File

@@ -29,6 +29,7 @@
#include <openrct2-ui/interface/Window.h>
#include <openrct2/config/Config.h>
#include <openrct2/core/Console.hpp>
#include <openrct2/drawing/Drawing.String.h>
#include <openrct2/drawing/Drawing.h>
#include <openrct2/drawing/IDrawingContext.h>
#include <openrct2/drawing/IDrawingEngine.h>

View File

@@ -7,6 +7,8 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "../drawing/Drawing.String.h"
#include "../Context.h"
#include "../SpriteIds.h"
#include "../config/Config.h"

View File

@@ -0,0 +1,28 @@
/*****************************************************************************
* Copyright (c) 2014-2025 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#pragma once
#include <cstdint>
enum class FontStyle : uint8_t;
struct TextDrawInfo
{
int32_t startX;
int32_t startY;
int32_t x;
int32_t y;
int32_t maxX;
int32_t maxY;
int32_t flags;
uint8_t palette[8];
FontStyle fontStyle;
const int8_t* yOffset;
};

View File

@@ -113,20 +113,6 @@ struct RenderTarget
}
};
struct TextDrawInfo
{
int32_t startX;
int32_t startY;
int32_t x;
int32_t y;
int32_t maxX;
int32_t maxY;
int32_t flags;
uint8_t palette[8];
::FontStyle fontStyle;
const int8_t* yOffset;
};
enum : uint32_t
{
TEXT_DRAW_FLAG_INSET = 1 << 0,

View File

@@ -12,6 +12,8 @@
#include "Drawing.h"
#include "TTF.h"
struct TextDrawInfo;
namespace OpenRCT2::Drawing
{
struct IDrawingEngine;

View File

@@ -18,6 +18,7 @@
#include "../interface/Window.h"
#include "../scenes/intro/IntroScene.h"
#include "../ui/UiContext.h"
#include "Drawing.String.h"
#include "Drawing.h"
#include "IDrawingContext.h"
#include "IDrawingEngine.h"

View File

@@ -15,6 +15,8 @@
#include <memory>
struct TextDrawInfo;
namespace OpenRCT2
{
namespace Ui

View File

@@ -244,6 +244,7 @@
<ClInclude Include="Diagnostic.h" />
<ClInclude Include="drawing\ColourPalette.h" />
<ClInclude Include="drawing\Drawing.h" />
<ClInclude Include="drawing\Drawing.String.h" />
<ClInclude Include="drawing\Font.h" />
<ClInclude Include="drawing\IDrawingContext.h" />
<ClInclude Include="drawing\IDrawingEngine.h" />