Class: Cosmos::GlViewport
- Defined in:
- lib/cosmos/gui/opengl/gl_viewport.rb
Instance Attribute Summary collapse
-
#bottom ⇒ Object
Returns the value of attribute bottom.
-
#h ⇒ Object
Returns the value of attribute h.
-
#hither ⇒ Object
Returns the value of attribute hither.
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
-
#top ⇒ Object
Returns the value of attribute top.
-
#w ⇒ Object
Returns the value of attribute w.
-
#yon ⇒ Object
Returns the value of attribute yon.
Instance Method Summary collapse
-
#initialize ⇒ GlViewport
constructor
A new instance of GlViewport.
Constructor Details
#initialize ⇒ GlViewport
Returns a new instance of GlViewport.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 23 def initialize @left=-1.0; @right=1.0; @top=1.0; @bottom=-1.0; @hither=0.1; @yon=1.0; @w=100; @h=100; end |
Instance Attribute Details
#bottom ⇒ Object
Returns the value of attribute bottom.
17 18 19 |
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 17 def bottom @bottom end |
#h ⇒ Object
Returns the value of attribute h.
21 22 23 |
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 21 def h @h end |
#hither ⇒ Object
Returns the value of attribute hither.
18 19 20 |
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 18 def hither @hither end |
#left ⇒ Object
Returns the value of attribute left.
14 15 16 |
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 14 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
15 16 17 |
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 15 def right @right end |
#top ⇒ Object
Returns the value of attribute top.
16 17 18 |
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 16 def top @top end |
#w ⇒ Object
Returns the value of attribute w.
20 21 22 |
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 20 def w @w end |
#yon ⇒ Object
Returns the value of attribute yon.
19 20 21 |
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 19 def yon @yon end |