Class: Rgltf::Validation::ImagesMaterials
- Defined in:
- lib/rgltf/validation/images_materials.rb
Constant Summary collapse
- IMAGE_SIGNATURES =
{ 'image/png' => "\x89PNG\r\n\x1A\n".b, 'image/jpeg' => "\xFF\xD8\xFF".b, 'image/webp' => 'RIFF'.b, 'image/ktx2' => "\xABKTX 20\xBB\r\n\x1A\n".b }.freeze
- FILTERS =
[9728, 9729, 9984, 9985, 9986, 9987].freeze
- WRAPS =
[33_071, 33_648, 10_497].freeze
Instance Method Summary collapse
Methods inherited from Rule
Constructor Details
This class inherits a constructor from Rgltf::Validation::Rule
Instance Method Details
#validate ⇒ Object
15 16 17 18 19 20 |
# File 'lib/rgltf/validation/images_materials.rb', line 15 def validate validate_images validate_samplers validate_textures array('materials').each_with_index { |raw, index| validate_material(object(raw, "materials/#{index}"), index) } end |