2016-11-19 09:28:01 +00:00
|
|
|
#include "graphics/graphics.h"
|
2019-06-28 05:17:50 +00:00
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2016-10-04 22:13:57 +00:00
|
|
|
void lovrGraphicsDestroy() {
|
2018-02-23 03:18:36 +00:00
|
|
|
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
|
|
|
}
|