VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtTexturedGlyphRenderer.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2014 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <boost/unordered_map.hpp>
15 #include <vector>
16 
17 namespace makVrv
18 {
19 
23  {
24  public:
25 
26  typedef std::vector<DtOffsetColoredTexturedVertex> QuadVertexList;
27  typedef boost::unordered_map<unsigned int, QuadVertexList > TextureLists;
28 
29  public:
30 
33 
36 
38  void setProjectedStringPosition( const float pos[4] );
39 
41  void setProjectedStringRotation( float angle );
42 
44  void setGroup( unsigned int group );
45 
49  virtual void renderGlyphWithAdvance( DtPen& pen, DtGlyph& glyph, bool advance);
50  virtual void renderGlyphWithRightToLeft( DtPen& pen, DtGlyph& glyph, bool rightToLeft);
51 
53  inline const TextureLists& perTextureLists() const
54  {
55  return myLists;
56  }
57 
59  inline TextureLists& perTextureLists()
60  {
61  return myLists;
62  }
63 
64  protected:
65 
67  float myCurrentStringPos[4];
69  float myGroup;
70 
71  };
72 
73 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)