#include <string.h>
#include <vector>
+#include "global.h"
+
/* TODO: fix those */
#include "camera.h"
#include "mesh.h"
#include "object.h"
#include "scene.h"
+#include "shader_manager.h"
#include "opengl/opengl.h"
#include "vulkan/vk.h"
int win_h = 600;
OrbitCamera *camera;
+ShaderManager *sdr_man;
/* variables */
static float phi = 25;
return false;
}
+ sdr_man = new ShaderManager;
+
camera = new OrbitCamera;
camera->set_orbit_params(phi, theta, dist);
static void cleanup()
{
+ delete sdr_man;
+ delete camera;
+
if(use_vulkan) {
cleanup_vulkan();
}
else {
cleanup_opengl();
}
-
- delete camera;
}
static void key_clbk(GLFWwindow *win, int key, int scancode, int action, int mods)
}
else {
display_opengl();
- scene.objects[0]->mesh->update_vertex_data();
scene.objects[0]->mesh->draw();
}
}
\ No newline at end of file