Code: Select all
Irrlicht Engine version 0.7
Linux
Creating X window...
OpenGL Renderer.
OpenGL driver version is 1.2 or better.
Extentions disabled.
Loaded texture: #DefaultFont
Could not find texture in Q3 .bsp: textures/common/caulk
JPEG parameter struct mismatch: library thinks size is 464, caller expects 428
when running the example the same texture is not loaded but this is not an error just a warning.
Code: Select all
Irrlicht Engine version 0.7
Linux
Creating X window...
OpenGL Renderer.
OpenGL driver version is 1.2 or better.
Extentions disabled.
Loaded texture: #DefaultFont
Could not find texture in Q3 .bsp: textures/common/caulk
Code: Select all
#include <irrlicht.h>
using namespace irr;
using namespace video;
using namespace core;
using namespace scene;
using namespace gui;
using namespace io;
int main()
{
IrrlichtDevice *device =
createDevice(EDT_OPENGL, dimension2d<s32>(640, 480),true);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
device->getFileSystem()->addZipFileArchive("/home/sparkes/irrlicht/irrlicht-0.7/media/map-20kdm2.pk3");
IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
ISceneNode* node = 0;
if (mesh)
node = smgr->addOctTreeSceneNode(mesh->getMesh(0));
if (node)
node->setPosition(vector3df(-1300,-144,-1249));
smgr->addCameraSceneNodeFPS();
device->getCursorControl()->setVisible(false);
while(device->run())
{
driver->beginScene(true, true, video::SColor(0,200,200,200));
smgr->drawAll();
driver->endScene();
}
device->drop();
return 0;
}