Ejemplo n.º 1
0
int basic_demo_main()
{
	RunnerApp* app = new RunnerApp();
	int mWidth  = 512;
	int mHeight = 512;
	
	app->Create(mWidth, mHeight);
	app->Run();
	//window->Destroy();

	SAFE_DELETE_PTR(app);
	return 0;
}
Ejemplo n.º 2
0
// ============================================================================
// Box::close  <STATIC MEMBER>
// ============================================================================
void Box::close ()
	throw (Tango::DevFailed)
{
  YAT_TRACE_STATIC("Box::close");

  try
  {
    //- release the Box::singleton
    SAFE_DELETE_PTR(Box::singleton);
  }
  catch (...)
  {
    THROW_DEVFAILED(_CPTC("SOFTWARE_ERROR"),
                    _CPTC("an error occured while trying to shutdown the Box::singleton"),
                    _CPTC("galil::Box::close"));
  }
}
Ejemplo n.º 3
0
TextureManager::~TextureManager(void)
{
	for (int i=0; i<textures.size(); i++){
		SAFE_DELETE_PTR(textures[i]);
	}
}
Ejemplo n.º 4
0
World::~World(void)
{
	SAFE_DELETE_PTR(p_activeCamera);
	SAFE_DELETE_PTR(p_activeLight);
	SAFE_DELETE_PTR(p_skybox);
	SAFE_DELETE_PTR(p_terrain);

	SAFE_DELETE_PTR(p_grass_prototype);
	SAFE_DELETE_PTR(p_grass_growth);
	SAFE_DELETE_PTR(p_tree1_prototype);
	SAFE_DELETE_PTR(p_tree1_growth);
	SAFE_DELETE_PTR(p_tree2_prototype);
	SAFE_DELETE_PTR(p_tree2_growth);
	SAFE_DELETE_PTR(p_dtree);

	SAFE_DELETE_PTR( p_test_model	);
	SAFE_DELETE_PTR( p_test_model2	);
	SAFE_DELETE_PTR( p_backgroundSound);
	SAFE_DELETE_PTR ( p_fog );
	/*
	for (int i=0; i<100; i++){
		SAFE_DELETE_PTR ( tree_positions[i] );
	}
	SAFE_DELETE_ARRAY_PTR( tree_positions );
	*/
	SAFE_DELETE_PTR( p_godRays	);
	textureManager.~TextureManager();
	shaderManager.~ShaderManager();


	printf("WORLD deleted.......\n"); 
}