|
Fermat
|
A class encpasulating the entire rendering context
#include <renderer.h>
Public Types | |
| typedef std::shared_ptr< MipMapStorage< HOST_BUFFER > > | HostMipMapStoragePtr |
| typedef std::shared_ptr< MipMapStorage< CUDA_BUFFER > > | DeviceMipMapStoragePtr |
| RenderingContext::RenderingContext | ( | ) |
constructor
| void RenderingContext::clamp_frame | ( | const float | max_value | ) |
clamp the output framebuffer to a given maximum
| max_value |
| void RenderingContext::clear | ( | ) |
clear all framebuffers
| cugar::Bbox3f RenderingContext::compute_bbox | ( | ) |
compute the scene's bbox
| void RenderingContext::filter | ( | const uint32 | instance | ) |
perform filtering
| instance | the sequence instance / frame number in a progressive render |
| float RenderingContext::get_aspect_ratio | ( | ) | const |
return the target aspect ratio
| Camera& RenderingContext::get_camera | ( | ) |
return the camera
| const DirectionalLight* RenderingContext::get_device_directional_lights | ( | ) | const |
return the device-side directional lights
| DeviceMeshStorage& RenderingContext::get_device_mesh | ( | ) |
return the scene's device-side mesh
| uint8* RenderingContext::get_device_rgba_buffer | ( | ) |
return the frame buffer
| MipMapView* RenderingContext::get_device_texture_views | ( | ) |
return the scene's device-side textures
| DeviceMipMapStoragePtr* RenderingContext::get_device_textures | ( | ) |
return the scene's device-side textures
| uint32 RenderingContext::get_directional_light_count | ( | ) | const |
return the directional light count
| float RenderingContext::get_exposure | ( | ) | const |
return the target exposure
| FBufferStorage& RenderingContext::get_frame_buffer | ( | ) |
return the frame buffer
| float RenderingContext::get_gamma | ( | ) | const |
return the target gamma
| const DirectionalLight* RenderingContext::get_host_directional_lights | ( | ) | const |
return the host-side directional lights
| MeshStorage& RenderingContext::get_host_mesh | ( | ) |
return the scene's host-side mesh
| MipMapView* RenderingContext::get_host_texture_views | ( | ) |
return the scene's host-side textures
| HostMipMapStoragePtr* RenderingContext::get_host_textures | ( | ) |
return the scene's host-side textures
| MeshLightsStorage& RenderingContext::get_mesh_lights | ( | ) |
return the scene's device-side mesh emitters
| RendererInterface* RenderingContext::get_renderer | ( | ) | const |
return the renderer
| uint2 RenderingContext::get_res | ( | ) | const |
return the target resolution
| RTContext* RenderingContext::get_rt_context | ( | ) | const |
return the ray tracing context
| TiledSequence& RenderingContext::get_sequence | ( | ) |
return the sampling sequence
| ShadingMode& RenderingContext::get_shading_mode | ( | ) |
return the shading mode
| uint32 RenderingContext::get_texture_count | ( | ) | const |
return the number of textures
| void RenderingContext::init | ( | int | argc, |
| char ** | argv | ||
| ) |
initialize the renderer
| void RenderingContext::multiply_frame | ( | const float | scale | ) |
rescale the output framebuffer by a constant
| uint32 RenderingContext::register_renderer | ( | const char * | name, |
| RendererFactoryFunction | factory | ||
| ) |
register a new rendering interface type
| void RenderingContext::render | ( | const uint32 | instance | ) |
render a frame
| instance | the sequence instance / frame number in a progressive render |
| uint2 RenderingContext::res | ( | ) | const |
return the current output resolution
| void RenderingContext::rescale_frame | ( | const uint32 | instance | ) |
rescale the output framebuffer by n/(n-1)
| instance | the sequence instance / frame number in a progressive render, used for rescaling |
| void RenderingContext::set_aspect_ratio | ( | const float | v | ) |
set the target exposure
| void RenderingContext::set_directional_light | ( | const uint32 | i, |
| const DirectionalLight & | light | ||
| ) |
set a directional light
| void RenderingContext::set_directional_light_count | ( | const uint32 | count | ) |
set the number of directional lights
| void RenderingContext::set_exposure | ( | const float | v | ) |
set the target exposure
| void RenderingContext::set_gamma | ( | const float | v | ) |
set the target gamma
| void RenderingContext::update_model | ( | ) |
update the internal data-structures (e.g. BVHs) associated to the geometry
| void RenderingContext::update_variances | ( | const uint32 | instance | ) |
update the variance estimates
| instance | the sequence instance / frame number in a progressive render, used for rescaling |
| RenderingContextView RenderingContext::view | ( | const uint32 | instance | ) |
return a view of the renderer
1.8.13