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
3cf189af
Commit
3cf189af
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 vertex.
parent
91fbd223
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
44 deletions
+63
-44
visual.c
dlls/ddraw/tests/visual.c
+63
-44
No files found.
dlls/ddraw/tests/visual.c
View file @
3cf189af
...
...
@@ -23,6 +23,11 @@
#include "ddraw.h"
#include "d3d.h"
struct
vec3
{
float
x
,
y
,
z
;
};
static
HWND
window
;
static
IDirectDraw7
*
DirectDraw
;
static
IDirectDrawSurface7
*
Surface
;
...
...
@@ -264,12 +269,6 @@ static void set_viewport_size(IDirect3DDevice7 *device)
return
;
}
struct
vertex
{
float
x
,
y
,
z
;
DWORD
diffuse
;
};
struct
tvertex
{
float
x
,
y
,
z
,
w
;
...
...
@@ -297,19 +296,24 @@ static void lighting_test(IDirect3DDevice7 *device)
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
};
struct
vertex
unlitquad
[]
=
struct
{
{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
,
0xffff0000
},
{
-
1
.
0
f
,
0
.
0
f
,
0
.
1
f
,
0xffff0000
},
{
0
.
0
f
,
0
.
0
f
,
0
.
1
f
,
0xffff0000
},
{
0
.
0
f
,
-
1
.
0
f
,
0
.
1
f
,
0xffff0000
},
};
struct
vertex
litquad
[]
=
struct
vec3
position
;
DWORD
diffuse
;
}
unlitquad
[]
=
{
{
-
1
.
0
f
,
0
.
0
f
,
0
.
1
f
,
0xff00ff00
},
{
-
1
.
0
f
,
1
.
0
f
,
0
.
1
f
,
0xff00ff00
},
{
0
.
0
f
,
1
.
0
f
,
0
.
1
f
,
0xff00ff00
},
{
0
.
0
f
,
0
.
0
f
,
0
.
1
f
,
0xff00ff00
},
{{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
},
0xffff0000
},
{{
-
1
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0xffff0000
},
{{
0
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0xffff0000
},
{{
0
.
0
f
,
-
1
.
0
f
,
0
.
1
f
},
0xffff0000
},
},
litquad
[]
=
{
{{
-
1
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0xff00ff00
},
{{
-
1
.
0
f
,
1
.
0
f
,
0
.
1
f
},
0xff00ff00
},
{{
0
.
0
f
,
1
.
0
f
,
0
.
1
f
},
0xff00ff00
},
{{
0
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0xff00ff00
},
};
struct
nvertex
unlitnquad
[]
=
{
...
...
@@ -930,19 +934,24 @@ static void alpha_test(IDirect3DDevice7 *device)
DWORD
color
,
red
,
green
,
blue
;
DDSURFACEDESC2
ddsd
;
struct
vertex
quad1
[]
=
struct
{
{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
,
0x4000ff00
},
{
-
1
.
0
f
,
0
.
0
f
,
0
.
1
f
,
0x4000ff00
},
{
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
,
0x4000ff00
},
{
1
.
0
f
,
0
.
0
f
,
0
.
1
f
,
0x4000ff00
},
};
struct
vertex
quad2
[]
=
struct
vec3
position
;
DWORD
diffuse
;
}
quad1
[]
=
{
{{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
},
0x4000ff00
},
{{
-
1
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0x4000ff00
},
{{
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
},
0x4000ff00
},
{{
1
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0x4000ff00
},
},
quad2
[]
=
{
{
-
1
.
0
f
,
0
.
0
f
,
0
.
1
f
,
0xc00000ff
},
{
-
1
.
0
f
,
1
.
0
f
,
0
.
1
f
,
0xc00000ff
},
{
1
.
0
f
,
0
.
0
f
,
0
.
1
f
,
0xc00000ff
},
{
1
.
0
f
,
1
.
0
f
,
0
.
1
f
,
0xc00000ff
},
{
{
-
1
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0xc00000ff
},
{
{
-
1
.
0
f
,
1
.
0
f
,
0
.
1
f
},
0xc00000ff
},
{
{
1
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0xc00000ff
},
{
{
1
.
0
f
,
1
.
0
f
,
0
.
1
f
},
0xc00000ff
},
};
static
float
composite_quad
[][
5
]
=
{
{
0
.
0
f
,
-
1
.
0
f
,
0
.
1
f
,
0
.
0
f
,
1
.
0
f
},
...
...
@@ -2237,12 +2246,17 @@ static void D3D3_ViewportClearTest(void)
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
};
struct
vertex
quad
[]
=
struct
{
struct
vec3
position
;
DWORD
diffuse
;
}
quad
[]
=
{
{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
,
0xffffffff
},
{
-
1
.
0
f
,
1
.
0
f
,
0
.
1
f
,
0xffffffff
},
{
1
.
0
f
,
1
.
0
f
,
0
.
1
f
,
0xffffffff
},
{
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
,
0xffffffff
},
{
{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
},
0xffffffff
},
{
{
-
1
.
0
f
,
1
.
0
f
,
0
.
1
f
},
0xffffffff
},
{
{
1
.
0
f
,
1
.
0
f
,
0
.
1
f
},
0xffffffff
},
{
{
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
},
0xffffffff
},
};
WORD
Indices
[]
=
{
0
,
1
,
2
,
2
,
3
,
0
};
...
...
@@ -2995,19 +3009,24 @@ static void depth_clamp_test(IDirect3DDevice7 *device)
{
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
vertex
quad5
[]
=
struct
{
{
-
0
.
5
f
,
0
.
5
f
,
10
.
0
f
,
0xff14f914
},
{
0
.
5
f
,
0
.
5
f
,
10
.
0
f
,
0xff14f914
},
{
-
0
.
5
f
,
-
0
.
5
f
,
10
.
0
f
,
0xff14f914
},
{
0
.
5
f
,
-
0
.
5
f
,
10
.
0
f
,
0xff14f914
},
};
struct
vertex
quad6
[]
=
struct
vec3
position
;
DWORD
diffuse
;
}
quad5
[]
=
{
{{
-
0
.
5
f
,
0
.
5
f
,
10
.
0
f
},
0xff14f914
},
{{
0
.
5
f
,
0
.
5
f
,
10
.
0
f
},
0xff14f914
},
{{
-
0
.
5
f
,
-
0
.
5
f
,
10
.
0
f
},
0xff14f914
},
{{
0
.
5
f
,
-
0
.
5
f
,
10
.
0
f
},
0xff14f914
},
},
quad6
[]
=
{
{
-
1
.
0
f
,
0
.
5
f
,
10
.
0
f
,
0xfff91414
},
{
1
.
0
f
,
0
.
5
f
,
10
.
0
f
,
0xfff91414
},
{
-
1
.
0
f
,
0
.
25
f
,
10
.
0
f
,
0xfff91414
},
{
1
.
0
f
,
0
.
25
f
,
10
.
0
f
,
0xfff91414
},
{
{
-
1
.
0
f
,
0
.
5
f
,
10
.
0
f
},
0xfff91414
},
{
{
1
.
0
f
,
0
.
5
f
,
10
.
0
f
},
0xfff91414
},
{
{
-
1
.
0
f
,
0
.
25
f
,
10
.
0
f
},
0xfff91414
},
{
{
1
.
0
f
,
0
.
25
f
,
10
.
0
f
},
0xfff91414
},
};
D3DVIEWPORT7
vp
;
...
...
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