*cough*bump*cough*
-DudMan




#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace gui;
#pragma comment(lib,"irrlicht.lib")
int main() {
IrrlichtDevice *device = createDevice(EDT_OPENGL);
IVideoDriver* video = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
ISceneNode* cube = smgr->addCubeSceneNode();
cube->setPosition(vector3df(0,0,7));
while(device->run() && device) {
video->beginScene(true, true, video::SColor(255,0,0,255));
smgr->drawAll();
video->endScene();
}
} 

shadowslair wrote:A short edit for the Event Receiver code to match the version 1.4 would be cool also.
We assume that the next newbies` generation will be using the last version, so this will save the forum some more "I hve problem wit da Event Reciver" topics...

IrrlichtDevice *device = createDevice(ETD_SOFTWARE...);
Our simple game now:
Code:
int main() {
IrrlichtDevice *device = createDevice(ETD_OPENGL);
IVideoDriver* video = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
ISceneNode* cube = smgr->addCubeSceneNode();
cube->setPosition(vector3df(0,0,5));
while(device->run() && device) {
video->beginScene(true, true, video::SColor(255,0,0,255));
smgr->drawAll();
video->endScene();
}
}
IrrlichtDevice *device = createDevice(ETD_OPENGL); IrrlichtDevice *device = createDevice(EDT_OPENGL); 
Return to FAQs, Tutorials, Howtos, and external tool lists
Users browsing this forum: No registered users and 0 guests