2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 15:11:22 +00:00
metaforce/Runtime/GuiSys/CDrawStringOptions.hpp
Lioncash 1d6354ba26 CDrawStringOptions: Resize vector within constructor
Same behavior, but constructs the vector with the necessary size, rather
than constructing and resizing after the fact.
2020-03-17 21:35:08 -04:00

25 lines
536 B
C++

#pragma once
#include <vector>
#include "Runtime/RetroTypes.hpp"
#include "Runtime/GuiSys/CGuiTextSupport.hpp"
namespace urde {
class CDrawStringOptions {
friend class CColorOverrideInstruction;
friend class CFontRenderState;
friend class CRasterFont;
friend class CTextExecuteBuffer;
friend class CBlockInstruction;
friend class CWordInstruction;
ETextDirection x0_direction = ETextDirection::Horizontal;
std::vector<CTextColor> x4_colors;
public:
CDrawStringOptions() : x4_colors(16) {}
};
} // namespace urde