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.lib")
int main()
{
// Creation of device
IrrlichtDevice *device = createDevice(EDT_DIRECTX8,
dimension2d<s32>(640,480),
// ERROR
16,false,false,false,0);
// Creatio scene manager e GUI
IVideoDriver* driver = device->getVideoDriver();
IGUIEnvironment* guienv = device->getGUIEnvironment();
ISceneManager* smgr=device->getSceneManager();
// Screen
device->setWindowCaption(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
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(mesh);
node->setScale(vector3df(40.0,40.0,40.0));
// Light
smgr->addLightSceneNode(0, vector3df(0,100,-200),
SColor(0,200,200,200), 10000.0f,-1);
// Static Camera
smgr->addCameraSceneNode(0, vector3df(0,70,-100),
vector3df(0,10,0));
// Scene
while (device->run())
{
driver->beginScene(true, 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...