Skip to content

Commit 867af40

Browse files
committed
Use forward declares to move Renderer include to StringTable source file
1 parent 9e3fa70 commit 867af40

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

appOPHD/UI/StringTable.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "../Constants/UiConstants.h"
55

66
#include <NAS2D/Utility.h>
7+
#include <NAS2D/Renderer/Renderer.h>
78

89
#include <stdexcept>
910
#include <algorithm>

appOPHD/UI/StringTable.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#pragma once
22

3-
#include <NAS2D/Renderer/Renderer.h>
43
#include <NAS2D/Renderer/Color.h>
54
#include <NAS2D/Math/Point.h>
65
#include <NAS2D/Math/Rectangle.h>
@@ -12,6 +11,13 @@
1211
#include <cstddef>
1312

1413

14+
namespace NAS2D
15+
{
16+
class Font;
17+
class Renderer;
18+
}
19+
20+
1521
// Draw a 2 dimensional table of text. Determine cell size based on inserted text, font, and padding. Only allows one line of text per cell.
1622
class StringTable
1723
{

0 commit comments

Comments
 (0)