Sha256: 14255853db4d7cfefb3f48cc479cd4ba61ce328cd02d5f08c3fcbe3bebc3fbde

Contents?: true

Size: 869 Bytes

Versions: 104

Compression:

Stored size: 869 Bytes

Contents

require 'test/unit'

require 'fox16'

class TC_FXLight < Test::Unit::TestCase
  include Fox

  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

104 entries across 104 versions & 2 rubygems

Version Path
fxruby-1.6.48 test/TC_FXLight.rb
fxruby-1.6.48-x64-mingw32 test/TC_FXLight.rb
fxruby-1.6.48-x64-mingw-ucrt test/TC_FXLight.rb
fxruby-1.6.48-x86-mingw32 test/TC_FXLight.rb
fxruby-1.6.47 test/TC_FXLight.rb
fxruby-1.6.47-x64-mingw-ucrt test/TC_FXLight.rb
fxruby-1.6.47-x64-mingw32 test/TC_FXLight.rb
fxruby-1.6.47-x86-mingw32 test/TC_FXLight.rb
fxruby-1.6.46 test/TC_FXLight.rb
fxruby-1.6.46-x64-mingw32 test/TC_FXLight.rb
fxruby-1.6.46-x64-mingw-ucrt test/TC_FXLight.rb
fxruby-1.6.46-x86-mingw32 test/TC_FXLight.rb
fxruby-1.6.45 test/TC_FXLight.rb
fxruby-1.6.45-x64-mingw32 test/TC_FXLight.rb
fxruby-1.6.45-x64-mingw-ucrt test/TC_FXLight.rb
fxruby-1.6.45-x86-mingw32 test/TC_FXLight.rb
fxruby-1.6.44 test/TC_FXLight.rb
fxruby-1.6.44-x64-mingw32 test/TC_FXLight.rb
fxruby-1.6.44-x86-mingw32 test/TC_FXLight.rb
fxruby-1.6.43 test/TC_FXLight.rb