lovr/src/modules/graphics/graphics.c

18 lines
310 B
C
Raw Normal View History

2016-11-19 09:28:01 +00:00
#include "graphics/graphics.h"
2022-04-20 07:38:21 +00:00
#include <string.h>
2019-06-27 08:47:08 +00:00
static struct {
bool initialized;
} state;
2016-07-07 07:04:24 +00:00
2022-04-19 02:30:58 +00:00
bool lovrGraphicsInit() {
if (state.initialized) return false;
state.initialized = true;
return true;
2016-09-28 03:20:08 +00:00
}
void lovrGraphicsDestroy() {
if (!state.initialized) return;
2019-06-27 08:47:08 +00:00
memset(&state, 0, sizeof(state));
2016-07-07 07:04:24 +00:00
}