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
481514ea
Commit
481514ea
authored
May 22, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
May 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the conv_mat macro.
parent
69bdff62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
21 deletions
+5
-21
device.c
dlls/wined3d/device.c
+5
-8
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-13
No files found.
dlls/wined3d/device.c
View file @
481514ea
...
...
@@ -1801,6 +1801,10 @@ HRESULT CDECL wined3d_device_set_transform(struct wined3d_device *device,
{
TRACE
(
"device %p, state %s, matrix %p.
\n
"
,
device
,
debug_d3dtstype
(
d3dts
),
matrix
);
TRACE
(
"%.8e %.8e %.8e %.8e
\n
"
,
matrix
->
u
.
s
.
_11
,
matrix
->
u
.
s
.
_12
,
matrix
->
u
.
s
.
_13
,
matrix
->
u
.
s
.
_14
);
TRACE
(
"%.8e %.8e %.8e %.8e
\n
"
,
matrix
->
u
.
s
.
_21
,
matrix
->
u
.
s
.
_22
,
matrix
->
u
.
s
.
_23
,
matrix
->
u
.
s
.
_24
);
TRACE
(
"%.8e %.8e %.8e %.8e
\n
"
,
matrix
->
u
.
s
.
_31
,
matrix
->
u
.
s
.
_32
,
matrix
->
u
.
s
.
_33
,
matrix
->
u
.
s
.
_34
);
TRACE
(
"%.8e %.8e %.8e %.8e
\n
"
,
matrix
->
u
.
s
.
_41
,
matrix
->
u
.
s
.
_42
,
matrix
->
u
.
s
.
_43
,
matrix
->
u
.
s
.
_44
);
/* Handle recording of state blocks. */
if
(
device
->
isRecordingState
)
...
...
@@ -1823,14 +1827,7 @@ HRESULT CDECL wined3d_device_set_transform(struct wined3d_device *device,
return
WINED3D_OK
;
}
conv_mat
(
matrix
,
&
device
->
stateBlock
->
state
.
transforms
[
d3dts
].
u
.
m
[
0
][
0
]);
/* ScreenCoord = ProjectionMat * ViewMat * WorldMat * ObjectCoord
* where ViewMat = Camera space, WorldMat = world space.
*
* In OpenGL, camera and world space is combined into GL_MODELVIEW
* matrix. The Projection matrix stay projection matrix. */
device
->
stateBlock
->
state
.
transforms
[
d3dts
]
=
*
matrix
;
if
(
d3dts
==
WINED3D_TS_VIEW
)
device
->
view_ident
=
!
memcmp
(
matrix
,
&
identity
,
sizeof
(
identity
));
...
...
dlls/wined3d/wined3d_private.h
View file @
481514ea
...
...
@@ -840,19 +840,6 @@ do { \
#define checkGLcall(A) do {} while(0)
#endif
/* Trace routines / diagnostics */
/* ---------------------------- */
/* Dump out a matrix and copy it */
#define conv_mat(mat,gl_mat) \
do { \
TRACE("%f %f %f %f\n", (mat)->u.s._11, (mat)->u.s._12, (mat)->u.s._13, (mat)->u.s._14); \
TRACE("%f %f %f %f\n", (mat)->u.s._21, (mat)->u.s._22, (mat)->u.s._23, (mat)->u.s._24); \
TRACE("%f %f %f %f\n", (mat)->u.s._31, (mat)->u.s._32, (mat)->u.s._33, (mat)->u.s._34); \
TRACE("%f %f %f %f\n", (mat)->u.s._41, (mat)->u.s._42, (mat)->u.s._43, (mat)->u.s._44); \
memcpy(gl_mat, (mat), 16 * sizeof(float)); \
} while (0)
/* Trace vector and strided data information */
#define TRACE_STRIDED(si, name) do { if (si->use_map & (1 << name)) \
TRACE( #name " = (data {%#x:%p}, stride %d, format %s, stream %u)\n", \
...
...
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