Exemplo n.º 1
0
Arquivo: mob.cpp Projeto: tommp/V8
bool Mob::update_matrices(){
	update_model_matrix();
	fill_glm_matrix(model_matrix);
	model_matrix = glm::scale(model_matrix, scale);

	return true;
}
Exemplo n.º 2
0
Floor::Floor()
{
	height_ = FLOOR_HEIGHT;
	width_ = FLOOR_WIDTH;
    update_model_matrix();
    texture_up = texture_down = texture_left = texture_right = texture::floor;
}
Exemplo n.º 3
0
void Floor::set_world_pos(int posX, int posY) {
    Drawable::set_world_pos(posX, posY);
    update_model_matrix();
}
Exemplo n.º 4
0
void Floor::set_size(int width, int height) {
    Drawable::set_size(width, height);
    update_model_matrix();
}