Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
gte::Font Class Reference

#include <GteFont.h>

Inheritance diagram for gte::Font:
Inheritance graph
[legend]

Public Member Functions

 Font (std::shared_ptr< ProgramFactory > const &factory, unsigned int width, unsigned int height, char const *texels, float const *characterData, unsigned int maxMessageLength)
 
std::shared_ptr< IndexBuffer > const & GetIndexBuffer () const
 
std::shared_ptr< TextEffect > const & GetTextEffect () const
 
std::shared_ptr< VertexBuffer > const & GetVertexBuffer () const
 
void Typeset (int viewportWidth, int viewportHeight, int x, int y, Vector4< float > const &color, std::string const &message) const
 

Protected Attributes

float mCharacterData [257]
 
std::shared_ptr< IndexBuffermIndexBuffer
 
unsigned int mMaxMessageLength
 
std::shared_ptr< TextEffectmTextEffect
 
std::shared_ptr< Texture2mTexture
 
std::shared_ptr< VertexBuffermVertexBuffer
 

Static Protected Attributes

static std::string const msGLSLPSSource
 
static std::string const msGLSLVSSource
 
static std::string const msHLSLSource
 
static std::string const * msPSSource [ProgramFactory::PF_NUM_API]
 
static std::string const * msVSSource [ProgramFactory::PF_NUM_API]
 

Detailed Description

Definition at line 17 of file GteFont.h.

Constructor & Destructor Documentation

Font::Font ( std::shared_ptr< ProgramFactory > const &  factory,
unsigned int  width,
unsigned int  height,
char const *  texels,
float const *  characterData,
unsigned int  maxMessageLength 
)

Definition at line 15 of file GteFont.cpp.

Member Function Documentation

std::shared_ptr< IndexBuffer > const & gte::Font::GetIndexBuffer ( ) const
inline

Definition at line 55 of file GteFont.h.

std::shared_ptr< TextEffect > const & gte::Font::GetTextEffect ( ) const
inline

Definition at line 60 of file GteFont.h.

std::shared_ptr< VertexBuffer > const & gte::Font::GetVertexBuffer ( ) const
inline

Definition at line 50 of file GteFont.h.

void Font::Typeset ( int  viewportWidth,
int  viewportHeight,
int  x,
int  y,
Vector4< float > const &  color,
std::string const &  message 
) const

Definition at line 92 of file GteFont.cpp.

Member Data Documentation

float gte::Font::mCharacterData[257]
protected

Definition at line 39 of file GteFont.h.

std::shared_ptr<IndexBuffer> gte::Font::mIndexBuffer
protected

Definition at line 36 of file GteFont.h.

unsigned int gte::Font::mMaxMessageLength
protected

Definition at line 34 of file GteFont.h.

std::string const gte::Font::msGLSLPSSource
staticprotected

Definition at line 43 of file GteFont.h.

std::string const gte::Font::msGLSLVSSource
staticprotected

Definition at line 42 of file GteFont.h.

std::string const gte::Font::msHLSLSource
staticprotected

Definition at line 44 of file GteFont.h.

std::string const* gte::Font::msPSSource[ProgramFactory::PF_NUM_API]
staticprotected

Definition at line 46 of file GteFont.h.

std::string const* gte::Font::msVSSource[ProgramFactory::PF_NUM_API]
staticprotected

Definition at line 45 of file GteFont.h.

std::shared_ptr<TextEffect> gte::Font::mTextEffect
protected

Definition at line 38 of file GteFont.h.

std::shared_ptr<Texture2> gte::Font::mTexture
protected

Definition at line 37 of file GteFont.h.

std::shared_ptr<VertexBuffer> gte::Font::mVertexBuffer
protected

Definition at line 35 of file GteFont.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06