Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/Samples/SkyBox/src/SkyBox.cpp @ 3

Last change on this file since 3 was 3, checked in by anonymous, 17 years ago

=update

File size: 1.4 KB
Line 
1/*
2-----------------------------------------------------------------------------
3This source file is part of OGRE
4    (Object-oriented Graphics Rendering Engine)
5For the latest info, see http://www.ogre3d.org/
6
7Copyright (c) 2000-2006 Torus Knot Software Ltd
8Also see acknowledgements in Readme.html
9
10You may use this sample code for anything you like, it is not covered by the
11LGPL like the rest of the engine.
12-----------------------------------------------------------------------------
13*/
14
15/**
16    \file
17        SkyBox.cpp
18    \brief
19        Shows OGRE's skybox feature where a wrap-around environment is projected
20        onto a cube around the camera.
21*/
22
23#include "SkyBox.h"
24
25#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
26#define WIN32_LEAN_AND_MEAN
27#include "windows.h"
28#endif
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
35INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
36#else
37int main(int argc, char *argv[])
38#endif
39{
40    // Create application object
41    SkyBoxApplication app;
42
43    try {
44        app.go();
45    } catch( Ogre::Exception& e ) {
46#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
47        MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
48#else
49        std::cerr << "An exception has occured: " <<
50            e.getFullDescription().c_str() << std::endl;
51#endif
52    }
53
54    return 0;
55}
56
57#ifdef __cplusplus
58}
59#endif
Note: See TracBrowser for help on using the repository browser.