commit 15c7a495a60062811aafd7907b6efb0cacc99842 parent 90537ede1cb0df4e13cbae9b5f6cae9669168a45 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Mon, 10 Oct 2016 09:48:07 +0200 Updates and add some comments Diffstat:
| M | src/ssol_object_c.h | | | 2 | +- |
| M | src/ssol_scene_c.h | | | 11 | +++++++---- |
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/ssol_object_c.h b/src/ssol_object_c.h @@ -26,7 +26,7 @@ struct shaded_shape { struct ssol_material* mtl_front; /* Material of the back faces */ }; -/* Define the darray_shaded_shapedata structure */ +/* Define the darray_shaded_shape data structure */ #define DARRAY_NAME shaded_shape #define DARRAY_DATA struct shaded_shape #include <rsys/dynamic_array.h> diff --git a/src/ssol_scene_c.h b/src/ssol_scene_c.h @@ -36,12 +36,15 @@ struct ssol_scene; struct ssol_sun; struct ssol_scene { + /* Map the instantiated RT/Samp S3D shape id to its SSOL intrance */ struct htable_instance instances_rt; struct htable_instance instances_samp; - struct s3d_scene* scn_rt; - struct s3d_scene* scn_samp; - struct ssol_sun* sun; - struct ssol_atmosphere* atmosphere; + + struct s3d_scene* scn_rt; /* S3D scene to ray trace */ + struct s3d_scene* scn_samp; /* S3D scene to sample */ + + struct ssol_sun* sun; /* Sun of the scene */ + struct ssol_atmosphere* atmosphere; /* Atmosphere of the scene */ struct ssol_device* dev; ref_T ref;