mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 13:01:29 -10:00
30 lines
492 B
C++
30 lines
492 B
C++
#include "lab/labv2.h"
|
|
#include "lab/labv2_internal.h"
|
|
#include "lab/manager/lab_manager.h"
|
|
#include "gamesequence/gamesequence.h"
|
|
|
|
LabManager* LMGR = nullptr;
|
|
|
|
LabManager* getLabManager() {
|
|
if (LMGR == nullptr) {
|
|
LMGR = new LabManager();
|
|
}
|
|
|
|
return LMGR;
|
|
}
|
|
|
|
void lab_init() {
|
|
gr_set_clear_color(0, 0, 0);
|
|
}
|
|
|
|
void lab_close() {
|
|
delete LMGR;
|
|
LMGR = nullptr;
|
|
gameseq_post_event(GS_EVENT_PREVIOUS_STATE);
|
|
}
|
|
|
|
void lab_do_frame(float frametime) {
|
|
getLabManager()->onFrame(frametime);
|
|
}
|
|
|