raytracer
Parallel Ray Tracer written from scratch (no graphics API).
Loading...
Searching...
No Matches
raytracer::raytracer::Renderer Class Reference

#include <renderer.h>

Public Member Functions

common::Image render (const RayTracerSceneConfig &scene, std::ostream &out=common::get_nullout(), int number_of_threads=static_cast< int >(std::max(1U, std::thread::hardware_concurrency())))

Member Function Documentation

◆ render()

common::Image raytracer::raytracer::Renderer::render ( const RayTracerSceneConfig & scene,
std::ostream & out = common::get_nullout(),
int number_of_threads = static_cast<int>(std::max(1U, std::thread::hardware_concurrency())) )

Render the 3D scene to an image given a configuration.

Parameters
sceneThe object containing the details of the scene (objects, etc.).
outThe std::ostream to which to write rendering progress updates (defaults to none).
number_of_threadsThe number of parallel threads used for rendering.
Returns
The rendered image.
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: