VR-Vantage
Loading...
Searching...
No Matches
DtGlyph.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2023 MAK Technologies, Inc.
3** All rights reserved.
4******************************************************************************/
5
9
10#pragma once
11
14
15namespace 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
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.
52
53 // My advance
55
56 // My bounding box
58 };
59}
Contains the makVrv::DtBoundingBox class declaration.
Definition DtBoundingBox.h:20
Definition DtBoundingBox.h:102
float horizontalAdvance() const
Dt2dPoint myAdvance
Definition DtGlyph.h:54
DtGlyph(const DtBoundingBox &bbox, Dt2dPoint advance, int textureId, Dt2dPoint origin, Dt2dPoint size, Dt2dPoint uv[2])
Dt2dPoint myOrigin
Definition DtGlyph.h:45
Dt2dPoint mySize
Definition DtGlyph.h:48
DtBoundingBox myBoundingBox
Definition DtGlyph.h:57
Dt2dPoint myUVs[2]
Definition DtGlyph.h:51
const DtBoundingBox & boundingBox() const
bool renderable() const
Check to see if a glyph is renderable.
Definition DtGlyph.h:39
int myTextureID
Definition DtGlyph.h:42
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition vrvGraphics.h:19
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16