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
ce60e4ec
Commit
ce60e4ec
authored
Jul 15, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Get rid of struct sVertexT.
parent
ee5e469f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
visual.c
dlls/ddraw/tests/visual.c
+22
-20
No files found.
dlls/ddraw/tests/visual.c
View file @
ce60e4ec
...
...
@@ -446,12 +446,6 @@ static void clear_test(IDirect3DDevice7 *device)
ok
(
color
==
0x00ffffff
,
"Clear rectangle 4(neg, neg) has color %08x
\n
"
,
color
);
}
struct
sVertexT
{
float
x
,
y
,
z
,
rhw
;
DWORD
diffuse
;
DWORD
specular
;
};
static
void
fog_test
(
IDirect3DDevice7
*
device
)
{
HRESULT
hr
;
...
...
@@ -495,20 +489,28 @@ static void fog_test(IDirect3DDevice7 *device)
{{
0
.
0
f
,
1
.
0
f
,
1
.
5
f
},
0xffff0000
,
0xff000000
},
{{
0
.
0
f
,
0
.
0
f
,
1
.
5
f
},
0xffff0000
,
0xff000000
},
};
/* Untransformed ones. Give them a different diffuse color to make the test look
* nicer. It also makes making sure that they are drawn correctly easier.
*/
struct
sVertexT
transformed_1
[]
=
{
{
320
,
0
,
1
.
0
f
,
1
.
0
f
,
0xFFFFFF00
,
0xFF000000
},
{
640
,
0
,
1
.
0
f
,
1
.
0
f
,
0xFFFFFF00
,
0xFF000000
},
{
640
,
240
,
1
.
0
f
,
1
.
0
f
,
0xFFFFFF00
,
0xFF000000
},
{
320
,
240
,
1
.
0
f
,
1
.
0
f
,
0xFFFFFF00
,
0xFF000000
},
};
struct
sVertexT
transformed_2
[]
=
{
{
320
,
240
,
1
.
0
f
,
1
.
0
f
,
0xFFFFFF00
,
0xFF000000
},
{
640
,
240
,
1
.
0
f
,
1
.
0
f
,
0xFFFFFF00
,
0xFF000000
},
{
640
,
480
,
1
.
0
f
,
1
.
0
f
,
0xFFFFFF00
,
0xFF000000
},
{
320
,
480
,
1
.
0
f
,
1
.
0
f
,
0xFFFFFF00
,
0xFF000000
},
/* Untransformed ones. Give them a different diffuse color to make the
* test look nicer. It also makes making sure that they are drawn
* correctly easier. */
struct
{
struct
vec4
position
;
DWORD
diffuse
;
DWORD
specular
;
}
transformed_1
[]
=
{
{{
320
.
0
f
,
0
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffffff00
,
0xff000000
},
{{
640
.
0
f
,
0
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffffff00
,
0xff000000
},
{{
640
.
0
f
,
240
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffffff00
,
0xff000000
},
{{
320
.
0
f
,
240
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffffff00
,
0xff000000
},
},
transformed_2
[]
=
{
{{
320
.
0
f
,
240
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffffff00
,
0xff000000
},
{{
640
.
0
f
,
240
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffffff00
,
0xff000000
},
{{
640
.
0
f
,
480
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffffff00
,
0xff000000
},
{{
320
.
0
f
,
480
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffffff00
,
0xff000000
},
};
WORD
Indices
[]
=
{
0
,
1
,
2
,
2
,
3
,
0
};
D3DMATRIX
ident_mat
=
...
...
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