#include <gl_on_screen_display.h>
List of all members.
Public Types |
typedef math_types::real_type | real_type |
Public Member Functions |
| OnScreenDisplay (int x, int y) |
| OnScreenDisplay (int pos) |
| OnScreenDisplay () |
void | set_pos (int pos) |
void | set_pos (int x, int y) |
void | set_visibility (bool visible) |
bool | get_visibility () |
void | set_static (bool isstatic) |
bool | get_static () |
void | set_color (float r, float g, float b, float alpha=0.5f) |
void | printf (char *format,...) |
void | print (std::string const &str) |
void | clear () |
void | display () |
Protected Member Functions |
void | renderBitmapString (float x, float y, float z, void *font, const char *string) |
void | display_text () |
Protected Attributes |
int | m_pos |
int | m_pos_x |
int | m_pos_y |
int | m_screen_width |
int | m_screen_height |
int | m_display_width |
int | m_display_height |
unsigned int | m_maxlen |
| Max chars present in a single string (only for monospaced fonts).
|
float | m_alpha |
float | m_red |
float | m_green |
float | m_blue |
bool | m_visible |
bool | m_static |
std::vector< std::string > | m_string |
Detailed Description
template<typename math_types>
class OpenTissue::gl::OnScreenDisplay< math_types >
On Screen Display Class. This class provides an easy interface for writing textual 2D output on the screen. Uses screen pixel units.
Member Typedef Documentation
template<typename math_types >
Constructor & Destructor Documentation
template<typename math_types >
- Parameters:
-
| x | Horizontal pixel position of the top left corner of the display |
| y | Vertical pixel position of the top left corner of the display |
template<typename math_types >
- Parameters:
-
| m_pos | Semantic description of the display position OSD_TOP_LEFT, OSD_TOP_RIGHT.... |
template<typename math_types >
Member Function Documentation
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
Prints a formatted string to the OSD in standard printf format(see C++ docs)
- Parameters:
-
| format | The format string |
| ... | Variable length argument list for formatting |
template<typename math_types >
template<typename math_types >
template<typename math_types >
Sets custom screen position of the OSD
- Parameters:
-
| x | Horizontal pixel position of the top left corner of the display |
| y | Vertical pixel position of the top left corner of the display |
template<typename math_types >
Sets the display position using semantic description predefines of the display position i.e. OSD_TOP_LEFT, OSD_TOP_RIGHT ...
- Parameters:
-
| m_pos | Semantic description predefine |
template<typename math_types >
template<typename math_types >
Member Data Documentation
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
Max chars present in a single string (only for monospaced fonts).
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
The documentation for this class was generated from the following file:
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/utility/gl/gl_on_screen_display.h