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
fe4a226b
Commit
fe4a226b
authored
Mar 18, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Introduce a get_identity_matrix() function.
parent
1e66b33d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
stateblock.c
dlls/wined3d/stateblock.c
+2
-7
utils.c
dlls/wined3d/utils.c
+13
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-0
No files found.
dlls/wined3d/stateblock.c
View file @
fe4a226b
...
...
@@ -1121,16 +1121,11 @@ static void state_init_default(struct wined3d_state *state, const struct wined3d
DWORD
d
;
}
tmpfloat
;
unsigned
int
i
;
static
const
struct
wined3d_matrix
identity
=
{{{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
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
wined3d_matrix
identity
;
TRACE
(
"state %p, gl_info %p.
\n
"
,
state
,
gl_info
);
get_identity_matrix
(
&
identity
);
state
->
gl_primitive_type
=
~
0u
;
/* Set some of the defaults for lights, transforms etc */
...
...
dlls/wined3d/utils.c
View file @
fe4a226b
...
...
@@ -3117,6 +3117,19 @@ BOOL is_invalid_op(const struct wined3d_state *state, int stage,
return
FALSE
;
}
void
get_identity_matrix
(
struct
wined3d_matrix
*
mat
)
{
static
const
struct
wined3d_matrix
identity
=
{{{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
}}};
*
mat
=
identity
;
}
/* Setup this textures matrix according to the texture flags. */
/* Context activation is done by the caller (state handler). */
void
set_texture_matrix
(
const
struct
wined3d_gl_info
*
gl_info
,
const
float
*
smat
,
DWORD
flags
,
...
...
dlls/wined3d/wined3d_private.h
View file @
fe4a226b
...
...
@@ -3037,6 +3037,8 @@ static inline BOOL shader_constant_is_local(const struct wined3d_shader *shader,
return
FALSE
;
}
void
get_identity_matrix
(
struct
wined3d_matrix
*
mat
)
DECLSPEC_HIDDEN
;
/* Using additional shader constants (uniforms in GLSL / program environment
* or local parameters in ARB) is costly:
* ARB only knows float4 parameters and GLSL compiler are not really smart
...
...
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