Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <irrlicht.h>
- using namespace irr;
- using namespace core;
- using namespace scene;
- using namespace video;
- using namespace io;
- using namespace gui;
- #ifdef _IRR_WINDOWS_
- #pragma comment(lib, "Irrlicht.lib")
- #pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
- #endif
- int main() {
- IrrlichtDevice *device =
- createDevice( video::EDT_OPENGL, dimension2d<u32>(640, 480), 16,
- false, false, false, 0);
- if (!device) {
- return 1;
- }
- device->setWindowCaption(L"Hello World! - Irrlicht Engine Demo");
- IVideoDriver* driver = device->getVideoDriver();
- ISceneManager* smgr = device->getSceneManager();
- IGUIEnvironment* guienv = device->getGUIEnvironment();
- guienv->addStaticText(L"Hello World! This is the Irrlicht Software renderer!", rect<s32>(10,10,260,22), true);
- return 0;
- }
RAW Paste Data