changed the paths in cmake, fixed two dumb sigabrts on termination

This commit is contained in:
2017-12-12 22:23:14 -08:00
parent 7bb1c5100f
commit cc0b078e17
3 changed files with 14 additions and 5 deletions

View File

@@ -18,8 +18,8 @@ Application::Application() {
Application::~Application() {
light_handle->~LightHandle();
light_controller->~LightController();
//light_handle->~LightHandle();
//light_controller->~LightController();
}
bool Application::init_clcaster() {
@@ -98,13 +98,15 @@ bool Application::init_events() {
bool Application::game_loop() {
while (window->isOpen()) {
while (true) {
// Have the input handler empty the event stack, generate events for held keys, and then dispatch the events to listeners
input_handler.consume_sf_events(window.get());
input_handler.handle_held_keys();
input_handler.dispatch_events();
if (!window->isOpen())
break;
// Time keeping
elapsed_time = elap_time();
delta_time = elapsed_time - current_time;

View File

@@ -1,7 +1,10 @@
#include "CLCaster.h"
CLCaster::CLCaster() {}
CLCaster::~CLCaster() {}
CLCaster::~CLCaster() {
delete[] viewport_matrix;
delete[] viewport_image;
}
bool CLCaster::init() {