~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to UnitTests/UnitTest_RTTLayer/DemoKeeper.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         Albert Semenov
4
 
        @date           12/2009
5
 
*/
6
 
#include "DemoKeeper.h"
7
 
#include "Base/Main.h"
8
 
#include "MyGUI_RTTLayer.h"
9
 
 
10
 
namespace demo
11
 
{
12
 
 
13
 
        DemoKeeper::DemoKeeper()
14
 
        {
15
 
        }
16
 
 
17
 
        void DemoKeeper::setupResources()
18
 
        {
19
 
                base::BaseManager::setupResources();
20
 
                addResourceLocation(getRootMedia() + "/UnitTests/UnitTest_RTTLayer");
21
 
        }
22
 
 
23
 
        void DemoKeeper::createScene()
24
 
        {
25
 
                MyGUI::FactoryManager::getInstance().registerFactory<MyGUI::RTTLayer>("Layer");
26
 
 
27
 
                MyGUI::ResourceManager::getInstance().load("Layers.xml");
28
 
                MyGUI::LayoutManager::getInstance().loadLayout("Layers.layout");
29
 
        }
30
 
 
31
 
        void DemoKeeper::destroyScene()
32
 
        {
33
 
                MyGUI::FactoryManager::getInstance().unregisterFactory<MyGUI::RTTLayer>("Layer");
34
 
        }
35
 
 
36
 
} // namespace demo
37
 
 
38
 
MYGUI_APP(demo::DemoKeeper)
 
1
/*!
 
2
        @file
 
3
        @author         Albert Semenov
 
4
        @date           12/2009
 
5
*/
 
6
#include "DemoKeeper.h"
 
7
#include "Base/Main.h"
 
8
#include "MyGUI_RTTLayer.h"
 
9
 
 
10
namespace demo
 
11
{
 
12
 
 
13
        DemoKeeper::DemoKeeper()
 
14
        {
 
15
        }
 
16
 
 
17
        void DemoKeeper::setupResources()
 
18
        {
 
19
                base::BaseManager::setupResources();
 
20
                addResourceLocation(getRootMedia() + "/UnitTests/UnitTest_RTTLayer");
 
21
        }
 
22
 
 
23
        void DemoKeeper::createScene()
 
24
        {
 
25
                base::BaseDemoManager::createScene();
 
26
                std::string layerCategory = MyGUI::LayerManager::getInstance().getCategoryName();
 
27
                MyGUI::FactoryManager::getInstance().registerFactory<MyGUI::RTTLayer>(layerCategory);
 
28
 
 
29
                MyGUI::ResourceManager::getInstance().load("Layers.xml");
 
30
                MyGUI::LayoutManager::getInstance().loadLayout("Layers.layout");
 
31
        }
 
32
 
 
33
        void DemoKeeper::destroyScene()
 
34
        {
 
35
                std::string layerCategory = MyGUI::LayerManager::getInstance().getCategoryName();
 
36
                MyGUI::FactoryManager::getInstance().unregisterFactory<MyGUI::RTTLayer>(layerCategory);
 
37
        }
 
38
 
 
39
} // namespace demo
 
40
 
 
41
MYGUI_APP(demo::DemoKeeper)