Class: Joyce::NullWindow

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, width: 800, height: 600) ⇒ NullWindow



73
74
75
76
# File 'lib/joyce.rb', line 73

def initialize(app, width: 800, height: 600)
  # p [ :created_null_window, provided_dimensions: [ width, height ] ]
  @app = app
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



72
73
74
# File 'lib/joyce.rb', line 72

def app
  @app
end

Instance Method Details

#draw_quadObject



83
84
85
86
# File 'lib/joyce.rb', line 83

def draw_quad(*)
  # p [ :null_window, :draw_quad ]
  self
end

#showObject



78
79
80
81
# File 'lib/joyce.rb', line 78

def show
  app.tick
  false
end