acfb0067be
i hate muflrgf
30 lines
436 B
C
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); |