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
4745e602
Commit
4745e602
authored
Oct 12, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add D3DCLIPPLANE constants to the WINED3D namespace.
parent
b7edf5b0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
17 deletions
+23
-17
device.c
dlls/wined3d/device.c
+13
-13
directx.c
dlls/wined3d/directx.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-3
wined3d_types.h
include/wine/wined3d_types.h
+8
-0
No files found.
dlls/wined3d/device.c
View file @
4745e602
...
...
@@ -3687,19 +3687,19 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
disable
=
~
Value
&
OldValue
;
}
if
(
enable
&
D3DCLIPPLANE0
)
{
glEnable
(
GL_CLIP_PLANE0
);
checkGLcall
(
"glEnable(clip plane 0)"
);
}
if
(
enable
&
D3DCLIPPLANE1
)
{
glEnable
(
GL_CLIP_PLANE1
);
checkGLcall
(
"glEnable(clip plane 1)"
);
}
if
(
enable
&
D3DCLIPPLANE2
)
{
glEnable
(
GL_CLIP_PLANE2
);
checkGLcall
(
"glEnable(clip plane 2)"
);
}
if
(
enable
&
D3DCLIPPLANE3
)
{
glEnable
(
GL_CLIP_PLANE3
);
checkGLcall
(
"glEnable(clip plane 3)"
);
}
if
(
enable
&
D3DCLIPPLANE4
)
{
glEnable
(
GL_CLIP_PLANE4
);
checkGLcall
(
"glEnable(clip plane 4)"
);
}
if
(
enable
&
D3DCLIPPLANE5
)
{
glEnable
(
GL_CLIP_PLANE5
);
checkGLcall
(
"glEnable(clip plane 5)"
);
}
if
(
disable
&
D3DCLIPPLANE0
)
{
glDisable
(
GL_CLIP_PLANE0
);
checkGLcall
(
"glDisable(clip plane 0)"
);
}
if
(
disable
&
D3DCLIPPLANE1
)
{
glDisable
(
GL_CLIP_PLANE1
);
checkGLcall
(
"glDisable(clip plane 1)"
);
}
if
(
disable
&
D3DCLIPPLANE2
)
{
glDisable
(
GL_CLIP_PLANE2
);
checkGLcall
(
"glDisable(clip plane 2)"
);
}
if
(
disable
&
D3DCLIPPLANE3
)
{
glDisable
(
GL_CLIP_PLANE3
);
checkGLcall
(
"glDisable(clip plane 3)"
);
}
if
(
disable
&
D3DCLIPPLANE4
)
{
glDisable
(
GL_CLIP_PLANE4
);
checkGLcall
(
"glDisable(clip plane 4)"
);
}
if
(
disable
&
D3DCLIPPLANE5
)
{
glDisable
(
GL_CLIP_PLANE5
);
checkGLcall
(
"glDisable(clip plane 5)"
);
}
if
(
enable
&
WINE
D3DCLIPPLANE0
)
{
glEnable
(
GL_CLIP_PLANE0
);
checkGLcall
(
"glEnable(clip plane 0)"
);
}
if
(
enable
&
WINE
D3DCLIPPLANE1
)
{
glEnable
(
GL_CLIP_PLANE1
);
checkGLcall
(
"glEnable(clip plane 1)"
);
}
if
(
enable
&
WINE
D3DCLIPPLANE2
)
{
glEnable
(
GL_CLIP_PLANE2
);
checkGLcall
(
"glEnable(clip plane 2)"
);
}
if
(
enable
&
WINE
D3DCLIPPLANE3
)
{
glEnable
(
GL_CLIP_PLANE3
);
checkGLcall
(
"glEnable(clip plane 3)"
);
}
if
(
enable
&
WINE
D3DCLIPPLANE4
)
{
glEnable
(
GL_CLIP_PLANE4
);
checkGLcall
(
"glEnable(clip plane 4)"
);
}
if
(
enable
&
WINE
D3DCLIPPLANE5
)
{
glEnable
(
GL_CLIP_PLANE5
);
checkGLcall
(
"glEnable(clip plane 5)"
);
}
if
(
disable
&
WINE
D3DCLIPPLANE0
)
{
glDisable
(
GL_CLIP_PLANE0
);
checkGLcall
(
"glDisable(clip plane 0)"
);
}
if
(
disable
&
WINE
D3DCLIPPLANE1
)
{
glDisable
(
GL_CLIP_PLANE1
);
checkGLcall
(
"glDisable(clip plane 1)"
);
}
if
(
disable
&
WINE
D3DCLIPPLANE2
)
{
glDisable
(
GL_CLIP_PLANE2
);
checkGLcall
(
"glDisable(clip plane 2)"
);
}
if
(
disable
&
WINE
D3DCLIPPLANE3
)
{
glDisable
(
GL_CLIP_PLANE3
);
checkGLcall
(
"glDisable(clip plane 3)"
);
}
if
(
disable
&
WINE
D3DCLIPPLANE4
)
{
glDisable
(
GL_CLIP_PLANE4
);
checkGLcall
(
"glDisable(clip plane 4)"
);
}
if
(
disable
&
WINE
D3DCLIPPLANE5
)
{
glDisable
(
GL_CLIP_PLANE5
);
checkGLcall
(
"glDisable(clip plane 5)"
);
}
/** update clipping status */
if
(
enable
)
{
...
...
dlls/wined3d/directx.c
View file @
4745e602
...
...
@@ -489,7 +489,7 @@ BOOL IWineD3DImpl_FillGLCaps(IWineD3D *iface, Display* display) {
/* Retrieve opengl defaults */
glGetIntegerv
(
GL_MAX_CLIP_PLANES
,
&
gl_max
);
gl_info
->
max_clipplanes
=
min
(
D3DMAXUSERCLIPPLANES
,
gl_max
);
gl_info
->
max_clipplanes
=
min
(
WINE
D3DMAXUSERCLIPPLANES
,
gl_max
);
TRACE_
(
d3d_caps
)(
"ClipPlanes support - num Planes=%d
\n
"
,
gl_max
);
glGetIntegerv
(
GL_MAX_LIGHTS
,
&
gl_max
);
...
...
dlls/wined3d/wined3d_private.h
View file @
4745e602
...
...
@@ -51,7 +51,7 @@
#define MAX_TEXTURES 8
#define MAX_SAMPLERS 16
#define MAX_ACTIVE_LIGHTS 8
#define MAX_CLIPPLANES D3DMAXUSERCLIPPLANES
#define MAX_CLIPPLANES
WINE
D3DMAXUSERCLIPPLANES
#define MAX_LEVELS 256
#define MAX_CONST_I 16
...
...
@@ -221,8 +221,6 @@ extern int num_lock;
/* Maximum number of constants provided to the shaders */
#define HIGHEST_TRANSFORMSTATE 512
/* Highest value in WINED3DTRANSFORMSTATETYPE */
#define MAX_CLIPPLANES D3DMAXUSERCLIPPLANES
#define MAX_PALETTES 256
/* Checking of API calls */
...
...
include/wine/wined3d_types.h
View file @
4745e602
...
...
@@ -1334,4 +1334,12 @@ typedef enum _WINED3DSURFTYPE {
#define WINED3DPRESENT_INTERVAL_FOUR 0x00000008
#define WINED3DPRESENT_INTERVAL_IMMEDIATE 0x80000000
#define WINED3DMAXUSERCLIPPLANES 32
#define WINED3DCLIPPLANE0 (1 << 0)
#define WINED3DCLIPPLANE1 (1 << 1)
#define WINED3DCLIPPLANE2 (1 << 2)
#define WINED3DCLIPPLANE3 (1 << 3)
#define WINED3DCLIPPLANE4 (1 << 4)
#define WINED3DCLIPPLANE5 (1 << 5)
#endif
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