test/test_opengl_fullscreen.rb in sgl-0.3.1 vs test/test_opengl_fullscreen.rb in sgl-0.4.0
- old
+ new
@@ -1,19 +1,17 @@
#!/usr/bin/env ruby -w
-# Copyright (C) 2004-2005 Kouichirou Eto, All rights reserved.
+# Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved.
+# License: Ruby License
-$LOAD_PATH.unshift("..") if !$LOAD_PATH.include?("..")
-require "sgl/opengl"
-require "test/unit"
+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.useFullscreen(640, 480)
app.window(100, 100)
- app.runtime = 10.1
+ app.runtime = 0.1
}
@i = 0
app.set_display {
app.line(0, 0, 100, @i*5)
@i += 2