Whoops! I forgot the code
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
IrrlichtDevice* device = 0;
s32 cnt = 0;
IGUIListBox* listbox = 0;
int resxset = 640;
int resyset = 480;
class EventReceiver1 : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event)
{
if (event.EventType == EET_GUI_EVENT)
{
s32 id = event.GUIEvent.Caller->getID();
switch(event.GUIEvent.EventType)
{
case EGET_BUTTON_CLICKED:
if (id == 10001)
{
device->closeDevice();
return true;
}
break;
}
}
return false;
}
};
int main()
{
EventReceiver1 receiver;
IrrlichtDevice *device =
createDevice(video::EDT_OPENGL, core::dimension2d<s32>(resxset, resyset), 32, true, true, &receiver);
device->setWindowCaption(L"Fatal Freedom");
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
device->getFileSystem()->addZipFileArchive("pak1.pk3");
video:: ITexture* fflogo = driver->getTexture("fatalfreedom.bmp");
guienv->addButton (rect<s32>(320,414,370,428), 0, 10001, L"QUIT");
guienv->addStaticText (L"FATAL FREEDOM", rect<int>(0,450,320,462), true);
guienv->addStaticText (L"DEVELOPED BY DECAPITATION GAMES", rect<int>(0,465,260,477), true);
guienv->addStaticText (L"THIS SOFTWARE IS BASED IN PART ON THE WORK OF THE INDEPENDENT JPEG GROUP", rect<int>(261,465,640,477), true);
guienv->addStaticText (L"USES THE IRRLICHT 3D GAME ENGINE", rect<int>(320,450,640,462), true);
while(device->run())
{
driver->beginScene(true, true, SColor(0,255,255,255));
driver->draw2DImage(fflogo, core::position2d<s32>(0,0),
core::rect<s32>(0, 0, 640, 480), 0,
video::SColor(1, 255, 255, 255), true);
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}
Anybody who helps gets their name in the credits under "Special Thanks"