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
908853f6
Commit
908853f6
authored
Oct 29, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add D3DMATERIALCOLORSOURCE to the WINED3D namespace.
parent
206d248e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
device.c
dlls/wined3d/device.c
+5
-5
stateblock.c
dlls/wined3d/stateblock.c
+4
-4
wined3d_types.h
include/wine/wined3d_types.h
+8
-0
No files found.
dlls/wined3d/device.c
View file @
908853f6
...
...
@@ -4067,17 +4067,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
This
->
stateBlock
->
renderState
[
WINED3DRS_EMISSIVEMATERIALSOURCE
],
This
->
stateBlock
->
renderState
[
WINED3DRS_SPECULARMATERIALSOURCE
]);
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_DIFFUSEMATERIALSOURCE
]
==
D3DMCS_COLOR1
)
{
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_AMBIENTMATERIALSOURCE
]
==
D3DMCS_COLOR1
)
{
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_DIFFUSEMATERIALSOURCE
]
==
WINE
D3DMCS_COLOR1
)
{
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_AMBIENTMATERIALSOURCE
]
==
WINE
D3DMCS_COLOR1
)
{
Parm
=
GL_AMBIENT_AND_DIFFUSE
;
}
else
{
Parm
=
GL_DIFFUSE
;
}
}
else
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_AMBIENTMATERIALSOURCE
]
==
D3DMCS_COLOR1
)
{
}
else
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_AMBIENTMATERIALSOURCE
]
==
WINE
D3DMCS_COLOR1
)
{
Parm
=
GL_AMBIENT
;
}
else
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_EMISSIVEMATERIALSOURCE
]
==
D3DMCS_COLOR1
)
{
}
else
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_EMISSIVEMATERIALSOURCE
]
==
WINE
D3DMCS_COLOR1
)
{
Parm
=
GL_EMISSION
;
}
else
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_SPECULARMATERIALSOURCE
]
==
D3DMCS_COLOR1
)
{
}
else
if
(
This
->
stateBlock
->
renderState
[
WINED3DRS_SPECULARMATERIALSOURCE
]
==
WINE
D3DMCS_COLOR1
)
{
Parm
=
GL_SPECULAR
;
}
else
{
Parm
=
-
1
;
...
...
dlls/wined3d/stateblock.c
View file @
908853f6
...
...
@@ -904,10 +904,10 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_COLORVERTEX
,
TRUE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_LOCALVIEWER
,
TRUE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_NORMALIZENORMALS
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_DIFFUSEMATERIALSOURCE
,
D3DMCS_COLOR1
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SPECULARMATERIALSOURCE
,
D3DMCS_COLOR2
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_AMBIENTMATERIALSOURCE
,
D3DMCS_MATERIAL
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_EMISSIVEMATERIALSOURCE
,
D3DMCS_MATERIAL
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_DIFFUSEMATERIALSOURCE
,
WINE
D3DMCS_COLOR1
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SPECULARMATERIALSOURCE
,
WINE
D3DMCS_COLOR2
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_AMBIENTMATERIALSOURCE
,
WINE
D3DMCS_MATERIAL
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_EMISSIVEMATERIALSOURCE
,
WINE
D3DMCS_MATERIAL
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_VERTEXBLEND
,
WINED3DVBF_DISABLE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CLIPPLANEENABLE
,
0
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SOFTWAREVERTEXPROCESSING
,
FALSE
);
...
...
include/wine/wined3d_types.h
View file @
908853f6
...
...
@@ -547,6 +547,14 @@ typedef enum _WINED3DSTENCILOP {
WINED3DSTENCILOP_FORCE_DWORD
=
0x7fffffff
}
WINED3DSTENCILOP
;
typedef
enum
_WINED3DMATERIALCOLORSOURCE
{
WINED3DMCS_MATERIAL
=
0
,
WINED3DMCS_COLOR1
=
1
,
WINED3DMCS_COLOR2
=
2
,
WINED3DMCS_FORCE_DWORD
=
0x7fffffff
}
WINED3DMATERIALCOLORSOURCE
;
typedef
struct
_WINED3DDISPLAYMODE
{
UINT
Width
;
UINT
Height
;
...
...
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