bool Mob::update_matrices(){ update_model_matrix(); fill_glm_matrix(model_matrix); model_matrix = glm::scale(model_matrix, scale); return true; }
Floor::Floor() { height_ = FLOOR_HEIGHT; width_ = FLOOR_WIDTH; update_model_matrix(); texture_up = texture_down = texture_left = texture_right = texture::floor; }
void Floor::set_world_pos(int posX, int posY) { Drawable::set_world_pos(posX, posY); update_model_matrix(); }
void Floor::set_size(int width, int height) { Drawable::set_size(width, height); update_model_matrix(); }