weapons are facing next to the camera

This commit is contained in:
Remco
2016-05-17 10:34:11 +02:00
parent 1693c74a6a
commit e5664e207d
5 changed files with 100 additions and 28 deletions
+19 -1
View File
@@ -1,10 +1,28 @@
#include "Weapon.h"
Weapon::Weapon(const string &filename)
{
weaponModel = new Model(filename);
}
Weapon::Weapon()
{
}
}
Weapon::~Weapon()
{
}
void Weapon::draw_weapon(void)
{
if (weaponModel != nullptr)
{
glScalef(scale,scale,scale);
glRotatef(rotX, 1, 0, 0);
weaponModel->draw();
}
}