Sha256: 687b6ff83de7e9263aa8139e83514ef8e00d3df7b461d5bca9239411dc81a958

Contents?: true

Size: 651 Bytes

Versions: 1

Compression:

Stored size: 651 Bytes

Contents

#!/usr/bin/env ruby -w
# Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved.
# License: Ruby License

require File.dirname(__FILE__) + '/test_helper.rb'

if $0 == __FILE__
class TestOpenGLNovice < Test::Unit::TestCase
  def test_1st
    window 100, 100
    useRuntime(0.1)
    for i in 0..20
      line 0, 0, 100, i*2*5
      flip
    end
    wait
  end

  def test_2nd
    window 400, 400
    useRuntime(0.1)
    useSmooth
    process {
      mx = mouseX
      my = mouseY
      push
      translate mx, my
      colorHSV(-mx+60, my, 100)
      rect 0, 0, 100, 100
      pop
      flip
    }
  end
end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-1.0.0 test/test_opengl_novice.rb