blob: 2128c5e30c1ffb2c3d5ec6279d653b42a44d9ba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef TEENSY_PLATFORM_H_
#define TEENSY_PLATFORM_H_
#include "teensy.h"
#include "teensy_context.h"
// This platform functions are to be implemented by a platform library.
void ty_platform_init(struct ty_ctx *ctx);
void ty_platform_deinit(void);
void ty_platform_frame(struct ty_image img);
bool ty_platform_os_wants_quit(void);
double ty_platform_get_time(void);
bool ty_platform_is_button_down(enum ty_button btn);
// Optional, no editor if not implemented
struct ty_vec2i ty_platform_get_mouse(void);
#endif // TEENSY_PLATFORM_H_
|