1 /* Dungeon Master --- RPG Adventure Generator
2 Copyright © 2019 Javier Sancho <jsf@jsancho.org>
4 Dungeon Master is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 Dungeon Master is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Dungeon Master. If not, see <http://www.gnu.org/licenses/>.
18 #include <irrlicht/irrlicht.h>
23 using namespace video;
31 IrrlichtDevice* device =
32 createDevice (video::EDT_OPENGL, core::dimension2d<u32> (640, 480));
37 device->setWindowCaption (L"Dungeon Master");
39 IVideoDriver* driver = device->getVideoDriver ();
40 IGUIEnvironment* guienv = device->getGUIEnvironment ();
42 guienv->addStaticText (L"Aqui va el texto", rect<s32> (10, 10, 260, 22));
44 while (device->run ())
46 driver->beginScene (true, true, SColor(255, 100, 101, 140));