Class: PBRT::Signature

Inherits:
Object
  • Object
show all
Defined in:
lib/pbrt/signature.rb

Constant Summary collapse

TYPES =
%i(
  integer float point2 vector2 point3
  vector3 normal3 spectrum bool string
  texture float_texture spectrum_texture
)

Instance Method Summary collapse

Constructor Details

#initialize(names_and_types) ⇒ Signature

Returns a new instance of Signature.



9
10
11
12
13
# File 'lib/pbrt/signature.rb', line 9

def initialize(names_and_types)
  @names_and_types = names_and_types

  check_for_known_types
end

Instance Method Details

#check(params) ⇒ Object



15
16
17
# File 'lib/pbrt/signature.rb', line 15

def check(params)
  check_for_surplus(params)
end