VR-Forces 4.0.4 Class Documentation
include/vrvGraphics/DtTexturedGlyphRenderer.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvGraphics/DtGlyphRenderer.h>
00013 #include <vrvGraphics/DtTextured2DRenderer.h>
00014 #include <boost/unordered_map.hpp>
00015 #include <vector>
00016 
00017 namespace makVrv
00018 {
00019 
00022    class DT_DLL_VRVGRAPHICS DtTexturedGlyphRenderer : public DtGlyphRenderer
00023    {
00024    public:
00025 
00026       typedef std::vector<DtOffsetColoredTexturedVertex> QuadVertexList;
00027       typedef boost::unordered_map<unsigned int, QuadVertexList > TextureLists;
00028 
00029    public:
00030 
00032       DtTexturedGlyphRenderer();
00033 
00035       ~DtTexturedGlyphRenderer();
00036 
00038       void setProjectedStringPosition( const float pos[4] );
00039 
00041       void setProjectedStringRotation( float angle );
00042 
00044       void setGroup( unsigned int group );
00045 
00048       virtual void renderGlyph( DtPen& pen, DtGlyph& glyph );
00049 
00051       inline const TextureLists& perTextureLists() const
00052       {
00053          return myLists;
00054       }
00055 
00057       inline TextureLists& perTextureLists()
00058       {
00059          return myLists;
00060       }
00061 
00062    protected:
00063 
00064       TextureLists myLists;
00065       float myCurrentStringPos[4];
00066       float myCurrentStringRotation;
00067       float myGroup;
00068 
00069    };
00070 
00071 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)