40 if (m_pFont && m_text.compare(
"") != 0)
42 spriteBatch.
DrawString(m_pFont, &m_text, m_position + m_textOffset, m_color * m_alpha, m_textAlign);
48 if (m_onSelect) ((
OnSelect)m_onSelect)(pMenuScreen);
static const Color White
White.
Enables a group of sprites to be drawn using the same settings.
void DrawString(const Font *pFont, std::string *text, const Vector2 position, const Color color=Color::White, const TextAlign alignment=TextAlign::Left, const float drawDepth=0)
Adds a string to a batch of sprites to be rendered.
static const Vector2 ZERO
A vector with both of its components set to zero.
Katana Engine is a library of classes, interfaces, and value types that provides a foundation for dev...
void(* OnSelect)(MenuScreen *pMenuScreen)
Callback function for when a menu item is selected.