PHP

search for


Last updated: Thu, 30 Oct 2008

IrrLib.IsActiveWindow

IrrLib 1.X

IrrLib.IsActiveWindowDetermine if Irrlicht currently has the focus.

Description

bool IrrLib.IsActiveWindow ( )

Parameters

None

Return Values

Returns true if Irrlicht window is currently has focus, false if it does not.

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;
}

Initilzes the Irrlicht engine and displays something according to the parameters passed to it. In this case it is using DirectX9, with a 640x480 resolution, windows mode, stencil buffer on, and vsync off.

Notes




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