VR-Forces 4.5 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  size_t maxRenderDataSizeInBytes(void) const;
65  static size_t dataSizeInBytes(const QuadVertexList& quads);
66 
67  protected:
68 
70  float myCurrentStringPos[4];
72  float myGroup;
73 
74  };
75 
76 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)