summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo.h
blob: f60d527c73518863ad86a44797ce8c670be6ae49 (plain)
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

// -- internal --
// public
#include "rodeo_types.h"
#include "rodeo/input.h"
#include "rodeo/log.h"
#include "rodeo/common.h"
#include "rodeo/audio.h"
#include "rodeo/collision.h"
#include "rodeo/gfx.h"
#include "rodeo/window.h"

// -- external --
#include "stc/cstr.h"

// -- system --
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
#include <limits.h>

/// --- Math ---

rodeo_color_RGBA8_t
rodeo_color_RGBAFloat_to_RGBA8(const rodeo_color_RGBAFloat_t color);

rodeo_color_RGBAFloat_t
rodeo_color_RGBA8_to_RGBAFloat(const rodeo_color_RGBA8_t color);

void
rodeo_random_seed_set(uint64_t seed);

double
rodeo_random_double_get(void);

uint64_t
rodeo_random_uint64_get(void);

/// --- Core ---

void
rodeo_mainLoop_run(
	rodeo_mainLoop_function main_loop_func
);

void
rodeo_debug_text_draw(uint16_t x, uint16_t y, const char *format, ...);