Basic text element, needs to be supplied font path. More...

#include <Text.hpp>

Public Member Functions

 Text (Instance *inst)
 
void status (iv::TableDebugView *view)
 
Textenabled (bool)
 
Textpreblend (float4 val)
 
Texttranslucent (bool val)
 
Texttext (std::string const &)
 
Textfont (ResourcePath const &)
 
TextfontSize (float)
 
Textcolor (float4)
 
Textfont_DVar (DVarIdT< ResourcePath > id)
 
Instanceinstance () const
 
- Public Member Functions inherited from iv::Elem
 Elem (Instance *inst)
 
 ~Elem ()
 
void status (iv::TableDebugView *view)
 
Instanceinstance () const
 
void elem_setParent (Elem *)
 
Elemelem_getParent ()
 
virtual Cameraelem_getRoot ()
 
virtual void elem_eachChild (std::function< void(Elem *) > const &)
 
virtual void elem_childDisconnect (Elem *)
 
void first_pass (ElementRenderer *)
 
void second_pass (ElementRenderer *)
 
unsigned first_pass_frame_id ()
 
unsigned second_pass_frame_id ()
 
Elemenabled (bool val)
 
void quiet (bool)
 
bool quiet () const
 
float3 FromLocalSpaceToScreenSpace (float3 local_space)
 
float3 FromScreenSpaceToLocalSpace (float3 screen_space)
 
float2 FromScreenPlaneToLocalPlane (float2 screen_space)
 
void Add_InputNode (InputNode *node)
 
void Remove_InputNode (InputNode *node)
 
- Public Member Functions inherited from iv::InputNode
 InputNode (Instance *inst)
 
 ~InputNode ()
 
Instanceinstance () const
 
void status (iv::TableDebugView *view)
 
void inputEnabled (bool)
 
bool inputEnabled ()
 
void quiet (bool)
 
bool quiet () const
 
void input_deactivate ()
 
void input_treeRefresh ()
 
void input_setParent (InputNode *)
 
InputNodeinput_getParent ()
 
virtual InputRootinput_getRoot ()
 
bool input_trigger_visit (InputRoot *root, Input::DeviceKey key)
 
bool input_visit (InputRoot *root, Input::DeviceKey key, bool &press, bool &real, bool &offspace)
 
- Public Member Functions inherited from iv::TextSegment
 TextSegment (Elem *elem)
 
Instanceinstance () const
 
Elemelem ()
 
const Elemelem () const
 
- Public Member Functions inherited from iv::TranslucentElem
 TranslucentElem (Elem *elem)
 
void status (iv::TableDebugView *view)
 
Elemelem ()
 
const Elemelem () const
 
TranslucentElempreblend (float4 val)
 
TranslucentElemtranslucent (bool val)
 

Public Attributes

ClientMarker cm
 
DirtyAttr< std::string > attr_text
 
DirtyAttr< ResourcePathattr_font
 
DirtyAttr< float > attr_fontSize
 
DirtyAttr< float4attr_color
 
- Public Attributes inherited from iv::Elem
ClientMarker cm
 
DirtyAttr< bool > attr_enabled
 
DirtyAttr< float4x4modelTransform
 
DirtyAttr< ShaderScissorscissor
 
- Public Attributes inherited from iv::InputNode
ClientMarker cm
 
- Public Attributes inherited from iv::TextSegment
ClientMarker cm
 
bool geometry_dirty
 
DirtyAttr< FontMesh::Locationlocation
 
- Public Attributes inherited from iv::TranslucentElem
ClientMarker cm
 
DirtyAttr< float4attr_preblend
 Enables blending in fragment shader - blends into a fixed color rather than into the current content of framebuffer. This allows us to emulate blending in static scenes without requiring specific draw order. More...
 
DirtyAttr< bool > attr_translucent
 Item will be drawn as translucent - enables blending and draws after all opaque elements sorted by depth with other translucent objects. More...
 

Protected Member Functions

virtual void first_pass_impl (ElementRenderer *) override
 
virtual void second_pass_impl (ElementRenderer *) override
 
- Protected Member Functions inherited from iv::Elem
virtual void input_childDisconnect (InputNode *) override
 
virtual void input_eachChild (std::function< void(InputNode *) > const &) override
 
- Protected Member Functions inherited from iv::InputNode
virtual bool input_trigger_process (InputRoot *root, Input::DeviceKey key)
 
virtual void input_process (InputRoot *root, Input::DeviceKey key, bool &press, bool &real, bool &offspace)
 

Detailed Description

Basic text element, needs to be supplied font path.

Definition at line 16 of file Text.hpp.

Constructor & Destructor Documentation

◆ Text()

iv::Text::Text ( Instance inst)

Definition at line 22 of file Text.cpp.

Member Function Documentation

◆ status()

void iv::Text::status ( iv::TableDebugView view)

Definition at line 38 of file Text.cpp.

◆ enabled()

Text * iv::Text::enabled ( bool  val)

Definition at line 58 of file Text.cpp.

◆ preblend()

Text * iv::Text::preblend ( float4  val)

Definition at line 64 of file Text.cpp.

◆ translucent()

Text * iv::Text::translucent ( bool  val)

Definition at line 70 of file Text.cpp.

◆ text()

Text * iv::Text::text ( std::string const &  val)

Definition at line 76 of file Text.cpp.

◆ font()

Text * iv::Text::font ( ResourcePath const &  val)

Definition at line 82 of file Text.cpp.

◆ fontSize()

Text * iv::Text::fontSize ( float  val)

Definition at line 88 of file Text.cpp.

◆ color()

Text * iv::Text::color ( float4  val)

Definition at line 94 of file Text.cpp.

◆ font_DVar()

Text * iv::Text::font_DVar ( DVarIdT< ResourcePath id)

Definition at line 49 of file Text.cpp.

◆ first_pass_impl()

void iv::Text::first_pass_impl ( ElementRenderer er)
overrideprotectedvirtual

Implements iv::Elem.

Definition at line 107 of file Text.cpp.

◆ second_pass_impl()

void iv::Text::second_pass_impl ( ElementRenderer er)
overrideprotectedvirtual

Reimplemented from iv::Elem.

Definition at line 140 of file Text.cpp.

◆ instance()

Instance * iv::Elem::instance

Definition at line 57 of file Elem.cpp.

Member Data Documentation

◆ cm

ClientMarker iv::Text::cm

Definition at line 19 of file Text.hpp.

◆ attr_text

DirtyAttr< std::string > iv::Text::attr_text

Definition at line 26 of file Text.hpp.

◆ attr_font

DirtyAttr< ResourcePath > iv::Text::attr_font

Definition at line 27 of file Text.hpp.

◆ attr_fontSize

DirtyAttr< float > iv::Text::attr_fontSize

Definition at line 28 of file Text.hpp.

◆ attr_color

DirtyAttr< float4 > iv::Text::attr_color

Definition at line 29 of file Text.hpp.


The documentation for this class was generated from the following files: