Class: Cosmos::MoonModel

Inherits:
TextureMappedSphere show all
Defined in:
lib/cosmos/gui/opengl/moon_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

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) ⇒ MoonModel

Returns a new instance of MoonModel.



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

def initialize(x, y, z)
  super(x, y, z, File.join(::Cosmos::PATH, 'data', 'moonmap1k.gif'))
end