VR-Vantage 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtGlyph.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 namespace makVrv
16 {
17 
22  {
23  public:
24 
25  //Create a glyph with a user defined implementation.
26  DtGlyph( const DtBoundingBox& bbox, Dt2dPoint advance, int textureId,
27  Dt2dPoint origin, Dt2dPoint size, Dt2dPoint uv[2]);
28 
29  // Destructor
30  ~DtGlyph();
31 
32  // Return the advance width for this glyph.
33  float horizontalAdvance() const;
34 
35  // Return the bounding box for this glyph.
36  const DtBoundingBox& boundingBox() const;
37 
39  inline bool renderable() const { return myTextureID != 0; }
40 
41  // The texture index that this glyph is contained in.
43 
44  // Vector from the pen position to the topleft corner of the pixmap
46 
47  // The size of the glyph 'image'
49 
50  // The texture co-ords of this glyph within the texture.
51  Dt2dPoint myUVs[2];
52 
53  // My advance
55 
56  // My bounding box
58  };
59 }


Copyright © 2005-2018 VT MAK. All Rights Reserved (www.mak.com)