Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
de5a2f3f
Commit
de5a2f3f
authored
Aug 09, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Implement D3DRENDERSTATE_TEXTUREMAPBLEND.
parent
bfbcfd22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
device.c
dlls/ddraw/device.c
+46
-0
No files found.
dlls/ddraw/device.c
View file @
de5a2f3f
...
...
@@ -2241,6 +2241,52 @@ IDirect3DDeviceImpl_7_SetRenderState(IDirect3DDevice7 *iface,
Value
);
}
case
D3DRENDERSTATE_TEXTUREMAPBLEND
:
{
/* Old texture combine setup style, superseded by texture stage states
* in D3D7. It is safe for us to wrap it to texture stage states.
*/
switch
(
(
D3DTEXTUREBLEND
)
Value
)
{
case
D3DTBLEND_MODULATE
:
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLORARG1
,
D3DTA_TEXTURE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAARG1
,
D3DTA_TEXTURE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLORARG2
,
D3DTA_CURRENT
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLOROP
,
D3DTOP_MODULATE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAOP
,
D3DTOP_SELECTARG1
);
break
;
case
D3DTBLEND_MODULATEALPHA
:
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLORARG1
,
D3DTA_TEXTURE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAARG1
,
D3DTA_TEXTURE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLORARG2
,
D3DTA_CURRENT
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAARG2
,
D3DTA_CURRENT
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLOROP
,
D3DTOP_MODULATE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAOP
,
D3DTOP_MODULATE
);
break
;
case
D3DTBLEND_DECAL
:
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLORARG1
,
D3DTA_TEXTURE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAARG1
,
D3DTA_TEXTURE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLOROP
,
D3DTOP_SELECTARG1
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAOP
,
D3DTOP_SELECTARG1
);
break
;
case
D3DTBLEND_DECALALPHA
:
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLORARG1
,
D3DTA_TEXTURE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAARG1
,
D3DTA_TEXTURE
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAARG2
,
D3DTA_CURRENT
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_COLOROP
,
D3DTOP_SELECTARG1
);
IWineD3DDevice_SetTextureStageState
(
iface
,
0
,
D3DTSS_ALPHAOP
,
D3DTOP_MODULATE
);
break
;
default:
ERR
(
"Unhandled texture environment %ld !
\n
"
,
Value
);
}
return
D3D_OK
;
break
;
}
default:
return
IWineD3DDevice_SetRenderState
(
This
->
wineD3DDevice
,
RenderStateType
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment