Class: Gosu::AndroidInitializer
- Inherits:
-
Object
- Object
- Gosu::AndroidInitializer
- Includes:
- Singleton
- Defined in:
- lib/gosu_android/main-window.rb
Instance Attribute Summary collapse
-
#activity ⇒ Object
readonly
Returns the value of attribute activity.
-
#graphics ⇒ Object
readonly
Returns the value of attribute graphics.
-
#surface_view ⇒ Object
readonly
Returns the value of attribute surface_view.
Instance Method Summary collapse
Instance Attribute Details
#activity ⇒ Object (readonly)
Returns the value of attribute activity.
20 21 22 |
# File 'lib/gosu_android/main-window.rb', line 20 def activity @activity end |
#graphics ⇒ Object (readonly)
Returns the value of attribute graphics.
19 20 21 |
# File 'lib/gosu_android/main-window.rb', line 19 def graphics @graphics end |
#surface_view ⇒ Object (readonly)
Returns the value of attribute surface_view.
19 20 21 |
# File 'lib/gosu_android/main-window.rb', line 19 def surface_view @surface_view end |
Instance Method Details
#on_ready ⇒ Object
32 33 34 |
# File 'lib/gosu_android/main-window.rb', line 32 def on_ready @activity.on_ready end |
#start(activity) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/gosu_android/main-window.rb', line 22 def start activity activity.toast 'Still loading please wait' @activity = activity @surface_view = GosuSurfaceView.new(@activity) @graphics = Graphics.new(self) @surface_view.renderer = @graphics @activity.content_view = @surface_view activity.toast 'Still loading please wait' end |