diff options
author | hecks <42101236+hecktest@users.noreply.github.com> | 2021-07-23 16:23:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 16:23:44 +0200 |
commit | 4ab3de3bab13c18bc0eed6bac565be3b80ebac10 (patch) | |
tree | 54274982be545669f28b2849f5f94aa1c37f39af /examples/01.HelloWorld_iOS/main.cpp | |
parent | dc2246dae75dda77d5a9be7f810930b5dd9b1ed8 (diff) | |
download | irrlicht-4ab3de3bab13c18bc0eed6bac565be3b80ebac10.tar.xz |
Delete lots of unused features (#48)
Diffstat (limited to 'examples/01.HelloWorld_iOS/main.cpp')
-rw-r--r-- | examples/01.HelloWorld_iOS/main.cpp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/examples/01.HelloWorld_iOS/main.cpp b/examples/01.HelloWorld_iOS/main.cpp deleted file mode 100644 index 93b9405..0000000 --- a/examples/01.HelloWorld_iOS/main.cpp +++ /dev/null @@ -1,62 +0,0 @@ -#include <irrlicht.h>
-#include "exampleHelper.h"
-
-using namespace irr;
-
-using namespace core;
-using namespace scene;
-using namespace video;
-using namespace io;
-using namespace gui;
-
-// It's important for iOS projects to use 'irrlicht_main' instead of standard 'main' function.
-
-void irrlicht_main()
-{
- IrrlichtDevice *device = createDevice(EDT_OGLES2, dimension2d<u32>(0, 0), 16, false, false, false, 0);
-
- if (!device)
- return;
-
- 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);
-
- const io::path mediaPath = getExampleMediaPath();
-
- IAnimatedMesh* mesh = smgr->getMesh(mediaPath + "sydney.md2");
-
- if (!mesh)
- {
- device->drop();
- return;
- }
-
- IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
-
- if (node)
- {
- node->setMaterialFlag(EMF_LIGHTING, false);
- node->setMD2Animation(scene::EMAT_STAND);
- node->setMaterialTexture( 0, driver->getTexture(mediaPath + "sydney.bmp") );
- }
-
- smgr->addCameraSceneNode(0, vector3df(0,30,-40), vector3df(0,5,0));
-
- while (device->run())
- if (device->isWindowActive())
- {
- driver->beginScene(ECBF_COLOR | ECBF_DEPTH, SColor(255,255,255,255));
-
- smgr->drawAll();
- guienv->drawAll();
-
- driver->endScene();
- }
-
- device->drop();
-}
|