GUInity
|
#include <FontMesh.hpp>
Public Member Functions | |
FontMesh () | |
virtual | ~FontMesh () |
void | setFont (shared_ptr< Font > font) |
shared_ptr< Font > | getFont () |
void | setText (string text) |
string | getText () |
void | createMesh () |
virtual shared_ptr< Component > | clone () override |
virtual shared_ptr< ComponentDescription > | getComponentDescription () override |
virtual void | deserialize (shared_ptr< ComponentDescription > desc) override |
![]() | |
MeshComponent () | |
virtual | ~MeshComponent () |
void | setMesh (shared_ptr< Mesh > mesh) |
shared_ptr< Mesh > | getMesh () |
void | getBoxSize (shared_ptr< Actor > actor, PxVec3 &boxSize, PxVec3 ¢er) |
void | getSphereSize (shared_ptr< Actor > actor, float &radius, PxVec3 ¢er) |
void | getCapsuleGeometry (shared_ptr< Actor >actor, float &radius, float &halfHeight, RotateAxis &orientation, PxVec3 ¢er) |
![]() | |
Component () | |
virtual | ~Component () |
virtual void | init () |
virtual void | destroy () |
virtual void | setActive (bool isActive) |
virtual void | awake () |
virtual void | tick (float deltaSecods) |
shared_ptr< Actor > | getActor () |
void | setActor (weak_ptr< Actor > actor) |
Additional Inherited Members | |
![]() | |
void | setCopyMode (bool initWithData) |
![]() | |
shared_ptr< Mesh > | mesh |
![]() | |
bool | initWithData |
bool | isActive |
FontMesh is a MeshComponent, meaning that it holds reference to a Mesh. Unlike MeshFilter, that makes reference to a "static" mesh, a file mesh, the FontMesh makes reference to a dynamic mesh, created according to the text it's going to display.
FontMesh::FontMesh | ( | ) |
Default Constructor
|
virtual |
Default Destructor. Virtual because it's children class.
|
overridevirtual |
Clones current component (Prototype Design Pattern)
Implements MeshComponent.
void FontMesh::createMesh | ( | ) |
create the mesh according to the font and text
shared_ptr< Font > FontMesh::getFont | ( | ) |
font getter
string FontMesh::getText | ( | ) |
text getter
void FontMesh::setFont | ( | shared_ptr< Font > | font | ) |
font setter
void FontMesh::setText | ( | string | text | ) |
text setter