VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 <tbb/tbb_allocator.h>
16 #include <vector>
17 
18 namespace makVrv
19 {
20 
24  {
25  public:
26 
27  typedef std::vector<DtOffsetColoredTexturedVertex, tbb::tbb_allocator<DtOffsetColoredTexturedVertex> > QuadVertexList;
28  typedef boost::unordered_map<unsigned int, QuadVertexList > TextureLists;
29 
30  public:
31 
34 
36  virtual ~DtTexturedGlyphRenderer();
37 
39  void setProjectedStringPosition( const float pos[4] );
40 
42  void setProjectedStringRotation( float angle );
43 
45  void setGroup( unsigned int group );
46 
50  virtual void renderGlyphWithAdvance( DtPen& pen, DtGlyph& glyph, bool advance);
51  virtual void renderGlyphWithRightToLeft( DtPen& pen, DtGlyph& glyph, bool rightToLeft);
52 
54  inline const TextureLists& perTextureLists() const
55  {
56  return myLists;
57  }
58 
61  {
62  return myLists;
63  }
64 
65  size_t maxRenderDataSizeInBytes(void) const;
66  static size_t dataSizeInBytes(const QuadVertexList& quads);
67 
68  protected:
69 
71  float myCurrentStringPos[4];
73  float myGroup;
74 
76  };
77 
78 }
std::vector< DtOffsetColoredTexturedVertex, tbb::tbb_allocator< DtOffsetColoredTexturedVertex > > QuadVertexList
Definition: DtTexturedGlyphRenderer.h:27
TextureLists & perTextureLists()
Get the per texture lists.
Definition: DtTexturedGlyphRenderer.h:60
TextureLists myLists
Definition: DtTexturedGlyphRenderer.h:70
boost::unordered_map< unsigned int, QuadVertexList > TextureLists
Definition: DtTexturedGlyphRenderer.h:28
float myGroup
Definition: DtTexturedGlyphRenderer.h:73
A glyph renderer which renders the texture associated with a glyph.
Definition: DtTexturedGlyphRenderer.h:23
Abstract class for handling glyph rendering.
Definition: DtGlyphRenderer.h:21
A class which represents a glyph instance.
Definition: DtGlyph.h:21
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
float myCurrentStringRotation
Definition: DtTexturedGlyphRenderer.h:72
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
Contains makVrv::DtGlyphRenderer class.
const TextureLists & perTextureLists() const
Get the per texture lists (const).
Definition: DtTexturedGlyphRenderer.h:54
A pen object with parameters on how to draw text.
Definition: DtBoundingBox.h:80
Contains the makVrv::DtTextured2DRenderer class declaration.
QuadVertexList myScratchVertList
Definition: DtTexturedGlyphRenderer.h:75

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)