52 lines
989 B
C
52 lines
989 B
C
#include "engine.h"
|
|
|
|
#define STB_DS_IMPLEMENTATION
|
|
#include <stb_ds.h>
|
|
|
|
#define STB_TRUETYPE_IMPLEMENTATION
|
|
#include <stb_truetype.h>
|
|
|
|
#define STB_IMAGE_IMPLEMENTATION
|
|
#define STBI_FAILURE_USERMSG
|
|
#include "stb_image.h"
|
|
|
|
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
|
#include "stb_image_write.h"
|
|
|
|
#define PL_MPEG_IMPLEMENTATION
|
|
#include <pl_mpeg.h>
|
|
|
|
#include "render.h"
|
|
|
|
#include "2dphysics.h"
|
|
#include "camera.h"
|
|
#include "gameobject.h"
|
|
#include "input.h"
|
|
#include "log.h"
|
|
#include "openglrender.h"
|
|
#include "resources.h"
|
|
#include "script.h"
|
|
#include "sprite.h"
|
|
#include "timer.h"
|
|
#include "window.h"
|
|
#include "sound.h"
|
|
#include "engine.h"
|
|
|
|
void error_callback(int error, const char *description) {
|
|
fprintf(stderr, "Error: %s\n", description);
|
|
YughError("GLFW Error: %s", description);
|
|
}
|
|
|
|
void engine_init() {
|
|
resources_init();
|
|
|
|
YughInfo("Starting physics ...");
|
|
phys2d_init();
|
|
|
|
YughInfo("Starting sound ...");
|
|
sound_init();
|
|
|
|
YughInfo("Starting scripts ...");
|
|
script_init();
|
|
}
|