Sha256: 01990a4fa20cf773776ea2969e8198e2f8220a7fa267eba2b592366c00134f94

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 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'

class TestOpenGLFullscreen < Test::Unit::TestCase
  def test_all
    app = SGL::Application.new
    app.set_setup {
      app.useFullscreen(1024, 768)
      app.window(100, 100)
      app.runtime = 0.1
    }
    @i = 0
    app.set_display {
      app.line(0, 0, 100, @i*5)
      @i += 2
      @i = 0 if 20 < @i
    }
    app.mainloop
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-1.0.0 test/test_opengl_fullscreen.rb