source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/OgreDemos/src/CausticTest/src/CausticTest.cpp @ 3255

Revision 3255, 1.7 KB checked in by szirmay, 15 years ago (diff)
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-2005 The OGRE Team
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        Lighting.cpp
18    \brief
19        Shows lighting support in OGRE.
20*/
21
22
23
24#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
25#define WIN32_LEAN_AND_MEAN
26#include "windows.h"
27#endif
28
29#include "CausticTest.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35bool RaytraceDemoListener::frameStarted(const FrameEvent& evt)
36    {
37                static bool first = true;
38       
39
40        //      lightNode->setPosition( 100.0 * Vector3(cos(-(float)framecount/500.0),2.0,sin(-(float)framecount/500.0)));
41               
42               
43                bool result = ExampleFrameListener::frameStarted(evt);
44       framecount++;
45           
46      return result;     
47    }
48
49#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
50INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
51#else
52int main(int argc, char **argv)
53#endif
54{
55
56    // Create application object
57    RaytraceDemoApplication app;
58
59    try {
60        app.go();
61    } catch( Ogre::Exception& e ) {
62#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
63        MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
64#else
65        std::cerr << "An exception has occured: " << e.getFullDescription();
66#endif
67    }
68
69    return 0;
70}
71
72#ifdef __cplusplus
73}
74#endif
75
76
77
Note: See TracBrowser for help on using the repository browser.