Absolutely stupid: Mesh cache
Posted: Mon Sep 12, 2005 5:39 pm
Hi all!
What's wrong with this code:
Compiler says (to line ***): addMesh undeclared. Says the same to all mesh cache methods. (mingw 3.3.1, irr 0.12)
Help me, please! This silly code drives me mad!
Toma
What's wrong with this code:
Code: Select all
#include <irrlicht/irrlicht.h>
using namespace irr;
#include <iostream>
#include <string>
using namespace std;
int main() {
string meshfilename="trabi.my3d";
IrrlichtDevice* dev=createDevice(video::EDT_DIRECTX9,core::dimension2d<s32>(640,480),32);
scene::ISceneManager* smgr=dev->getSceneManager();
video::IVideoDriver* drv=dev->getVideoDriver();
scene::IMeshCache* meshc=smgr->getMeshCache();
scene::IAnimatedMesh* mesh01=smgr->getMesh(meshfilename.c_str());
meshc->addMesh(meshfilename.c_str(),mesh01); //(***)
return 0;
}
Help me, please! This silly code drives me mad!
Toma