DXGL r293 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
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 @@
1928
1928
d3d7dev->SetRenderState(D3DRENDERSTATE_FOGDENSITY, *((LPDWORD)(&f)));
1929
1929
}
1930
1930
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;
1931
1939
case IDC_FILLMODE:
1932
1940
if(HIWORD(wParam) == CBN_SELCHANGE)
1933
1941
{
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version