DXGL r293 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r292‎ | r293 | r294 >
Date:02:10, 30 December 2012
Author:admin
Status:new
Tags:
Comment:
Add range based fog to Vertex Shader demo.
Modified paths:
  • /dxgltest/Tests3D.cpp (modified) (history)

Diff [purge]

Index: dxgltest/Tests3D.cpp
@@ -1927,6 +1927,14 @@
19281928 d3d7dev->SetRenderState(D3DRENDERSTATE_FOGDENSITY, *((LPDWORD)(&f)));
19291929 }
19301930 break;
 1931+ case IDC_RANGEBASEDFOG:
 1932+ if(HIWORD(wParam) == BN_CLICKED)
 1933+ {
 1934+ if(SendDlgItemMessage(hWnd,IDC_RANGEBASEDFOG,BM_GETCHECK,0,0) == BST_CHECKED)
 1935+ d3d7dev->SetRenderState(D3DRENDERSTATE_RANGEFOGENABLE,TRUE);
 1936+ else d3d7dev->SetRenderState(D3DRENDERSTATE_RANGEFOGENABLE,FALSE);
 1937+ }
 1938+ break;
19311939 case IDC_FILLMODE:
19321940 if(HIWORD(wParam) == CBN_SELCHANGE)
19331941 {