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>
22 using namespace video;
27 IrrlichtDevice* device =
28 createDevice (video::EDT_OPENGL, core::dimension2d<u32> (640, 480));
33 device->setWindowCaption (L"Dungeon Master");
35 IVideoDriver* driver = device->getVideoDriver ();
36 IGUIEnvironment* guienv = device->getGUIEnvironment ();
38 guienv->addStaticText (L"Aqui va el texto", rect<s32> (10, 10, 260, 22));
40 while (device->run ())
42 driver->beginScene (true, true, SColor(255, 100, 101, 140));