Class: Ogre::Application
- Inherits:
-
Object
- Object
- Ogre::Application
- Defined in:
- lib/application.rb
Overview
Any of the protected methods in this class are free for overriding.
Instance Attribute Summary collapse
-
#camera ⇒ Object
Returns the value of attribute camera.
-
#frame_listener ⇒ Object
Returns the value of attribute frame_listener.
-
#root ⇒ Object
Returns the value of attribute root.
-
#scene_manager ⇒ Object
Returns the value of attribute scene_manager.
-
#window ⇒ Object
Returns the value of attribute window.
Instance Method Summary collapse
-
#go ⇒ Object
This starts off everything.
-
#initialize ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
43 44 45 46 |
# File 'lib/application.rb', line 43 def initialize @frame_listener = nil @root = nil end |
Instance Attribute Details
#camera ⇒ Object
Returns the value of attribute camera.
41 42 43 |
# File 'lib/application.rb', line 41 def camera @camera end |
#frame_listener ⇒ Object
Returns the value of attribute frame_listener.
41 42 43 |
# File 'lib/application.rb', line 41 def frame_listener @frame_listener end |
#root ⇒ Object
Returns the value of attribute root.
41 42 43 |
# File 'lib/application.rb', line 41 def root @root end |
#scene_manager ⇒ Object
Returns the value of attribute scene_manager.
41 42 43 |
# File 'lib/application.rb', line 41 def scene_manager @scene_manager end |
#window ⇒ Object
Returns the value of attribute window.
41 42 43 |
# File 'lib/application.rb', line 41 def window @window end |
Instance Method Details
#go ⇒ Object
This starts off everything.
49 50 51 52 53 54 55 56 57 |
# File 'lib/application.rb', line 49 def go return unless setup @root.start_rendering destroy_scene @frame_listener.shutdown end |