PHP

search for


Last updated: Thu, 30 Oct 2008

IrrLib.EndIrrlicht

IrrLib 1.X

IrrLib.EndIrrlichtTells Irrlicht to clean up any used memory

Description

None IrrLib.EndIrrlicht ( )

Parameters

None

Return Values

None

Examples

Example #1 Example #1 from SVN

#include <iostream>
#include "IrrLib.h"
#include <irrlicht.h>
 
using namespace std;
 
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
 
int main(){
	IrrLib Irrlicht(5, 640, 480, 16, false, true, false);
 
	while (Irrlicht.DeviceIsRunning())
	if (Irrlicht.IsActiveWindow())
	{
			Irrlicht.BeginScene();
			Irrlicht.DrawAll();
			Irrlicht.EndScene();
	}
	Irrlicht.EndIrrlicht();
	return 0;
}

You should call EndIrrlicht at the very end of your program, espeically when you exit, so Irrlicht has a chance to "clean up" after itself.

Notes




Last updated: Thu, 30 Oct 2008
User Contributed Notes
IrrLib.EndIrrlicht
Your name(or email):
Comment:
Security Code: CAPTCHA ImageReload Image