mlimber wrote:
You are missing a function possibly with the name createDevice. Perhaps
the function is just not found by the linker (did you include all the
correct files?), perhaps the parameter types differ between the
prototype/class declaration and the implementation, perhaps the
constness of the function is different. There could be any number of
problems, but we'd need to see some code to figure out what is the
cause of the error.
Cheers! --M
Thank you! This is the code...
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io; // Serve per I/O
using namespace gui;
#pragma comment(lib, "Irrlicht.l ib")
int main()
{
// Creation of device
IrrlichtDevice *device = createDevice(ED T_DIRECTX8,
dimension2d<s32 >(640,480),
// ERROR
16,false,false, false,0);
// Creatio scene manager e GUI
IVideoDriver* driver = device->getVideoDriver ();
IGUIEnvironment * guienv = device->getGUIEnvironm ent();
ISceneManager* smgr=device->getSceneManage r();
// Screen
device->setWindowCapti on(L"Irrlicht 1.1");
guienv->addStaticText( L"Ciao Mondo!", rect<int>(10, 10, 70, 22), false,
true,
0, -1, true);
// mesh 3D
IAnimatedMesh* mesh = smgr->getMesh("earth .x");
// Apply the mesh
IAnimatedMeshSc eneNode* node = smgr->addAnimatedMes hSceneNode(mesh );
node->setScale(vecto r3df(40.0,40.0, 40.0));
// Light
smgr->addLightSceneN ode(0, vector3df(0,100 ,-200),
SColor(0,200,20 0,200), 10000.0f,-1);
// Static Camera
smgr->addCameraScene Node(0, vector3df(0,70,-100),
vector3df(0,10, 0));
// Scene
while (device->run())
{
driver->beginScene(tru e, true, SColor(0,0,0,0) );
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
// risource
device->drop();
return 0;
}
but I don't miss the function... I think...