Class: Cosmos::GlViewport

Inherits:
Object show all
Defined in:
lib/cosmos/gui/opengl/gl_viewport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGlViewport

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

#bottomObject

Returns the value of attribute bottom.



17
18
19
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 17

def bottom
  @bottom
end

#hObject

Returns the value of attribute h.



21
22
23
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 21

def h
  @h
end

#hitherObject

Returns the value of attribute hither.



18
19
20
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 18

def hither
  @hither
end

#leftObject

Returns the value of attribute left.



14
15
16
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 14

def left
  @left
end

#rightObject

Returns the value of attribute right.



15
16
17
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 15

def right
  @right
end

#topObject

Returns the value of attribute top.



16
17
18
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 16

def top
  @top
end

#wObject

Returns the value of attribute w.



20
21
22
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 20

def w
  @w
end

#yonObject

Returns the value of attribute yon.



19
20
21
# File 'lib/cosmos/gui/opengl/gl_viewport.rb', line 19

def yon
  @yon
end