~ubuntu-branches/debian/sid/ember/sid

« back to all changes in this revision

Viewing changes to src/components/ogre/environment/SimpleEnvironment.h

  • Committer: Package Import Robot
  • Author(s): Olek Wojnar, Stephen M. Webb, Olek Wojnar
  • Date: 2016-08-06 18:39:19 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20160806183919-4g72j3flj7xe2stj
Tags: 0.7.2+dfsg-1
[ Stephen M. Webb ]
* debian/control: updated build-depends to newer minimum versions
  (closes: #704786)
* debian/control: updated Standards-Version to 3.9.4 (updated VCS-* fields)
* debian/patches/0001-ember.in-test-expr.patch: removed (fixed upstream)
* debian/patches/0002-add-update_lua_bindings.patch: removed (fixed upstream)
* debian/patches/0003-add-atlas-pkg.patch: removed (fixed upstream)
* debian/patches/0004-domain-bindings-lua-makefile.patch: refreshed
* debian/patches/0005-ember.in-prefix.patch: removed (fixed upstream)
* debian/patches/0006-spellcheck-similiar.patch: removed (fixed upstream)
* debian/patches/0007-revert-libwfut-version.patch: refreshed
* debian/patches/0008-replace-fastdeletegate-with-sigc++.patch: removed
 (fixed upstream)
* debian/patches/0009-spelling-bach.patch: removed (fixed upstream)
* debian/patches/0010-fix-ember-script-args.patch: removed (fixed upstream)
* debian/patches/0011-qualify-template-functions.patch: removed (fixed
  upstream)
* debian/patches/0012-fix-osdir-headers.patch: removed (fixed upstream)
* debian/patches/0013-remove-invalid-linker-flags.patch: removed (fixed
  upstream)
* debian/patches/0014-add-missing-ogrelodstrategy.patch: new
* debian/control: fixed Vcs-Browser URL
* debian/patches/0015-verbose-configure-errors.patch: new
* debian/patches/0016-boost-1.53.patch: new
* debian/control: bump boost build dependeny to 1.53

[ Olek Wojnar ]
* New upstream release (Closes: #799748)
* Add myself as new uploader
  - Remove Stephen Webb per his request
  - Thanks for all the contributions, Stephen!
* d/patches/0007-revert-libwfut-version.patch: removed (unnecessary)
* d/control
  - Remove pre-dependency on dpkg
  - Update standards to 3.9.8 (no changes)
  - Update Vcs lines for secure URIs
* Import patch from the wfmath package to replace MersenneTwister.h
  -- Avoids problems from ambiguous copyright of the original file
* Update dependencies for version 0.7.2
* Enable all hardening options
* Add three lintian overrides
  -- Ignore install into usr/bin (binary)
  -- Ignore .rc files needed for WIN32 build (source)
  -- Ignore false positive of spelling error (binary)
* d/copyright: Update contributors and dates
* d/rules
  -- Do not remove "sounddefinitions" directory
  -- Enable parallel build
  -- Do not install into games directories
  -- Remove dh_builddeb override since xz is now the default
* d/watch: update file extensions
* Remove three patches, add eight patches, update remaining patches
  -- 0004-domain-bindings-lua-makefile.patch (implemented upstream)
  -- 0014-add-missing-ogrelodstrategy.patch (implemented upstream)
  -- 0016-boost-1.53.patch (patch target file removed upstream)
  -- 0018-enable-subdir-objects.patch (Fix automake 1.14 warnings)
  -- 0019-update-boost-m4.patch (Fix invalid boost_major_version)
  -- 0020-remove-obsolete-includes.patch (Fix obsolete includes)
  -- 0021-GraphicalChangeAdapter-fix-for-newer-compilers.patch (Added)
  -- 0022-fix-typos.patch (Fix typos identified by lintian)
  -- 0023-add-keywords-to-desktop-file.patch (Add Keywords to .desktop file)
  -- 0024-fix-icon-location (Make icon location Icon Theme Spec-compliant)
  -- 0025-fix-duplicate-script-install.patch (Was causing build failures)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef EMBEROGRE_ENVIRONMENTSIMPLEENVIRONMENT_H
24
24
#define EMBEROGRE_ENVIRONMENTSIMPLEENVIRONMENT_H
25
25
 
26
 
#include "Environment.h"
27
 
 
 
26
#include "IEnvironmentProvider.h"
28
27
 
29
28
namespace Ogre
30
29
{
31
30
class SceneManager;
32
31
class RenderWindow;
33
32
class Camera;
 
33
class Light;
34
34
}
35
35
 
36
 
namespace Ember {
37
 
namespace OgreView {
 
36
namespace Ember
 
37
{
 
38
namespace OgreView
 
39
{
38
40
 
39
 
namespace Environment {
 
41
namespace Environment
 
42
{
40
43
 
41
44
/**
42
 
A very simple sun which always will return the same direction.
43
 
*/
44
 
class SimpleSun : public ISun
 
45
 A very simple sun which always will return the same direction.
 
46
 */
 
47
class SimpleSun: public ISun
45
48
{
46
49
public:
47
50
        SimpleSun(Ogre::SceneManager *sceneMgr);
56
59
};
57
60
 
58
61
/**
59
 
A very simple sky which won't do anything currently.
60
 
*/
61
 
class SimpleSky : public ISky
 
62
 A very simple sky which won't do anything currently.
 
63
 */
 
64
class SimpleSky: public ISky
62
65
{
63
66
public:
64
67
protected:
65
68
};
66
69
 
67
70
/**
68
 
A very simple fog which will always return a density of 1.0
69
 
*/
70
 
class SimpleFog : public IFog
 
71
 A very simple fog which will always return a density of 1.0
 
72
 */
 
73
class SimpleFog: public IFog
71
74
{
72
75
public:
73
76
        SimpleFog(Ogre::SceneManager *sceneMgr);
78
81
 
79
82
class Water;
80
83
 
81
 
 
82
 
 
83
84
/**
84
 
        @author Erik Hjortsberg <erik.hjortsberg@gmail.com>
85
 
        
86
 
        A very simple environment which can be used as a fallback environment if a more advanced environment fails to load.
87
 
*/
88
 
class SimpleEnvironment : public IEnvironmentProvider
 
85
 @author Erik Hjortsberg <erik.hjortsberg@gmail.com>
 
86
 
 
87
 A very simple environment which can be used as a fallback environment if a more advanced environment fails to load.
 
88
 */
 
89
class SimpleEnvironment: public IEnvironmentProvider
89
90
{
90
91
public:
91
 
    SimpleEnvironment(Ogre::SceneManager *sceneMgr, Ogre::RenderWindow* window, Ogre::Camera& camera);
92
 
 
93
 
    virtual ~SimpleEnvironment();
94
 
    
95
 
        virtual void createEnvironment();
 
92
        SimpleEnvironment(Ogre::SceneManager *sceneMgr, Ogre::RenderWindow* window, Ogre::Camera& camera);
 
93
 
 
94
        virtual ~SimpleEnvironment();
 
95
 
 
96
        virtual void createFirmament();
 
97
        virtual void destroyFirmament();
 
98
 
 
99
        void setWaterEnabled(bool enabled);
96
100
 
97
101
        virtual ISun* getSun();
98
102
        virtual ISky* getSky();
99
103
        virtual IFog* getFog();
100
104
        virtual IWater* getWater();
101
105
 
102
 
    virtual void setTime(int hour, int minute, int second = 0);
 
106
        virtual void setTime(int hour, int minute, int second = 0);
103
107
        virtual void setTime(int seconds);
104
 
        
 
108
 
105
109
        virtual void setTimeMultiplier(float multiplier);
106
110
 
107
111
        virtual float getTimeMultiplier() const;
112
116
         * @param latitudeDegrees The latitude, as degrees.
113
117
         */
114
118
        virtual void setWorldPosition(float longitudeDegrees, float latitudeDegrees);
115
 
        
 
119
 
116
120
protected:
117
121
        Ogre::SceneManager *mSceneMgr;
118
122
        Ogre::RenderWindow* mWindow;
119
123
        Ogre::Camera& mCamera;
120
 
        
 
124
 
121
125
        SimpleSun* mSun;
122
126
        SimpleSky* mSky;
123
127
        SimpleFog* mFog;