version 3.3

VRS::TEXT::TextureTextPainterGL Class Reference

A class containing the needed informations to render text with glyphs pre rasterized on textures. More...

#include <vrs/text/texturetextpaintergl.h>

Inheritance diagram for VRS::TEXT::TextureTextPainterGL:

VRS::ShapePainter VRS::Painter VRS::Handler VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::TEXT::DisplacedTextureTextPainterGL

List of all members.

Public Member Functions

 TextureTextPainterGL ()
virtual ~TextureTextPainterGL ()
virtual ID target () const
 Defines which class will be rendered.
virtual bool render (Engine *, const Shape *)
 The rendering.
virtual void renderText (Engine *E, TextureText *tt) const
 Renders the text without any additions as made above.
 VRS_TYPEINFO (TextureTextPainterGL, ShapePainter)

Static Public Member Functions

static void setTextRenderingAttributes (VRS::Iterator< SO< MonoAttribute > > *attribs, unsigned int textComponentIndex=0)
 Allows the specification of rendering attributes for the text layers.


Detailed Description

A class containing the needed informations to render text with glyphs pre rasterized on textures.

Constructor & Destructor Documentation

VRS::TEXT::TextureTextPainterGL::TextureTextPainterGL (  ) 

virtual VRS::TEXT::TextureTextPainterGL::~TextureTextPainterGL (  )  [virtual]


Member Function Documentation

virtual ID VRS::TEXT::TextureTextPainterGL::target (  )  const [virtual]

Defines which class will be rendered.

See also:
Painter

Implements VRS::Painter.

Reimplemented in VRS::TEXT::DisplacedTextureTextPainterGL.

virtual bool VRS::TEXT::TextureTextPainterGL::render ( Engine ,
const Shape  
) [virtual]

The rendering.

Includes disabling Z Buffer, Lighting and enabling alpha blending

See also:
Painter

Implements VRS::ShapePainter.

virtual void VRS::TEXT::TextureTextPainterGL::renderText ( Engine E,
TextureText tt 
) const [virtual]

Renders the text without any additions as made above.

See also:
TextureTextPainterGL::render( Engine*, const Shape* )

VRS::TEXT::TextureTextPainterGL::VRS_TYPEINFO ( TextureTextPainterGL  ,
ShapePainter   
)

static void VRS::TEXT::TextureTextPainterGL::setTextRenderingAttributes ( VRS::Iterator< SO< MonoAttribute > > *  attribs,
unsigned int  textComponentIndex = 0 
) [static]

Allows the specification of rendering attributes for the text layers.

Parameters:
attribs iterator that define the attributes to be applied for a specific textComponentIndex. If attribs == NULL, the internal list will be cleared
textComponentIndex define the layer (0..4) for wich the attributes schould be applied (e.g. inner part, halo ,or border) Index 0 has a special meaning, attributes defined with this index are applied to all text components. Initally, the following attributes are defined for index 0:
  • ALPHA_BLENDING = ColorBufferGL::newBlending(true, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  • NO_Z_WRITE = new DepthBufferGL(true, false);
  • NO_LIGHT = new LightModelGL(LightModelGL::DisableLighting);


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

Generated on Sun May 19 06:00:51 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact