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
02fb9f6f
Commit
02fb9f6f
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 D3DCULL to the WINED3D namespace.
parent
16767d21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
device.c
dlls/wined3d/device.c
+5
-5
stateblock.c
dlls/wined3d/stateblock.c
+1
-1
wined3d_types.h
include/wine/wined3d_types.h
+8
-0
No files found.
dlls/wined3d/device.c
View file @
02fb9f6f
...
@@ -3476,12 +3476,12 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
...
@@ -3476,12 +3476,12 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
/* If we are culling "back faces with clockwise vertices" then
/* If we are culling "back faces with clockwise vertices" then
set front faces to be counter clockwise and enable culling
set front faces to be counter clockwise and enable culling
of back faces */
of back faces */
switch
((
D3DCULL
)
Value
)
{
switch
((
WINE
D3DCULL
)
Value
)
{
case
D3DCULL_NONE
:
case
WINE
D3DCULL_NONE
:
glDisable
(
GL_CULL_FACE
);
glDisable
(
GL_CULL_FACE
);
checkGLcall
(
"glDisable GL_CULL_FACE"
);
checkGLcall
(
"glDisable GL_CULL_FACE"
);
break
;
break
;
case
D3DCULL_CW
:
case
WINE
D3DCULL_CW
:
glEnable
(
GL_CULL_FACE
);
glEnable
(
GL_CULL_FACE
);
checkGLcall
(
"glEnable GL_CULL_FACE"
);
checkGLcall
(
"glEnable GL_CULL_FACE"
);
if
(
This
->
renderUpsideDown
)
{
if
(
This
->
renderUpsideDown
)
{
...
@@ -3493,7 +3493,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
...
@@ -3493,7 +3493,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
}
}
glCullFace
(
GL_BACK
);
glCullFace
(
GL_BACK
);
break
;
break
;
case
D3DCULL_CCW
:
case
WINE
D3DCULL_CCW
:
glEnable
(
GL_CULL_FACE
);
glEnable
(
GL_CULL_FACE
);
checkGLcall
(
"glEnable GL_CULL_FACE"
);
checkGLcall
(
"glEnable GL_CULL_FACE"
);
if
(
This
->
renderUpsideDown
)
{
if
(
This
->
renderUpsideDown
)
{
...
@@ -3506,7 +3506,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
...
@@ -3506,7 +3506,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
glCullFace
(
GL_BACK
);
glCullFace
(
GL_BACK
);
break
;
break
;
default:
default:
FIXME
(
"Unrecognized/Unhandled D3DCULL value %d
\n
"
,
Value
);
FIXME
(
"Unrecognized/Unhandled
WINE
D3DCULL value %d
\n
"
,
Value
);
}
}
break
;
break
;
...
...
dlls/wined3d/stateblock.c
View file @
02fb9f6f
...
@@ -853,7 +853,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
...
@@ -853,7 +853,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_LASTPIXEL
,
TRUE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_LASTPIXEL
,
TRUE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SRCBLEND
,
WINED3DBLEND_ONE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SRCBLEND
,
WINED3DBLEND_ONE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_DESTBLEND
,
WINED3DBLEND_ZERO
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_DESTBLEND
,
WINED3DBLEND_ZERO
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CULLMODE
,
D3DCULL_CCW
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CULLMODE
,
WINE
D3DCULL_CCW
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZFUNC
,
D3DCMP_LESSEQUAL
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZFUNC
,
D3DCMP_LESSEQUAL
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ALPHAFUNC
,
D3DCMP_ALWAYS
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ALPHAFUNC
,
D3DCMP_ALWAYS
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ALPHAREF
,
0
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ALPHAREF
,
0
);
...
...
include/wine/wined3d_types.h
View file @
02fb9f6f
...
@@ -505,6 +505,14 @@ typedef enum _WINED3DSHADEMODE {
...
@@ -505,6 +505,14 @@ typedef enum _WINED3DSHADEMODE {
WINED3DSHADE_FORCE_DWORD
=
0x7fffffff
WINED3DSHADE_FORCE_DWORD
=
0x7fffffff
}
WINED3DSHADEMODE
;
}
WINED3DSHADEMODE
;
typedef
enum
_WINED3DCULL
{
WINED3DCULL_NONE
=
1
,
WINED3DCULL_CW
=
2
,
WINED3DCULL_CCW
=
3
,
WINED3DCULL_FORCE_DWORD
=
0x7fffffff
}
WINED3DCULL
;
typedef
struct
_WINED3DDISPLAYMODE
{
typedef
struct
_WINED3DDISPLAYMODE
{
UINT
Width
;
UINT
Width
;
UINT
Height
;
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