Class: Ogre::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/application.rb

Overview

Any of the protected methods in this class are free for overriding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApplication

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

#cameraObject

Returns the value of attribute camera.



41
42
43
# File 'lib/application.rb', line 41

def camera
  @camera
end

#frame_listenerObject

Returns the value of attribute frame_listener.



41
42
43
# File 'lib/application.rb', line 41

def frame_listener
  @frame_listener
end

#rootObject

Returns the value of attribute root.



41
42
43
# File 'lib/application.rb', line 41

def root
  @root
end

#scene_managerObject

Returns the value of attribute scene_manager.



41
42
43
# File 'lib/application.rb', line 41

def scene_manager
  @scene_manager
end

#windowObject

Returns the value of attribute window.



41
42
43
# File 'lib/application.rb', line 41

def window
  @window
end

Instance Method Details

#goObject

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