VR-Vantage 3.1 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvGraphics
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
12
#include <
vrvGraphics/vrvGraphics.h
>
13
#include <
vrvCore/DtBoundingBox.h
>
14
15
namespace
makVrv
16
{
17
21
class
DT_DLL_VRVGRAPHICS
DtGlyph
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.
42
int
myTextureID
;
43
44
// Vector from the pen position to the topleft corner of the pixmap
45
Dt2dPoint
myOrigin
;
46
47
// The size of the glyph 'image'
48
Dt2dPoint
mySize
;
49
50
// The texture co-ords of this glyph within the texture.
51
Dt2dPoint
myUVs[2];
52
53
// My advance
54
Dt2dPoint
myAdvance
;
55
56
// My bounding box
57
DtBoundingBox
myBoundingBox
;
58
};
59
}
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)