Sha256: 7cce2ae9a02ac5e0dbc9543b0176e48a16e77f45697e64a2bfba867fcdca1622

Contents?: true

Size: 867 Bytes

Versions: 38

Compression:

Stored size: 867 Bytes

Contents

require 'test/unit'

require 'fox16'

include Fox

class TC_FXLight < Test::Unit::TestCase
  def setup
    @light = FXLight.new
  end
  def testAttributes
    assert(@light.ambient)
    assert_kind_of(FXVec4f, @light.ambient)
    assert(@light.diffuse)
    assert_kind_of(FXVec4f, @light.diffuse)
    assert(@light.specular)
    assert_kind_of(FXVec4f, @light.specular)
    assert(@light.position)
    assert_kind_of(FXVec4f, @light.position)
    assert(@light.direction)
    assert_kind_of(FXVec3f, @light.direction)
    assert(@light.exponent)
    assert_kind_of(Float, @light.exponent)
    assert(@light.cutoff)
    assert_kind_of(Float, @light.cutoff)
    assert(@light.c_attn)
    assert_kind_of(Float, @light.c_attn)
    assert(@light.l_attn)
    assert_kind_of(Float, @light.l_attn)
    assert(@light.q_attn)
    assert_kind_of(Float, @light.q_attn)
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
fxruby-1.6.20-x86-mingw32 test/TC_FXLight.rb
fxruby-1.6.20-x86-linux test/TC_FXLight.rb
fxruby-1.6.20 test/TC_FXLight.rb
fxruby-1.6.20-universal-darwin-10 test/TC_FXLight.rb
fxruby-1.6.19-x86-mingw32 tests/TC_FXLight.rb
fxruby-1.6.14-mswin32 tests/TC_FXLight.rb
fxruby-1.6.13-mswin32 tests/TC_FXLight.rb
fxruby-1.6.0 tests/TC_FXLight.rb
fxruby-1.6.1 tests/TC_FXLight.rb
fxruby-1.6.11 tests/TC_FXLight.rb
fxruby-1.6.10 tests/TC_FXLight.rb
fxruby-1.6.12 tests/TC_FXLight.rb
fxruby-1.6.13 tests/TC_FXLight.rb
fxruby-1.6.14-universal-darwin-9 tests/TC_FXLight.rb
fxruby-1.6.14 tests/TC_FXLight.rb
fxruby-1.6.15-universal-darwin-9 tests/TC_FXLight.rb
fxruby-1.6.15-x86-mswin32-60 tests/TC_FXLight.rb
fxruby-1.6.15 tests/TC_FXLight.rb
fxruby-1.6.16-universal-darwin-9 tests/TC_FXLight.rb
fxruby-1.6.16-x86-mswin32-60 tests/TC_FXLight.rb