Sha256: 55e495bae631c65cae0eced1c5723937ad74264ddd7ad91c1b2d793ff6492571

Contents?: true

Size: 771 Bytes

Versions: 27

Compression:

Stored size: 771 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

module Cosmos

  class GlViewport
    attr_accessor :left
    attr_accessor :right
    attr_accessor :top
    attr_accessor :bottom
    attr_accessor :hither
    attr_accessor :yon
    attr_accessor :w
    attr_accessor :h

    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
  end # class Viewport

end # module Cosmos

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
cosmos-3.9.2 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.9.1 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.8.3 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.8.2 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.8.1 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.8.0 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.7.1 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.7.0 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.6.3 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.6.2 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.6.1 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.6.0 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.5.3 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.5.2 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.5.0 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.4.2 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.4.1 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.4.0 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.3.3 lib/cosmos/gui/opengl/gl_viewport.rb
cosmos-3.3.2 lib/cosmos/gui/opengl/gl_viewport.rb