commit 25fd1eab65a4b88d38b47470a2fed98d251d401b
parent 712ff5381ea3581c5166104fba27714b997bc3e3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 24 Jun 2016 09:47:46 +0200
Add the ssol_object_instance_set_receiver_image function
Diffstat:
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/ssol.h b/src/ssol.h
@@ -60,6 +60,11 @@ enum ssol_pixel_format {
SSOL_PIXEL_FORMAT_COUNT__
};
+enum ssol_parametrization_type {
+ SSOL_PARAMETRIZATION_TEXCOORD, /* Map from 3D to 2D with texcoord */
+ SSOL_PARAMETRIZATION_PRIMITIVE_ID /* Map from 3D to 1D with primitive id */
+};
+
enum ssol_quadric_type {
SSOL_QUADRIC_PLANE,
SSOL_QUADRIC_PARABOL,
@@ -349,14 +354,14 @@ ssol_object_instance_set_transform
(struct ssol_object_instance* instance,
const double transform[]); /* 3x4 column major matrix */
-/* Rely on the parametrisation of the object instance */
SSOL_API res_T
-ssol_object_instance_set_receiver_map
+ssol_object_instance_set_receiver_image
(struct ssol_object_instance* instance,
- const size_t width, const size_t height); /* Map definition */
+ struct ssol_image* image,
+ const enum ssol_parametrization_type type);
/*******************************************************************************
- * Spectrum API - Collection of wavelength with its associated data.
+ * Spectrum API - Collection of wavelengths with their associated data.
******************************************************************************/
SSOL_API res_T
ssol_spectrum_create