Sha256: e78b3769f2c381129aa2786054f46f0c0353e5b02e66c322665f476d19404a16

Contents?: true

Size: 840 Bytes

Versions: 25

Compression:

Stored size: 840 Bytes

Contents

# encoding: ascii-8bit

# Copyright 2014 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt

require 'cosmos'
require 'cosmos/gui/opengl/texture_mapped_sphere'

module Cosmos
  # Three dimensional model of the earth by mapping a picture of the earth onto
  # a sphere.
  class EarthModel < TextureMappedSphere
    # @param x (see TextureMappedSphere#initialize)
    # @param y (see TextureMappedSphere#initialize)
    # @param z (see TextureMappedSphere#initialize)
    def initialize(x, y, z)
      super(x, y, z, File.join(::Cosmos::PATH, 'data', 'EarthMap1024x512.gif'))
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
cosmos-4.3.0-java lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.3.0 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.4-java lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.4 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.3-java lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.3 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.2-java lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.2 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.1-java lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.1 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.0-java lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.2.0 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.1.1-java lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.1.1 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.1.0-java lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.1.0 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.0.3-java lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.0.3-universal-java-1.8 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.0.3 lib/cosmos/gui/opengl/earth_model.rb
cosmos-4.0.2-universal-java-1.8 lib/cosmos/gui/opengl/earth_model.rb