Does Irrlicht support NOT using graphics?

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
147-2
Posts: 5
Joined: Sat Feb 14, 2004 7:07 pm
Location: San Diego
Contact:

Does Irrlicht support NOT using graphics?

Post by 147-2 »

I have spent the last few minutes perusing the tutorials, and have come to the conclusion that I would like to use Irrlicht, but I wonder... Can I use Irrlicht to NOT DRAW things? Quite simply, I would like to have a game with a server, and the server should run on a UNIX command line. It would be much easier if I could run the simulation on the server exactly the same way that I do in the game... that whole code resuse/conservation thing is in effect here. I would like to be able to have the game and the server running on largely the same code base, but this presents a problem. I don't want to waste clocks on the server drawing everything to a screen... especially when the server admin mades the intelligent decision to run the server on the command line, and not in a (wasteful) Xwindow environment.
________________________________

Rob
42

Post by 42 »

Actually irrlicht doesn't support headless usage out of the box.
But, as usual there's a work around and i think its really simple to implement. All you will have to do is give the possibility to select the NullDevice ( besides OpenGL and DirectX)

most likely you have t change in the files CIrrDeviceLinux.cpp /CIrrDeviceWin32.cpp and provide the possibility to select CVideoNull as video::EDriverType

hope this helps
42
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

or, if you want to be really simple, you could just use the code, but delete the stuff within the device->run(); loop. That should work
The Robomaniac
Project Head / Lead Programmer
Centaur Force
Post Reply