source: trunk/VUT/OcclusionCullingSceneManager/TestCulling/TestCullingApplication.cpp @ 12

Revision 12, 966 bytes checked in by gametools, 19 years ago (diff)

added occlusionscenemanager

Line 
1/**
2    \file
3        TestCullingApplication.cpp
4    \brief
5        Tests the occlusion culling algorithm
6*/
7
8#include "Ogre.h"
9#include "TestCullingApplication.h"
10
11#define WIN32_LEAN_AND_MEAN
12#include "windows.h"
13
14
15void TestCullingApplication::createScene(void)
16{
17     // Create a skybox
18     mSceneMgr->setSkyBox(true, "Examples/SpaceSkyBox");
19         mShip = mSceneMgr->createEntity("razor", "razor.mesh");
20         mShipNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
21         mShipNode->attachObject(mShip);
22
23         mSceneMgr->setAmbientLight(ColourValue(0.5, 0.5, 0.5));
24}
25
26
27INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
28{
29    // Create application object
30    TestCullingApplication app;
31
32    try {
33        app.go();
34    } catch( Ogre::Exception& e ) {
35        MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
36    }
37
38    return 0;
39}
40
41
Note: See TracBrowser for help on using the repository browser.