VR-Vantage 2.6 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 }
Dt2dPoint myAdvance
Definition: DtGlyph.h:54
Contains the makVrv::DtBoundingBox class declaration.
A 2D point.
Definition: DtBoundingBox.h:19
bool renderable() const
Check to see if a glyph is renderable.
Definition: DtGlyph.h:39
A class which represents a glyph instance.
Definition: DtGlyph.h:21
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
Dt2dPoint mySize
Definition: DtGlyph.h:48
int myTextureID
Definition: DtGlyph.h:42
Dt2dPoint myOrigin
Definition: DtGlyph.h:45
DtBoundingBox myBoundingBox
Definition: DtGlyph.h:57
A simple bounding box.
Definition: DtBoundingBox.h:101


Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)