Advertisement
alexanius

POV-Ray object model

Jun 6th, 2017
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. /* These fields are common to all objects. */
  2.  
  3. #define OBJECT_FIELDS        \
  4.   METHODS *Methods;          \
  5.   int Type;                  \
  6.   OBJECT *Sibling;           \
  7.   TEXTURE *Texture;          \
  8.   TEXTURE *Interior_Texture; \
  9.   INTERIOR *Interior;        \
  10.   OBJECT *Bound;             \
  11.   OBJECT *Clip;              \
  12.   LIGHT_SOURCE *LLights;     \
  13.   BBOX BBox;                 \
  14.   TRANSFORM *Trans;          \
  15.   TRANSFORM *UV_Trans;       \
  16.   SNGL Ph_Density;           \
  17.   unsigned int Flags;
  18.  
  19. /* These fields are common to all compound objects */
  20.  
  21. #define COMPOUND_FIELDS \
  22.   OBJECT_FIELDS         \
  23.   OBJECT *Children;
  24.  
  25. // ...
  26.  
  27. struct Object_Struct
  28. {
  29.   OBJECT_FIELDS
  30. };
  31.  
  32. struct Compound_Object_Struct
  33. {
  34.   COMPOUND_FIELDS
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement