Fumofumotris/source/io/platforms/platform.h

30 lines
436 B
C
Raw Normal View History

2024-04-16 22:14:53 +00:00
#pragma once
2024-04-19 06:38:45 +00:00
#include <iso646.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "fumotris.h"
#include "gametime.h"
2024-04-16 22:14:53 +00:00
#ifdef _WIN32
2024-04-19 06:38:45 +00:00
#include "win.h"
#endif
enum PlatformError {
PLTF_E_INITFAIL,
};
struct Error {
int e;
};
bool PlatformInit();
bool PlatformGetRefreshRate(u16f *out);
bool PlatformReadInput(struct InputBuffer *buf);
bool PlatformWait(struct Time relative);