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
ecf20e26
Commit
ecf20e26
authored
Jul 01, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Get rid of struct tvertex.
parent
3cf189af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
29 deletions
+33
-29
visual.c
dlls/ddraw/tests/visual.c
+33
-29
No files found.
dlls/ddraw/tests/visual.c
View file @
ecf20e26
...
...
@@ -28,6 +28,11 @@ struct vec3
float
x
,
y
,
z
;
};
struct
vec4
{
float
x
,
y
,
z
,
w
;
};
static
HWND
window
;
static
IDirectDraw7
*
DirectDraw
;
static
IDirectDrawSurface7
*
Surface
;
...
...
@@ -269,12 +274,6 @@ static void set_viewport_size(IDirect3DDevice7 *device)
return
;
}
struct
tvertex
{
float
x
,
y
,
z
,
w
;
DWORD
diffuse
;
};
struct
nvertex
{
float
x
,
y
,
z
;
...
...
@@ -2981,33 +2980,38 @@ out:
*/
static
void
depth_clamp_test
(
IDirect3DDevice7
*
device
)
{
struct
tvertex
quad1
[]
=
struct
{
{
0
.
0
f
,
0
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xff002b7f
},
{
640
.
0
f
,
0
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xff002b7f
},
{
0
.
0
f
,
480
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xff002b7f
},
{
640
.
0
f
,
480
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xff002b7f
},
};
struct
tvertex
quad2
[]
=
struct
vec4
position
;
DWORD
diffuse
;
}
quad1
[]
=
{
{
0
.
0
f
,
300
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xfff9e814
},
{
640
.
0
f
,
300
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xfff9e814
},
{
0
.
0
f
,
360
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xfff9e814
},
{
640
.
0
f
,
360
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xfff9e814
},
}
;
struct
tvertex
quad3
[]
=
{
{
0
.
0
f
,
0
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xff002b7f
},
{
{
640
.
0
f
,
0
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xff002b7f
},
{
{
0
.
0
f
,
480
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xff002b7f
},
{
{
640
.
0
f
,
480
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xff002b7f
},
}
,
quad2
[]
=
{
{
112
.
0
f
,
108
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
208
.
0
f
,
108
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
112
.
0
f
,
204
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
208
.
0
f
,
204
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xffffffff
},
};
struct
tvertex
quad4
[]
=
{{
0
.
0
f
,
300
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xfff9e814
},
{{
640
.
0
f
,
300
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xfff9e814
},
{{
0
.
0
f
,
360
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xfff9e814
},
{{
640
.
0
f
,
360
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xfff9e814
},
},
quad3
[]
=
{
{{
112
.
0
f
,
108
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xffffffff
},
{{
208
.
0
f
,
108
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xffffffff
},
{{
112
.
0
f
,
204
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xffffffff
},
{{
208
.
0
f
,
204
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xffffffff
},
},
quad4
[]
=
{
{
42
.
0
f
,
41
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
112
.
0
f
,
41
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
42
.
0
f
,
108
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
112
.
0
f
,
108
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
{
42
.
0
f
,
41
.
0
f
,
10
.
0
f
,
1
.
0
f
}
,
0xffffffff
},
{
{
112
.
0
f
,
41
.
0
f
,
10
.
0
f
,
1
.
0
f
}
,
0xffffffff
},
{
{
42
.
0
f
,
108
.
0
f
,
10
.
0
f
,
1
.
0
f
}
,
0xffffffff
},
{
{
112
.
0
f
,
108
.
0
f
,
10
.
0
f
,
1
.
0
f
}
,
0xffffffff
},
};
struct
{
...
...
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