VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
Tutorials
File List
File Members
include
vrvGraphics
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
12
#include <
vrvGraphics/vrvGraphics.h
>
13
#include <
vrvGraphics/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,
DtPoint
advance,
int
textureId,
27
DtPoint
origin,
DtPoint
size
,
DtPoint
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
DtPoint
myOrigin
;
46
47
// The size of the glyph 'image'
48
DtPoint
mySize
;
49
50
// The texture co-ords of this glyph within the texture.
51
DtPoint
myUVs[2];
52
53
// My advance
54
DtPoint
myAdvance
;
55
56
// My bounding box
57
DtBoundingBox
myBoundingBox
;
58
};
59
}
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)