VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvGraphics
DtCharacterEncodingMap.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
#include <
vrvGraphics/vrvGraphics.h
>
12
#include <boost/unordered_map.hpp>
13
14
namespace
makVrv
15
{
16
class
DtFreeTypeFace;
17
20
class
DT_DLL_VRVGRAPHICS
DtCharacterEncodingMap
21
{
22
public
:
23
// CTOR
24
DtCharacterEncodingMap
(
DtFreeTypeFace
* face);
25
~
DtCharacterEncodingMap
();
26
28
unsigned
int
encoding()
const
;
29
31
bool
setEncoding(
unsigned
int
encoding);
32
35
unsigned
int
indexOfGlyph(
const
unsigned
int
characterCode)
const
;
36
39
unsigned
int
indexInFont(
unsigned
int
characterCode)
const
;
40
42
void
setGlyphIndex(
const
unsigned
int
characterCode,
const
size_t
glyphIndex);
43
44
protected
:
45
46
typedef
boost::unordered_map<unsigned int, unsigned int>
CharacterMap
;
47
48
DtFreeTypeFace
*
myFace
;
49
CharacterMap
myGlyphMap
;
50
51
unsigned
int
myEncoding
;
52
static
const
unsigned
int
TheCacheSize = 128;
53
unsigned
int
myIndexCache[TheCacheSize];
54
};
55
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)