Class: Cosmos::EarthModel
- Inherits:
-
TextureMappedSphere
- Object
- GlShape
- TextureMappedSphere
- Cosmos::EarthModel
- Defined in:
- lib/cosmos/gui/opengl/earth_model.rb
Instance Attribute Summary
Attributes inherited from GlShape
#base_color, #click_handler, #color, #doubleclick_handler, #dragable, #position, #rotation_x, #rotation_y, #rotation_z, #tipText
Instance Method Summary collapse
-
#initialize(x, y, z) ⇒ EarthModel
constructor
A new instance of EarthModel.
Methods inherited from TextureMappedSphere
#draw_triangle, #drawshape, #export, #gen_tex_coords, #normalize, #subdivide_triangle
Methods inherited from GlShape
#drag, #draw, #drawshape, #export, #handle_click, #handle_doubleclick, #hit, #identify
Constructor Details
#initialize(x, y, z) ⇒ EarthModel
Returns a new instance of EarthModel.
17 18 19 |
# File 'lib/cosmos/gui/opengl/earth_model.rb', line 17 def initialize(x, y, z) super(x, y, z, File.join(::Cosmos::PATH, 'data', 'EarthMap1024x512.gif')) end |