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:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
28
src/openrct2/drawing/Drawing.String.h
Normal file
28
src/openrct2/drawing/Drawing.String.h
Normal 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;
|
||||
};
|
||||
@@ -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,
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#include "Drawing.h"
|
||||
#include "TTF.h"
|
||||
|
||||
struct TextDrawInfo;
|
||||
|
||||
namespace OpenRCT2::Drawing
|
||||
{
|
||||
struct IDrawingEngine;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
struct TextDrawInfo;
|
||||
|
||||
namespace OpenRCT2
|
||||
{
|
||||
namespace Ui
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user