All pastes #439024 Raw Edit

Something

public cpp v1 · immutable
·published 2007-04-14 00:17 UTC
rendered paste body
// engine.h#ifndef ENGINE_H#define ENGINE_H// Headers// ---------------------------------------------------------------------------------#include <irrlicht.h>#include <iostream>#include "modelLoader.h"using namespace irr;#pragma comment(lib, "Irrlicht.lib")// Main object's game_engine class//==============================================================================class game_engine{ private: //----------------------------------------------------------------------------- // end of private //----------------------------------------------------------------------------- public: //-----------------------------------------------------------------------------			// Function Prototypes...	//------------------------------------------------------------------------------		int InitRenderer();		void showFPSTitle();	//------------------------------------------------------------------------------		// Variables	//-------------------------------------------------------------------------- 		IrrlichtDevice* device;		video::IVideoDriver* driver;		scene::ISceneManager* smgr;		gui::IGUIEnvironment* env;		int lastFPS;		int fps;				model_zone::ModelClass *models;	//--------------------------------------------------------------------------	// Constructor    //--------------------------------------------------------------------------      game_engine()      {						device = 0;			driver = 0;			smgr = 0;			env = 0;			try {				models = new model_zone::ModelClass;			} catch(...) { } // yra klaida			      };    //--------------------------------------------------------------------------		// Destructor	//--------------------------------------------------------------------------	  ~game_engine() 	  {  		  	  };	//-------------------------------------------------------------------------- // end of public //-----------------------------------------------------------------------------}; extern game_engine *engine;//==============================================================================#endif // ENGINE_H