mirror of https://github.com/bjornbytes/lovr.git
22 lines
566 B
C
22 lines
566 B
C
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma once
|
|
|
|
struct os_window_config;
|
|
|
|
typedef enum {
|
|
PERMISSION_AUDIO_CAPTURE
|
|
} Permission;
|
|
|
|
bool lovrSystemInit(void);
|
|
void lovrSystemDestroy(void);
|
|
const char* lovrSystemGetOS(void);
|
|
uint32_t lovrSystemGetCoreCount(void);
|
|
void lovrSystemRequestPermission(Permission permission);
|
|
void lovrSystemOpenWindow(struct os_window_config* config);
|
|
bool lovrSystemIsWindowOpen(void);
|
|
void lovrSystemGetWindowSize(uint32_t* width, uint32_t* height);
|
|
float lovrSystemGetWindowDensity(void);
|
|
bool lovrSystemIsKeyDown(int keycode);
|