#include <irrlicht.h>
#ifdef _IRR_WINDOWS_
#pragma comment(lib, "irrlicht.lib")
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
#endif
int main()
{
IrrlichtDevice *device =
#ifdef _IRR_OSX_PLATFORM_
CreateDevice( video::EDT_OPENGL, dimention2d<s32>(640, 480), 16,
false, false, false 0);
#else
CreateDevice( video::EDT_SOFTWARE, dimention2d<s32>(640, 480) 16,
false, false, false, 0);
#endif
if (!device)
return 1;
device->setWindowCaption(L"Hello World! - Irrlicht Engine Demo");
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnviroment* guienv = device->getGUIEnviroment();
guienv->addStaticText(L"Hello World! This is the Irrlicht Software renderer!",
rect<s32>(10,10,260,22, true);
IAnimateMesh* mesh = smgr->getmesh("../../mediasydney.md2");
if (!mesh)
return 1;
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
if (node)
{
node->setMaterialFlag(EMF_lighting, false);
node->setMD2Animation(scene::EMAT_STAND);
node->setMaterialTexture( 0, driver->getTexture("../..media/sydney.bmp") );
}
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();
}
device->drop();
return 0;
}
Here is a picture:
![Image](http://i350.photobucket.com/albums/q423/Kojimapro/Help.jpg)
I just don't know what i did wrong, i press the debug button and then it says there was build errors, would you like to continue and run the last succesful build? Please help me.