Whats with the os namespace?????

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Malaidas
Posts: 16
Joined: Wed Feb 25, 2004 1:15 pm

Whats with the os namespace?????

Post by Malaidas »

hi all

not sure if this should be here or in the advanced section but here it goes

I've been trying to create a more standard FPS camera i.e. one which ignores movements in the Y from keys. I've pretty much achieved it yet got an insovable bug (or at least one which I can't work out at the moment) Then I though why not just sub class nicos FPS and just override the animate method. Which I've pretty much done except for one error

it tells me that os in the line

LastAnimationTime = os::Timer::getTime();

is not a vlid class or namespace, I've searched through looking for it and cannot find any refrence to it in the class heirarchy etc,

what do I need to include to get this namespace ?

cheers for any help

Steve
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Do you mean - irr::os::Timer::getTime(); ?
Crud, how do I do this again?
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

i think he means

Code: Select all

irr::os
:-P
The Robomaniac
Project Head / Lead Programmer
Centaur Force
hearsedriver
Posts: 81
Joined: Fri Aug 22, 2003 12:06 pm
Location: Germany
Contact:

Post by hearsedriver »

The irr::os namespace is used for Irrlicht internals and not included in the public API. Use IrrlichtDevice::getTimer instead.

Cheers.
matthias gall, lead programmer at sechsta sinn - email matthias@sechsta-sinn.de
Post Reply