wined3d: Introduce wined3d_stateblock_multiply_transform().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7cbabed51f
commit
77a6fa4fa2
|
@ -1505,6 +1505,20 @@ void CDECL wined3d_stateblock_set_transform(struct wined3d_stateblock *statebloc
|
||||||
stateblock->changed.transform[d3dts >> 5] |= 1u << (d3dts & 0x1f);
|
stateblock->changed.transform[d3dts >> 5] |= 1u << (d3dts & 0x1f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CDECL wined3d_stateblock_multiply_transform(struct wined3d_stateblock *stateblock,
|
||||||
|
enum wined3d_transform_state d3dts, const struct wined3d_matrix *matrix)
|
||||||
|
{
|
||||||
|
struct wined3d_matrix *mat = &stateblock->stateblock_state.transforms[d3dts];
|
||||||
|
|
||||||
|
TRACE("stateblock %p, state %s, matrix %p.\n", stateblock, debug_d3dtstype(d3dts), matrix);
|
||||||
|
TRACE("%.8e %.8e %.8e %.8e\n", matrix->_11, matrix->_12, matrix->_13, matrix->_14);
|
||||||
|
TRACE("%.8e %.8e %.8e %.8e\n", matrix->_21, matrix->_22, matrix->_23, matrix->_24);
|
||||||
|
TRACE("%.8e %.8e %.8e %.8e\n", matrix->_31, matrix->_32, matrix->_33, matrix->_34);
|
||||||
|
TRACE("%.8e %.8e %.8e %.8e\n", matrix->_41, matrix->_42, matrix->_43, matrix->_44);
|
||||||
|
|
||||||
|
multiply_matrix(mat, mat, matrix);
|
||||||
|
}
|
||||||
|
|
||||||
HRESULT CDECL wined3d_stateblock_set_clip_plane(struct wined3d_stateblock *stateblock,
|
HRESULT CDECL wined3d_stateblock_set_clip_plane(struct wined3d_stateblock *stateblock,
|
||||||
UINT plane_idx, const struct wined3d_vec4 *plane)
|
UINT plane_idx, const struct wined3d_vec4 *plane)
|
||||||
{
|
{
|
||||||
|
|
|
@ -262,6 +262,7 @@
|
||||||
@ cdecl wined3d_stateblock_get_state(ptr)
|
@ cdecl wined3d_stateblock_get_state(ptr)
|
||||||
@ cdecl wined3d_stateblock_incref(ptr)
|
@ cdecl wined3d_stateblock_incref(ptr)
|
||||||
@ cdecl wined3d_stateblock_init_contained_states(ptr)
|
@ cdecl wined3d_stateblock_init_contained_states(ptr)
|
||||||
|
@ cdecl wined3d_stateblock_multiply_transform(ptr long ptr)
|
||||||
@ cdecl wined3d_stateblock_reset(ptr)
|
@ cdecl wined3d_stateblock_reset(ptr)
|
||||||
@ cdecl wined3d_stateblock_set_base_vertex_index(ptr long)
|
@ cdecl wined3d_stateblock_set_base_vertex_index(ptr long)
|
||||||
@ cdecl wined3d_stateblock_set_clip_plane(ptr long ptr)
|
@ cdecl wined3d_stateblock_set_clip_plane(ptr long ptr)
|
||||||
|
|
|
@ -2724,6 +2724,8 @@ ULONG __cdecl wined3d_stateblock_decref(struct wined3d_stateblock *stateblock);
|
||||||
const struct wined3d_stateblock_state * __cdecl wined3d_stateblock_get_state(const struct wined3d_stateblock *stateblock);
|
const struct wined3d_stateblock_state * __cdecl wined3d_stateblock_get_state(const struct wined3d_stateblock *stateblock);
|
||||||
ULONG __cdecl wined3d_stateblock_incref(struct wined3d_stateblock *stateblock);
|
ULONG __cdecl wined3d_stateblock_incref(struct wined3d_stateblock *stateblock);
|
||||||
void __cdecl wined3d_stateblock_init_contained_states(struct wined3d_stateblock *stateblock);
|
void __cdecl wined3d_stateblock_init_contained_states(struct wined3d_stateblock *stateblock);
|
||||||
|
void __cdecl wined3d_stateblock_multiply_transform(struct wined3d_stateblock *stateblock,
|
||||||
|
enum wined3d_transform_state state, const struct wined3d_matrix *matrix);
|
||||||
void __cdecl wined3d_stateblock_reset(struct wined3d_stateblock *stateblock);
|
void __cdecl wined3d_stateblock_reset(struct wined3d_stateblock *stateblock);
|
||||||
void __cdecl wined3d_stateblock_set_base_vertex_index(struct wined3d_stateblock *stateblock, INT base_index);
|
void __cdecl wined3d_stateblock_set_base_vertex_index(struct wined3d_stateblock *stateblock, INT base_index);
|
||||||
HRESULT __cdecl wined3d_stateblock_set_clip_plane(struct wined3d_stateblock *stateblock,
|
HRESULT __cdecl wined3d_stateblock_set_clip_plane(struct wined3d_stateblock *stateblock,
|
||||||
|
|
Loading…
Reference in New Issue