hermespy-rt

Minimalistic signal processing ray-tracer in C
git clone https://git.ea.contact/hermespy-rt
Log | Files | Refs

materials.h (882B)


      1 #ifndef MATERIALS_H
      2 #define MATERIALS_H
      3 
      4 #include "scene.h" /* for Material */
      5 
      6 #include <stdint.h> /* for uint32_t */
      7 #include <string.h> /* for strncmp */
      8 
      9 /* number of defined materials */
     10 #define NUM_G_MATERIALS 17
     11 extern Material g_materials[NUM_G_MATERIALS];
     12 typedef enum {
     13   MATERIAL_AIR = 0,
     14   MATERIAL_CONCRETE = 1,
     15   MATERIAL_BRICK = 2,
     16   MATERIAL_PLASTERBOARD = 3,
     17   MATERIAL_WOOD = 4,
     18   MATERIAL_GLASS1 = 5,
     19   MATERIAL_GLASS2 = 6,
     20   MATERIAL_CEILING_BOARD1 = 7,
     21   MATERIAL_CEILING_BOARD2 = 8,
     22   MATERIAL_CHIPBOARD = 9,
     23   MATERIAL_PLYWOOD = 10,
     24   MATERIAL_MARBLE = 11,
     25   MATERIAL_FLOORBOARD = 12,
     26   MATERIAL_METAL = 13,
     27   MATERIAL_VERY_DRY_GROUND = 14,
     28   MATERIAL_MEDIUM_DRY_GROUND = 15,
     29   MATERIAL_WET_GROUND = 16
     30 } MaterialIndex;
     31 
     32 /** Get the material index from the material name */
     33 extern MaterialIndex get_material_index(const char *name);
     34 
     35 #endif /* MATERIALS_H */