-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.h
More file actions
62 lines (52 loc) · 844 Bytes
/
Copy pathtypes.h
File metadata and controls
62 lines (52 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef TYPES_H
#define TYPES_H
#include <stdint.h>
/**********************************
* user defined convenience types *
*********************************/
typedef uint_least8_t u8;
typedef uint_least16_t u16;
typedef uint_least32_t u32;
typedef uint_least64_t u64;
typedef int_least8_t i8;
typedef int_least16_t i16;
typedef int_least32_t i32;
typedef int_least64_t i64;
typedef float f32;
typedef double f64;
typedef bool b8;
typedef int b32;
struct GlyphVertex
{
f32 x;
f32 y;
f32 tx;
f32 ty;
f32 nx;
f32 ny;
f32 emPerPos;
u32 atlasOffset;
u32 runeIdx;
};
struct Extents
{
f64 xMin;
f64 yMin;
f64 xMax;
f64 yMax;
};
struct Point
{
f64 x;
f64 y;
};
struct GlyphInfo
{
f64 advance;
i32 upem;
u32 atlasOffset;
b32 empty;
b32 cached;
struct Extents extents;
};
#endif