2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-15 02:06:09 +00:00

Various stubs and imps

This commit is contained in:
Jack Andersen
2016-03-18 14:07:31 -10:00
parent ad577754c4
commit ee534de7be
24 changed files with 582 additions and 28 deletions

View File

@@ -4,26 +4,14 @@
#include "IOStreams.hpp"
#include "CToken.hpp"
#include "zeus/CVector2i.hpp"
#include "CGuiTextSupport.hpp"
namespace urde
{
class IObjectStore;
class CTexture;
/* TODO: Move these elsewhere */
struct CDrawStringOptions
{
s32 x0_;
u32 x10_;
};
class CTextRenderBuffer
{
public:
void AddCharacter(const zeus::CVector2i& pos, s16 chr, u32 unk)
{
}
};
class CDrawStringOptions;
class CTextRenderBuffer;
/* NOTE: Is this a good place for CGlyph and CKernPair? */
class CGlyph
@@ -107,7 +95,7 @@ class CRasterFont
std::vector<std::pair<wchar_t, CGlyph>> xc_glyphs;
std::vector<CKernPair> x1c_kerning;
s32 x28_lineMargin = 0;
s32 x2c_mode = 0;
EColorType x2c_mode = EColorType::Zero;
CFontInfo x30_fontInfo;
TLockedToken<CTexture> x80_texture;
bool x88_ = false;
@@ -129,7 +117,7 @@ public:
s32 GetMonoWidth() const { return x4_monoWidth; }
s32 GetMonoHeight() const { return x8_monoHeight; }
s32 GetMode() const { return x2c_mode; }
EColorType GetMode() const { return x2c_mode; }
s32 GetLineMargin() const { return x90_lineMargin; }
s32 GetCarriageAdvance() const { return GetLineMargin() + GetMonoHeight(); }