vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
GUI_Text.h
Go to the documentation of this file.
1
#pragma once
2
3
using namespace
vrecko;
4
5
6
# ifdef GUI_LIBRARY
7
# define GUI_EXPORT __declspec(dllexport)
8
# else
9
# define GUI_EXPORT __declspec(dllimport)
10
#endif
11
12
13
namespace
APGUI
14
{
15
16
18
26
class
GUI_EXPORT
GUI_Text
:
public
osg::Geode
27
{
28
public
:
29
30
GUI_Text
();
31
~
GUI_Text
();
32
33
void
setText(
const
std::string& content,
const
osg::Vec3& pos,
float
size, osg::Vec4& color = osg::Vec4(0.0, 0.0, 0.0, 1.0));
34
void
setText(
const
std::string& content );
35
36
void
show();
37
void
hide();
38
39
protected
:
40
static
osg::ref_ptr<osgText::Font>
_font
;
//Shared among instances
41
osg::ref_ptr<osgText::Text>
_text
;
42
43
};
44
45
}
include
vreckoAP
GUI
GUI_Text.h
Generated on Tue Feb 19 2013 10:23:44 for vrecko by
1.8.3.1