6 #include <osgText/Text>
7 #include <osgText/Font>
8 #include <osg/BlendFunc>
9 #include <osg/Material>
10 #include <osg/StateSet>
15 #define CONSOLE_NO_ANIMATOR
17 #include "../ObjectUtils/Animator.h"
21 #define CONSOLE_WINDOW_DEPTH -1000.0f
23 #define CONSOLE_BORDER_X_RATIO 0.3f
24 #define CONSOLE_BORDER_Y_RATIO CONSOLE_BORDER_X_RATIO
25 #define CONSOLE_LINE_SPACE_CHAR_RATIO 0.3f
27 #define CONSOLE_FONT "fonts/arial.ttf"
28 #define CONSOLE_CHAR_SIZE 15
30 #define CONSOLE_TEXTCOLOR_NOTICE (osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f))
31 #define CONSOLE_TEXTCOLOR_WARNING (osg::Vec4(1.0f, 1.0f, 0.0f, 1.0f))
32 #define CONSOLE_TEXTCOLOR_ERROR (osg::Vec4(1.0f, 0.5f, 0.5f, 1.0f))
33 #define CONSOLE_TEXTCOLOR_DEBUG (osg::Vec4(0.3f, 1.0f, 0.3f, 1.0f))
37 using namespace vrecko;
39 namespace APTextOutput {
46 virtual void preInitialize();
47 virtual void postInitialize();
48 virtual bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *pParametersNode);
49 virtual void update(
void);
51 void addLine(
const char *line,
const osg::Vec4 &color = *((osg::Vec4*)NULL));
56 osg::ref_ptr<osgText::Text>
text;
71 osg::ref_ptr<vrecko::EnvironmentObject>
eo;
75 osg::ref_ptr<osg::Geometry>
geom;