Fumofumotris/source/io/platforms/platform.h
Julia acfb0067be errors n all that
i hate muflrgf
2024-04-19 01:38:45 -05:00

30 lines
436 B
C

#pragma once
#include <iso646.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "fumotris.h"
#include "gametime.h"
#ifdef _WIN32
#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);