RenderKit / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization
http://ospray.org
Apache License 2.0
997 stars 182 forks source link

Templated ospSetParam documentation #414

Closed pauljurczak closed 4 years ago

pauljurczak commented 4 years ago

Change log for v2.0.0 reads: "Type-specific parameter setting functions have been consolidated into a single ospSetParam API call". I don't see templated ospSetParam in documentation at https://www.ospray.org/documentation.html#parameters

paulmelis commented 4 years ago

I think that's because the API docs describe the C API, while the templated version is (obviously) only present in the C++ wrapper.

pauljurczak commented 4 years ago

Is C++ wrapper documented somewhere?

paulmelis commented 4 years ago

Don’t think so, but the C++ examples plus ospray_cpp headers should give enough information. The API names aren’t that different.

johguenther commented 4 years ago

The documentation link https://www.ospray.org/documentation.html#parameters points exactly to the C99 version of the single ospSetParam function: instead of a template argument that function takes an OSPDataType parameter plus the (void) pointer to the variable. (up to v1.8 we had a zoo of set param functions, one for each type, like ospSetFloat, ospSetVec3i, ...)