Hide Irrlicht console window?

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
Pantheon
Posts: 4
Joined: Mon Aug 21, 2006 7:05 pm

Hide Irrlicht console window?

Post by Pantheon »

Hi there,

I've just started learning the Irrlicht Engine and have come across a question.

Is it possible to hide the Irrlicht status console window when creating a console application? Or must I create a winforms solution and render the engine in a picturebox or similar?

Looking forward to an answer.
Last edited by Pantheon on Mon Aug 28, 2006 8:24 pm, edited 1 time in total.
To live in the Idea is to treat the impossible as thought it were possible.
jrm
Posts: 111
Joined: Tue Dec 13, 2005 8:57 pm

Post by jrm »

What IDE are you using? Code::Blocks, DevCPP, etc...


JRM
Pantheon
Posts: 4
Joined: Mon Aug 21, 2006 7:05 pm

Post by Pantheon »

I'm using VC# Express.
Last edited by Pantheon on Mon Aug 28, 2006 8:25 pm, edited 1 time in total.
To live in the Idea is to treat the impossible as thought it were possible.
shurijo
Posts: 148
Joined: Sat Feb 21, 2004 3:04 am

Post by shurijo »

Yes.

It should be hidden unless you specifically call it out. What code are you using in your main (the static method that starts the app)?
Pantheon
Posts: 4
Joined: Mon Aug 21, 2006 7:05 pm

Post by Pantheon »

This is my main right now:

Code: Select all

static void Main(string[] args)
{
     IrrlichtDevice device = new IrrlichtDevice(DriverType.DIRECT3D9);
     device.WindowCaption = "Loading...";
     device.ResizeAble = true;

     ICameraSceneNode camera = device.SceneManager.AddCameraSceneNodeFPS();
     camera.Position = new Vector3D(-50, 50, -150);

     while (device.Run())
     {

         if (device.WindowActive)
         {
             device.VideoDriver.BeginScene(true, true, new Color(0, 0, 0, 0));
             device.SceneManager.DrawAll();
             device.VideoDriver.EndScene();

         }

     }

}
I'd like this to be rendered without the Irrlicht Engine Version window.

(Sorry if my question is simple, but I just couldn't find what I was looking for in the documentation.) :)
Saku
Posts: 158
Joined: Wed Jan 05, 2005 8:48 am
Location: Denmark

Post by Saku »

I'm quite sure this has been answered quite a lot of time on this forum so you might want to do a quick search.
Might be wrong tho, since I'm not sure if it's the same on all IDEs.
Call me Wice, Miami Wice!
finger007

Post by finger007 »

Saku, you're right.

Pantheon, I think you were looking for this:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=11986

cheers
Pantheon
Posts: 4
Joined: Mon Aug 21, 2006 7:05 pm

Post by Pantheon »

Ah excellent, thanks!
To live in the Idea is to treat the impossible as thought it were possible.
Teensterpoup21
Posts: 0
Joined: Thu Oct 12, 2006 8:05 am

Post by Teensterpoup21 »

Locked