Vyroda
Game engine made by hand, with modern C++ and Vulkan.
Loading...
Searching...
No Matches
Vyroda::Text Class Referenceexport

Public Member Functions

void operator() (Renderer &renderer, Mesh &mesh, RendererContext const &render_context)
void setText (std::string_view text)
void setPosition (glm::vec3 const &position)
void setColor (glm::vec3 const &color)
void setScale (float const scale)
void setFlat (bool const is_flat=true)
bool isFlat () const

Public Attributes

VkShaderStageFlags stage_flag_bits { VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT}

Member Function Documentation

◆ isFlat()

bool Vyroda::Text::isFlat ( ) const
inline
Here is the caller graph for this function:

◆ operator()()

void Vyroda::Text::operator() ( Renderer & renderer,
Mesh & mesh,
RendererContext const & render_context )
Here is the call graph for this function:

◆ setColor()

void Vyroda::Text::setColor ( glm::vec3 const & color)
inline

◆ setFlat()

void Vyroda::Text::setFlat ( bool const is_flat = true)
inline

◆ setPosition()

void Vyroda::Text::setPosition ( glm::vec3 const & position)
inline

◆ setScale()

void Vyroda::Text::setScale ( float const scale)
inline

◆ setText()

void Vyroda::Text::setText ( std::string_view text)
inline

Member Data Documentation

◆ stage_flag_bits

VkShaderStageFlags Vyroda::Text::stage_flag_bits { VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT}

The documentation for this class was generated from the following files:
  • src/Engine/Renderer/Vulkan/Component/Text.cppm
  • src/Engine/Renderer/Vulkan/Component/Text.cpp