The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
Namespaces | Functions
common_gui.h File Reference
#include <DXUT.h>
#include <DXUTgui.h>
#include "idc.h"
#include "pppipe.h"
#include <dune/light_propagation_volume.h>
#include <dune/light.h>
#include <dune/sparse_voxel_octree.h>
#include <dune/composite_mesh.h>
#include <dune/deferred_renderer.h>
#include <dune/serializer.h>

Go to the source code of this file.

Namespaces

 dc
 Dirtchamber shared code.
 

Functions

int dc::gui::init (PCALLBACKDXUTGUIEVENT f, int spacing=18, UINT ewidth=160, UINT eheight=22)
 Initialize the DXUT GUI with all variables in this namespace.
 
void dc::gui::update (dune::deferred_renderer *renderer)
 Update list of render targets in the GUI dropdown menu from a deferred renderer.
 
void dc::gui::select_hud ()
 Automatically open the selected HUD matching an entry in the dropdown menu.
 
void dc::gui::toggle ()
 Toggle GUI off/on.
 
LRESULT CALLBACK dc::gui::on_msg (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, bool *pbNoFurtherProcessing, void *pUserContext)
 Some default callbacks.
 
void CALLBACK dc::gui::on_resize (ID3D11Device *pd3dDevice, IDXGISwapChain *pSwapChain, const DXGI_SURFACE_DESC *pBackBufferSurfaceDesc, void *pUserContext)
 Some default callbacks.
 
void CALLBACK dc::gui::on_event (UINT nEvent, int nControlID, CDXUTControl *pControl, void *pUserContext)
 Some default callbacks.
 
void CALLBACK dc::gui::on_render (ID3D11Device *device, ID3D11DeviceContext *context, double fTime, float fElapsedTime, void *pUserContext)
 Some default callbacks.
 
bool dc::gui::checkbox_value (int idc)
 Get the value of a GUI element.
 
float dc::gui::slider_value (int idc, int mi, int ma)
 Get the value of a GUI element.
 
float dc::gui::slider_value (int idc, bool normalize)
 Get the value of a GUI element.
 
void dc::gui::set_text (int idc, LPCWSTR text)
 Set the value of a GUI element.
 
void dc::gui::set_checkbox_value (int idc, bool v)
 Set the value of a GUI element.
 
void dc::gui::set_checkbox_value (int idc, BOOL v)
 Set the value of a GUI element.
 
void dc::gui::set_slider_value (int idc, int mi, int ma, float v)
 Set the value of a GUI element.
 
void dc::gui::set_slider_value (int idc, float v, bool normalized)
 Set the value of a GUI element.
 
bool dc::gui::save_settings (save_func f=nullptr)
 Save/Load dialog to dump current renderer state. More...
 
bool dc::gui::load_settings (load_func load_more)
 Save/Load dialog to dump current renderer state. More...
 
void dc::gui::get_parameters (pppipe &ppp)
 Synchronization between GUI and a pppipe object.
 
void dc::gui::set_parameters (const pppipe &ppp)
 Synchronization between GUI and a pppipe object.
 
void dc::gui::get_parameters (dune::directional_light &main_light, dune::d3d_mesh &scene, float z_near, float z_far)
 Synchronization between GUI and a directional_light object.
 
void dc::gui::set_parameters (const dune::directional_light &main_light, dune::d3d_mesh &scene, float z_near, float z_far)
 Synchronization between GUI and a directional_light object.
 
void dc::gui::get_parameters (dune::light_propagation_volume &lpv)
 Synchronization between GUI and a light_propagation_volume object.
 
void dc::gui::set_parameters (const dune::light_propagation_volume &lpv)
 Synchronization between GUI and a light_propagation_volume object.
 
void dc::gui::get_parameters (dune::sparse_voxel_octree &svo)
 Synchronization between GUI and a sparse_voxel_octree object.
 
void dc::gui::set_parameters (const dune::sparse_voxel_octree &svo)
 Synchronization between GUI and a sparse_voxel_octree object.