I made the first Tutorial.
I use Microsoft Visual Studio C++ 2005 Express Edition.
When I compile, there's an error that irrlight.dll couldn't be found.
The path for the irrlicht.lb is the right one, can anyone help me, please?
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#pragma comment(lib, "C:/Dokumente und Einstellungen/Administrator/Desktop/Jans Zeugs/engines/irrlicht-1.3.1/irrlicht-1.3.1/lib/Win32-visualstudio/Irrlicht.lib")
int main()
{
//Start IrrLicht Device
IrrlichtDevice *device = createDevice(EDT_SOFTWARE, dimension2d<s32>(512, 384), 16, false, false, false, 0);
//FEnstertitel
device->setWindowCaption(L"Hallo Welt! - Irrlicht Engine Demo (Titel)");
//IVideoDriver anstatt device->getVideoDriver()
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
//Feld
guienv->addStaticText(L"Hello World! This is the Irrlicht Software engine!", rect<int>(10,10,200,22), true);
//Modell anzeigen
IAnimatedMesh* mesh = smgr->getMesh("C:/Dokumente und Einstellungen/Administrator/Desktop/Jans Zeugs/engines/irrlicht-1.3.1/irrlicht-1.3.1/media/sydney.md2");
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
if (node)
{
//dynamic Light deaktivieren
node->setMaterialFlag(EMF_LIGHTING, false);
//zwischen Frame 0 und 310 abspielen
node->setFrameLoop(0, 310);
//Mesh zuweisen
node->setMaterialTexture( 0, driver->getTexture("C:/Dokumente und Einstellungen/Administrator/Desktop/Jans Zeugs/engines/irrlicht-1.3.1/irrlicht-1.3.1/media/sydney.bmp") );
}
//Kameraplatzieren auf 0/30/-40
smgr->addCameraSceneNode(0, vector3df(0,30,-40), vector3df(0,5,0));
while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
//Objekt verschwinden lassen
device->drop();
return 0;
}