Class: Joyce::NullWindow
- Inherits:
-
Object
- Object
- Joyce::NullWindow
- Defined in:
- lib/joyce.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #draw_quad ⇒ Object
-
#initialize(app, width: 800, height: 600) ⇒ NullWindow
constructor
A new instance of NullWindow.
- #show ⇒ Object
Constructor Details
#initialize(app, width: 800, height: 600) ⇒ NullWindow
Returns a new instance of NullWindow.
51 52 53 54 |
# File 'lib/joyce.rb', line 51 def initialize(app, width: 800, height: 600) # p [ :created_null_window, provided_dimensions: [ width, height ] ] @app = app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
50 51 52 |
# File 'lib/joyce.rb', line 50 def app @app end |
Instance Method Details
#draw_quad ⇒ Object
61 62 63 64 |
# File 'lib/joyce.rb', line 61 def draw_quad(*) # p [ :null_window, :draw_quad ] self end |
#show ⇒ Object
56 57 58 59 |
# File 'lib/joyce.rb', line 56 def show app.tick false end |