The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
Classes
dc Namespace Reference

Dirtchamber shared code. More...

Classes

class  common_renderer
 A common, simple deferred renderer. More...
 
class  rsm_renderer
 A common_renderer also rendering an RSM. More...
 

Functions

void CALLBACK on_releasing_swap_chain (void *pUserContext)
 Default implementation of DXUT callbacks common to all render samples. More...
 
bool CALLBACK on_modify_device (DXUTDeviceSettings *settings, void *user_context)
 Default implementation of DXUT callbacks common to all render samples. More...
 
void CALLBACK on_render (ID3D11Device *device, ID3D11DeviceContext *context, double fTime, float fElapsedTime, void *pUserContext)
 Default implementation of DXUT callbacks common to all render samples. More...
 
HRESULT CALLBACK on_resize (ID3D11Device *pd3dDevice, IDXGISwapChain *pSwapChain, const DXGI_SURFACE_DESC *pBackBufferSurfaceDesc, void *pUserContext)
 Default implementation of DXUT callbacks common to all render samples. More...
 
void CALLBACK on_frame_move (double fTime, float fElapsedTime, void *pUserContext)
 Default implementation of DXUT callbacks common to all render samples. More...
 
LRESULT CALLBACK on_msg (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, bool *pbNoFurtherProcessing, void *pUserContext)
 Default implementation of DXUT callbacks common to all render samples. More...
 
void CALLBACK on_destroy_device (void *pUserContext)
 Default implementation of DXUT callbacks common to all render samples. More...
 
void CALLBACK on_keyboard (UINT nChar, bool bKeyDown, bool bAltDown, void *pUserContext)
 Default implementation of DXUT callbacks common to all render samples. More...
 
void CALLBACK on_gui_event (UINT nEvent, int nControlID, CDXUTControl *pControl, void *pUserContext)
 Default implementation of DXUT callbacks common to all render samples. More...
 

Detailed Description

Dirtchamber shared code.

Function Documentation

void CALLBACK dc::on_destroy_device ( void *  pUserContext)

Default implementation of DXUT callbacks common to all render samples.

All render samples share common DXUT function callbacks which use identlical code. They all refer to a common_renderer pointer the_renderer which represents the main implementation and which must be set when initializing the sample

void CALLBACK dc::on_frame_move ( double  fTime,
float  fElapsedTime,
void *  pUserContext 
)

Default implementation of DXUT callbacks common to all render samples.

All render samples share common DXUT function callbacks which use identlical code. They all refer to a common_renderer pointer the_renderer which represents the main implementation and which must be set when initializing the sample

References dc::common_renderer::update_frame().

void CALLBACK dc::on_gui_event ( UINT  nEvent,
int  nControlID,
CDXUTControl *  pControl,
void *  pUserContext 
)

Default implementation of DXUT callbacks common to all render samples.

All render samples share common DXUT function callbacks which use identlical code. They all refer to a common_renderer pointer the_renderer which represents the main implementation and which must be set when initializing the sample

References dune::deferred_renderer::show_target(), and dc::common_renderer::update_postprocessing_parameters().

void CALLBACK dc::on_keyboard ( UINT  nChar,
bool  bKeyDown,
bool  bAltDown,
void *  pUserContext 
)

Default implementation of DXUT callbacks common to all render samples.

All render samples share common DXUT function callbacks which use identlical code. They all refer to a common_renderer pointer the_renderer which represents the main implementation and which must be set when initializing the sample

References dc::common_renderer::load(), dc::common_renderer::reload_shader(), dc::common_renderer::save(), dune::deferred_renderer::start_capture(), and dune::deferred_renderer::stop_capture().

bool CALLBACK dc::on_modify_device ( DXUTDeviceSettings *  settings,
void *  user_context 
)

Default implementation of DXUT callbacks common to all render samples.

All render samples share common DXUT function callbacks which use identlical code. They all refer to a common_renderer pointer the_renderer which represents the main implementation and which must be set when initializing the sample

LRESULT CALLBACK dc::on_msg ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
bool *  pbNoFurtherProcessing,
void *  pUserContext 
)

Default implementation of DXUT callbacks common to all render samples.

All render samples share common DXUT function callbacks which use identlical code. They all refer to a common_renderer pointer the_renderer which represents the main implementation and which must be set when initializing the sample

References dc::common_renderer::update_camera().

void CALLBACK dc::on_releasing_swap_chain ( void *  pUserContext)

Default implementation of DXUT callbacks common to all render samples.

All render samples share common DXUT function callbacks which use identlical code. They all refer to a common_renderer pointer the_renderer which represents the main implementation and which must be set when initializing the sample

void CALLBACK dc::on_render ( ID3D11Device *  device,
ID3D11DeviceContext *  context,
double  fTime,
float  fElapsedTime,
void *  pUserContext 
)

Default implementation of DXUT callbacks common to all render samples.

All render samples share common DXUT function callbacks which use identlical code. They all refer to a common_renderer pointer the_renderer which represents the main implementation and which must be set when initializing the sample

HRESULT CALLBACK dc::on_resize ( ID3D11Device *  pd3dDevice,
IDXGISwapChain *  pSwapChain,
const DXGI_SURFACE_DESC *  pBackBufferSurfaceDesc,
void *  pUserContext 
)

Default implementation of DXUT callbacks common to all render samples.

All render samples share common DXUT function callbacks which use identlical code. They all refer to a common_renderer pointer the_renderer which represents the main implementation and which must be set when initializing the sample

References dc::common_renderer::resize().