Пример #1
0
  virtual bool initialize()
  {
    if (!_model.load("./assets/bomb.fbx"))
      {
	std::cout << "Cannot load the bomb model" << std::endl;
	return false;
      }
    return true;
  }
Пример #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);
  }
Пример #3
0
 virtual void draw(gdl::AShader& shader, const gdl::Clock& clock)
 {
   _model.draw(shader, getTransformation(), clock.getElapsed());
 }