Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ee5e469f
Commit
ee5e469f
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 sVertex.
parent
ed9e0304
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
31 deletions
+33
-31
visual.c
dlls/ddraw/tests/visual.c
+33
-31
No files found.
dlls/ddraw/tests/visual.c
View file @
ee5e469f
...
@@ -446,12 +446,6 @@ static void clear_test(IDirect3DDevice7 *device)
...
@@ -446,12 +446,6 @@ static void clear_test(IDirect3DDevice7 *device)
ok
(
color
==
0x00ffffff
,
"Clear rectangle 4(neg, neg) has color %08x
\n
"
,
color
);
ok
(
color
==
0x00ffffff
,
"Clear rectangle 4(neg, neg) has color %08x
\n
"
,
color
);
}
}
struct
sVertex
{
float
x
,
y
,
z
;
DWORD
diffuse
;
DWORD
specular
;
};
struct
sVertexT
{
struct
sVertexT
{
float
x
,
y
,
z
,
rhw
;
float
x
,
y
,
z
,
rhw
;
DWORD
diffuse
;
DWORD
diffuse
;
...
@@ -465,19 +459,41 @@ static void fog_test(IDirect3DDevice7 *device)
...
@@ -465,19 +459,41 @@ static void fog_test(IDirect3DDevice7 *device)
float
start
=
0
.
0
,
end
=
1
.
0
;
float
start
=
0
.
0
,
end
=
1
.
0
;
D3DDEVICEDESC7
caps
;
D3DDEVICEDESC7
caps
;
struct
{
struct
vec3
position
;
DWORD
diffuse
;
DWORD
specular
;
}
/* Gets full z based fog with linear fog, no fog with specular color */
/* Gets full z based fog with linear fog, no fog with specular color */
struct
sVertex
untransformed_1
[]
=
{
untransformed_1
[]
=
{
-
1
,
-
1
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{
{
-
1
,
0
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
1
f
},
0xffff0000
,
0xff000000
},
{
0
,
0
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{{
-
1
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0xffff0000
,
0xff000000
},
{
0
,
-
1
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{{
0
.
0
f
,
0
.
0
f
,
0
.
1
f
},
0xffff0000
,
0xff000000
},
};
{{
0
.
0
f
,
-
1
.
0
f
,
0
.
1
f
},
0xffff0000
,
0xff000000
},
},
/* Ok, I am too lazy to deal with transform matrices */
/* Ok, I am too lazy to deal with transform matrices */
struct
sVertex
untransformed_2
[]
=
{
untransformed_2
[]
=
{
-
1
,
0
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
{
{
-
1
,
1
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
{{
-
1
.
0
f
,
0
.
0
f
,
1
.
0
f
},
0xffff0000
,
0xff000000
},
{
0
,
1
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
{{
-
1
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffff0000
,
0xff000000
},
{
0
,
0
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
{{
0
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xffff0000
,
0xff000000
},
{{
0
.
0
f
,
0
.
0
f
,
1
.
0
f
},
0xffff0000
,
0xff000000
},
},
far_quad1
[]
=
{
{{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
5
f
},
0xffff0000
,
0xff000000
},
{{
-
1
.
0
f
,
0
.
0
f
,
0
.
5
f
},
0xffff0000
,
0xff000000
},
{{
0
.
0
f
,
0
.
0
f
,
0
.
5
f
},
0xffff0000
,
0xff000000
},
{{
0
.
0
f
,
-
1
.
0
f
,
0
.
5
f
},
0xffff0000
,
0xff000000
},
},
far_quad2
[]
=
{
{{
-
1
.
0
f
,
0
.
0
f
,
1
.
5
f
},
0xffff0000
,
0xff000000
},
{{
-
1
.
0
f
,
1
.
0
f
,
1
.
5
f
},
0xffff0000
,
0xff000000
},
{{
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
/* 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.
* nicer. It also makes making sure that they are drawn correctly easier.
...
@@ -523,20 +539,6 @@ static void fog_test(IDirect3DDevice7 *device)
...
@@ -523,20 +539,6 @@ static void fog_test(IDirect3DDevice7 *device)
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
-
1
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
-
1
.
0
f
,
1
.
0
f
,
};
};
struct
sVertex
far_quad1
[]
=
{
{
-
1
.
0
f
,
-
1
.
0
f
,
0
.
5
f
,
0xffff0000
,
0xff000000
},
{
-
1
.
0
f
,
0
.
0
f
,
0
.
5
f
,
0xffff0000
,
0xff000000
},
{
0
.
0
f
,
0
.
0
f
,
0
.
5
f
,
0xffff0000
,
0xff000000
},
{
0
.
0
f
,
-
1
.
0
f
,
0
.
5
f
,
0xffff0000
,
0xff000000
},
};
struct
sVertex
far_quad2
[]
=
{
{
-
1
.
0
f
,
0
.
0
f
,
1
.
5
f
,
0xffff0000
,
0xff000000
},
{
-
1
.
0
f
,
1
.
0
f
,
1
.
5
f
,
0xffff0000
,
0xff000000
},
{
0
.
0
f
,
1
.
0
f
,
1
.
5
f
,
0xffff0000
,
0xff000000
},
{
0
.
0
f
,
0
.
0
f
,
1
.
5
f
,
0xffff0000
,
0xff000000
},
};
memset
(
&
caps
,
0
,
sizeof
(
caps
));
memset
(
&
caps
,
0
,
sizeof
(
caps
));
hr
=
IDirect3DDevice7_GetCaps
(
device
,
&
caps
);
hr
=
IDirect3DDevice7_GetCaps
(
device
,
&
caps
);
...
...
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