Beispiel #1
0
  virtual bool initialize()
  {
    if (!_model.load("./assets/bomb.fbx"))
      {
	std::cout << "Cannot load the bomb model" << std::endl;
	return false;
      }
    return true;
  }
Beispiel #2
0
  virtual bool initialize()
  { 
    _speed = 1.6f;
    
    if (!bomberman.load("lib/LibBomberman_linux_x64/assets/marvin.fbx") ) 
      {
	std::cerr << "Shader error in init function" << std::endl;
	return false;
      }
    return (true);
  }
Beispiel #3
0
 virtual void draw(gdl::AShader& shader, const gdl::Clock& clock)
 {
   _model.draw(shader, getTransformation(), clock.getElapsed());
 }