About MS's free VC 2005 decision...
i dont care, visual c++ 2005 express is so freaking cool!! i even send him some data when i installed it and registered (you dont have to, my own decision).
if you get something for free, you could at least give something back. so i gave them the useless information they wanted.
i think more and more everyday that visual c++ is the best f*cking piece of software on the whole planet
ps: does anyone know if i can use irrlicht with the windows forms? i mean a .net2 app with irrlicht inside, like an editor. if not, i start crying because that would suck like hell!!!
if you get something for free, you could at least give something back. so i gave them the useless information they wanted.
i think more and more everyday that visual c++ is the best f*cking piece of software on the whole planet
ps: does anyone know if i can use irrlicht with the windows forms? i mean a .net2 app with irrlicht inside, like an editor. if not, i start crying because that would suck like hell!!!
Have to agree with that.GFXstyLER wrote: i think more and more everyday that visual c++ is the best f*cking piece of software on the whole planet
First i thought that VS sucks, and i was using DevC++. But soon...
My skin started to turn red...
My soul started to burn...
And i liked Visual C++
CRPG, FRPG, Oblivion Fan
Hater of Counter Strike (i hate it so much damn it)
Hater of Counter Strike (i hate it so much damn it)
Is posible (as I saw in the win32 example ) but I dont know how.ps: does anyone know if i can use irrlicht with the windows forms? i mean a .net2 app with irrlicht inside, like an editor. if not, i start crying because that would suck like hell!!!
As your ship is going down
ll stand by and watch you drown
ll stand by and watch you drown
so well, here you go:
1. load your windows forms project in VC++
2. create a panel where you want to draw irrlicht in. you can also draw irrlicht in the main panel (which is what i do) but it does not work if you create irrlicht on application start. you have to wait until the main window is created and the n use irrlicht with it. but this is not a problem since i do not load irrlicht on application startup, but when "File/New File..." is clicked.
3. for irrlicht you have to specify a HWND to draw in, which you dont have in windows.forms. so you must take a certain object where you want to draw irrlicht in and take its handle, like this:
4. then continiue loading irrlicht like in the win32 tutorial. here is an example of how to load it:
i put a "Sleep(1);" in the while loop because then the editor takes only 1% cpu usage, which is good because you dont want an editor to run on 50% cpu usage all the time.
now make a button for example with the label "Start Irrlicht" and make it load "initIrrlicht();"
last note: when you do an editor its better for you to create a few classes because if you put everything in one .H file it will get messy pretty soon.
hope that helped you
1. load your windows forms project in VC++
2. create a panel where you want to draw irrlicht in. you can also draw irrlicht in the main panel (which is what i do) but it does not work if you create irrlicht on application start. you have to wait until the main window is created and the n use irrlicht with it. but this is not a problem since i do not load irrlicht on application startup, but when "File/New File..." is clicked.
3. for irrlicht you have to specify a HWND to draw in, which you dont have in windows.forms. so you must take a certain object where you want to draw irrlicht in and take its handle, like this:
Code: Select all
irr::SIrrlichtCreationParameters param;
param.WindowId = (s32)yourobject->Handle.ToPointer();
// for the main window this would be:
//param.WindowId = (s32)this->Handle.ToPointer();
Code: Select all
// put this somewhere in the class
IrrlichtDevice* RenderDevice;
IVideoDriver* VideoDriver;
ISceneManager* SceneManager;
bool RenderingEnabled;
//put this somewhere in your class, too:
private: void initIrrlicht()
{
if(!RenderDevice)
{
irr::SIrrlichtCreationParameters param;
param.WindowId = (s32)this->Handle.ToPointer();
param.DriverType = video::EDT_OPENGL;
RenderDevice = createDeviceEx(param);
SceneManager = RenderDevice->getSceneManager();
VideoDriver = RenderDevice->getVideoDriver();
RenderingEnabled = true;
while (RenderDevice->run())
{
if(RenderingEnabled == true)
{
VideoDriver->beginScene(true, true, SColor(255, 255, 0, 0));
SceneManager->drawAll();
VideoDriver->endScene();
}
Sleep(1);
}
RenderDevice->closeDevice();
RenderDevice->drop();
}
}
now make a button for example with the label "Start Irrlicht" and make it load "initIrrlicht();"
last note: when you do an editor its better for you to create a few classes because if you put everything in one .H file it will get messy pretty soon.
hope that helped you
THe code seems to compile fine, but I keep getting a linker error when setting the device:
device = createDeviceEx(param);
The error is:
I am pointing to the correct headers and libraries (0.14.0), it is driving me crazy.
device = createDeviceEx(param);
The error is:
Code: Select all
irr-win32.obj : error LNK2001: unresolved external symbol "class irr::IrrlichtDevice * __clrcall irr::createDeviceEx(struct irr::SIrrlichtCreationParameters const &)" (?createDeviceEx@irr@@$$FYMPAVIrrlichtDevice@1@ABUSIrrlichtCreationParameters@1@@Z)