-
Notifications
You must be signed in to change notification settings - Fork 0
/
resources.c
56 lines (48 loc) · 939 Bytes
/
resources.c
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
#include "resources.h"
static const VU_VECTOR g_rocketData[] = {
{ 0.0f, 1.0f, 0.0f, 1.0f },
{ 0.5f, -1.0f, 0.0f, 1.0f },
{ 0.0f, 0.0f, 0.0f, 1.0f },
{ -0.5f, -1.0f, 0.0f, 1.0f },
{ 0.0f, 1.0f, 0.0f, 1.0f }
};
static const VU_VECTOR g_squareData[] = {
{ -0.5f, -0.5f, 0.0f, 1.0f },
{ -0.5f, +0.5f, 0.0f, 1.0f },
{ +0.5f, +0.5f, 0.0f, 1.0f },
{ +0.5f, -0.5f, 0.0f, 1.0f },
{ -0.5f, -0.5f, 0.0f, 1.0f },
};
const mesh_t g_square = {
.data = &g_squareData[0],
.count = 5
};
const mesh_t g_rocket = {
.data = &g_rocketData[0],
.count = 5
};
const mesh_t g_line = {
.data = &g_rocketData[0],
.count = 2
};
const color_t g_color_black = {
.r = 0,
.g = 0,
.b = 0,
.a = 255,
.q = 1.0f
};
const color_t g_color_white = {
.r = 255,
.g = 255,
.b = 255,
.a = 255,
.q = 1.0f
};
const color_t g_color_red = {
.r = 255,
.g = 0,
.b = 0,
.a = 255,
.q = 1.0f
};