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
6288266a
Commit
6288266a
authored
Sep 15, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Sep 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ddraw_geom in the execute buffer code.
parent
9b81b838
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
d3dexecutebuffer.c
dlls/ddraw/d3dexecutebuffer.c
+14
-11
No files found.
dlls/ddraw/d3dexecutebuffer.c
View file @
6288266a
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include "mesa_private.h"
#include "mesa_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ddraw
);
WINE_DEFAULT_DEBUG_CHANNEL
(
ddraw
);
WINE_DECLARE_DEBUG_CHANNEL
(
ddraw_geom
);
static
void
_dump_d3dstatus
(
LPD3DSTATUS
lpStatus
)
{
static
void
_dump_d3dstatus
(
LPD3DSTATUS
lpStatus
)
{
...
@@ -111,28 +112,30 @@ static void execute(IDirect3DExecuteBufferImpl *This,
...
@@ -111,28 +112,30 @@ static void execute(IDirect3DExecuteBufferImpl *This,
for
(
i
=
0
;
i
<
count
;
i
++
)
{
for
(
i
=
0
;
i
<
count
;
i
++
)
{
LPD3DTRIANGLE
ci
=
(
LPD3DTRIANGLE
)
instr
;
LPD3DTRIANGLE
ci
=
(
LPD3DTRIANGLE
)
instr
;
TRACE
(
" v1: %d v2: %d v3: %d
\n
"
,
ci
->
u1
.
v1
,
ci
->
u2
.
v2
,
ci
->
u3
.
v3
);
TRACE
_
(
ddraw_geom
)
(
" v1: %d v2: %d v3: %d
\n
"
,
ci
->
u1
.
v1
,
ci
->
u2
.
v2
,
ci
->
u3
.
v3
);
TRACE
(
" Flags : "
);
TRACE
_
(
ddraw_geom
)
(
" Flags : "
);
if
(
TRACE_ON
(
ddraw
))
{
if
(
TRACE_ON
(
ddraw
))
{
/* Wireframe */
/* Wireframe */
if
(
ci
->
wFlags
&
D3DTRIFLAG_EDGEENABLE1
)
if
(
ci
->
wFlags
&
D3DTRIFLAG_EDGEENABLE1
)
TRACE
(
"EDGEENABLE1 "
);
TRACE
_
(
ddraw_geom
)
(
"EDGEENABLE1 "
);
if
(
ci
->
wFlags
&
D3DTRIFLAG_EDGEENABLE2
)
if
(
ci
->
wFlags
&
D3DTRIFLAG_EDGEENABLE2
)
TRACE
(
"EDGEENABLE2 "
);
TRACE
_
(
ddraw_geom
)
(
"EDGEENABLE2 "
);
if
(
ci
->
wFlags
&
D3DTRIFLAG_EDGEENABLE1
)
if
(
ci
->
wFlags
&
D3DTRIFLAG_EDGEENABLE1
)
TRACE
(
"EDGEENABLE3 "
);
TRACE
_
(
ddraw_geom
)
(
"EDGEENABLE3 "
);
/* Strips / Fans */
/* Strips / Fans */
if
(
ci
->
wFlags
==
D3DTRIFLAG_EVEN
)
if
(
ci
->
wFlags
==
D3DTRIFLAG_EVEN
)
TRACE
(
"EVEN "
);
TRACE
_
(
ddraw_geom
)
(
"EVEN "
);
if
(
ci
->
wFlags
==
D3DTRIFLAG_ODD
)
if
(
ci
->
wFlags
==
D3DTRIFLAG_ODD
)
TRACE
(
"ODD "
);
TRACE
_
(
ddraw_geom
)
(
"ODD "
);
if
(
ci
->
wFlags
==
D3DTRIFLAG_START
)
if
(
ci
->
wFlags
==
D3DTRIFLAG_START
)
TRACE
(
"START "
);
TRACE
_
(
ddraw_geom
)
(
"START "
);
if
((
ci
->
wFlags
>
0
)
&&
(
ci
->
wFlags
<
30
))
if
((
ci
->
wFlags
>
0
)
&&
(
ci
->
wFlags
<
30
))
TRACE
(
"STARTFLAT(%d) "
,
ci
->
wFlags
);
TRACE
_
(
ddraw_geom
)
(
"STARTFLAT(%d) "
,
ci
->
wFlags
);
TRACE
(
"
\n
"
);
TRACE
_
(
ddraw_geom
)
(
"
\n
"
);
}
}
This
->
indices
[
i
*
3
]
=
ci
->
u1
.
v1
;
This
->
indices
[
i
*
3
+
1
]
=
ci
->
u2
.
v2
;
This
->
indices
[
i
*
3
+
2
]
=
ci
->
u3
.
v3
;
This
->
indices
[(
i
*
3
)
]
=
ci
->
u1
.
v1
;
This
->
indices
[(
i
*
3
)
+
1
]
=
ci
->
u2
.
v2
;
This
->
indices
[(
i
*
3
)
+
2
]
=
ci
->
u3
.
v3
;
instr
+=
size
;
instr
+=
size
;
}
}
IDirect3DDevice7_DrawIndexedPrimitive
(
ICOM_INTERFACE
(
lpDevice
,
IDirect3DDevice7
),
IDirect3DDevice7_DrawIndexedPrimitive
(
ICOM_INTERFACE
(
lpDevice
,
IDirect3DDevice7
),
...
...
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