Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Private Attributes | List of all members
OGLFont Class Reference

#include <OGLFont.h>

Inheritance diagram for OGLFont:
Inheritance graph
[legend]
Collaboration diagram for OGLFont:
Collaboration graph
[legend]

Public Member Functions

 OGLFont ()
 
virtual ~OGLFont ()
 
bool load (const char *filename)
 
void drawText (const std::string &msg, const OColor &color, double x, double y) const
 
- Public Member Functions inherited from OGLTexture
 OGLTexture ()
 
virtual ~OGLTexture ()
 
virtual void bind ()
 
virtual void free ()
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 

Private Attributes

OImageFont_image
 

Additional Inherited Members

- Protected Member Functions inherited from OGLTexture
void genTexture ()
 
- Protected Attributes inherited from OGLTexture
GLuint id
 
- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Detailed Description

Definition at line 33 of file OGLFont.h.

Constructor & Destructor Documentation

◆ OGLFont()

OGLFont::OGLFont ( )

Definition at line 26 of file OGLFont.cpp.

◆ ~OGLFont()

OGLFont::~OGLFont ( )
virtual

Definition at line 28 of file OGLFont.cpp.

Member Function Documentation

◆ drawText()

void OGLFont::drawText ( const std::string &  msg,
const OColor color,
double  x,
double  y 
) const

Affiche un texte

Definition at line 68 of file OGLFont.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ load()

bool OGLFont::load ( const char *  filename)
virtual

Implements OGLTexture.

Definition at line 30 of file OGLFont.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _image

OImageFont* OGLFont::_image
private

Definition at line 50 of file OGLFont.h.


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