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
52231bc4
Commit
52231bc4
authored
Dec 07, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WineDirect3DVertexStridedData typedef.
parent
ada8ad76
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
device.c
dlls/ddraw/device.c
+0
-0
device.c
dlls/wined3d/device.c
+5
-5
drawprim.c
dlls/wined3d/drawprim.c
+4
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-2
wined3d.h
include/wine/wined3d.h
+5
-5
No files found.
dlls/ddraw/device.c
View file @
52231bc4
This diff is collapsed.
Click to expand it.
dlls/wined3d/device.c
View file @
52231bc4
...
...
@@ -353,7 +353,7 @@ static void stream_info_element_from_strided(const struct wined3d_gl_info *gl_in
}
static
void
device_stream_info_from_strided
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
WineDirect3DVertexStridedD
ata
*
strided
,
struct
wined3d_stream_info
*
stream_info
)
const
struct
wined3d_strided_d
ata
*
strided
,
struct
wined3d_stream_info
*
stream_info
)
{
unsigned
int
i
;
...
...
@@ -370,8 +370,8 @@ static void device_stream_info_from_strided(const struct wined3d_gl_info *gl_inf
for
(
i
=
0
;
i
<
WINED3DDP_MAXTEXCOORD
;
++
i
)
{
if
(
strided
->
tex
C
oords
[
i
].
data
)
stream_info_element_from_strided
(
gl_info
,
&
strided
->
tex
C
oords
[
i
],
if
(
strided
->
tex
_c
oords
[
i
].
data
)
stream_info_element_from_strided
(
gl_info
,
&
strided
->
tex
_c
oords
[
i
],
&
stream_info
->
elements
[
WINED3D_FFP_TEXCOORD0
+
i
]);
}
...
...
@@ -4249,7 +4249,7 @@ HRESULT CDECL wined3d_device_draw_indexed_primitive_up(struct wined3d_device *de
}
HRESULT
CDECL
wined3d_device_draw_primitive_strided
(
struct
wined3d_device
*
device
,
UINT
vertex_count
,
const
WineDirect3DVertexStridedD
ata
*
strided_data
)
UINT
vertex_count
,
const
struct
wined3d_strided_d
ata
*
strided_data
)
{
/* Mark the state dirty until we have nicer tracking. It's fine to change
* baseVertexIndex because that call is only called by ddraw which does
...
...
@@ -4274,7 +4274,7 @@ HRESULT CDECL wined3d_device_draw_primitive_strided(struct wined3d_device *devic
}
HRESULT
CDECL
wined3d_device_draw_indexed_primitive_strided
(
struct
wined3d_device
*
device
,
UINT
index_count
,
const
WineDirect3DVertexStridedD
ata
*
strided_data
,
UINT
index_count
,
const
struct
wined3d_strided_d
ata
*
strided_data
,
UINT
vertex_count
,
const
void
*
index_data
,
enum
wined3d_format_id
index_data_format_id
)
{
UINT
index_size
=
index_data_format_id
==
WINED3DFMT_R32_UINT
?
4
:
2
;
...
...
dlls/wined3d/drawprim.c
View file @
52231bc4
...
...
@@ -1136,11 +1136,11 @@ HRESULT tesselate_rectpatch(struct wined3d_device *This, struct WineD3DRectPatch
}
if
(
patch
->
has_texcoords
)
{
patch
->
strided
.
tex
C
oords
[
0
].
format
=
WINED3DFMT_R32G32B32A32_FLOAT
;
patch
->
strided
.
tex
C
oords
[
0
].
data
=
(
BYTE
*
)
patch
->
mem
+
3
*
sizeof
(
float
)
/* pos */
;
patch
->
strided
.
tex
_c
oords
[
0
].
format
=
WINED3DFMT_R32G32B32A32_FLOAT
;
patch
->
strided
.
tex
_c
oords
[
0
].
data
=
(
BYTE
*
)
patch
->
mem
+
3
*
sizeof
(
float
)
/* pos */
;
if
(
patch
->
has_normals
)
patch
->
strided
.
tex
C
oords
[
0
].
data
+=
3
*
sizeof
(
float
);
patch
->
strided
.
tex
C
oords
[
0
].
stride
=
vtxStride
;
patch
->
strided
.
tex
_c
oords
[
0
].
data
+=
3
*
sizeof
(
float
);
patch
->
strided
.
tex
_c
oords
[
0
].
stride
=
vtxStride
;
}
return
WINED3D_OK
;
...
...
dlls/wined3d/wined3d_private.h
View file @
52231bc4
...
...
@@ -1555,7 +1555,7 @@ struct WineD3DRectPatch
{
UINT
Handle
;
float
*
mem
;
WineDirect3DVertexStridedData
strided
;
struct
wined3d_strided_data
strided
;
struct
wined3d_rect_patch_info
rect_patch_info
;
float
numSegs
[
4
];
char
has_normals
,
has_texcoords
;
...
...
@@ -1746,7 +1746,7 @@ struct wined3d_device
/* Stream source management */
struct
wined3d_stream_info
strided_streams
;
const
WineDirect3DVertexStridedD
ata
*
up_strided
;
const
struct
wined3d_strided_d
ata
*
up_strided
;
struct
wined3d_event_query
*
buffer_queries
[
MAX_ATTRIBS
];
unsigned
int
num_buffer_queries
;
...
...
include/wine/wined3d.h
View file @
52231bc4
...
...
@@ -1732,15 +1732,15 @@ struct wined3d_strided_element
UINT
stride
;
/* Stride between occurrences of this data */
};
typedef
struct
WineDirect3DVertexStridedD
ata
struct
wined3d_strided_d
ata
{
struct
wined3d_strided_element
position
;
struct
wined3d_strided_element
normal
;
struct
wined3d_strided_element
diffuse
;
struct
wined3d_strided_element
specular
;
struct
wined3d_strided_element
tex
C
oords
[
WINED3DDP_MAXTEXCOORD
];
struct
wined3d_strided_element
tex
_c
oords
[
WINED3DDP_MAXTEXCOORD
];
BOOL
position_transformed
;
}
WineDirect3DVertexStridedData
;
};
typedef
struct
_WINED3DVSHADERCAPS2_0
{
...
...
@@ -2109,14 +2109,14 @@ ULONG __cdecl wined3d_device_decref(struct wined3d_device *device);
HRESULT
__cdecl
wined3d_device_delete_patch
(
struct
wined3d_device
*
device
,
UINT
handle
);
HRESULT
__cdecl
wined3d_device_draw_indexed_primitive
(
struct
wined3d_device
*
device
,
UINT
start_idx
,
UINT
index_count
);
HRESULT
__cdecl
wined3d_device_draw_indexed_primitive_strided
(
struct
wined3d_device
*
device
,
UINT
index_count
,
const
WineDirect3DVertexStridedD
ata
*
strided_data
,
UINT
vertex_count
,
const
void
*
index_data
,
const
struct
wined3d_strided_d
ata
*
strided_data
,
UINT
vertex_count
,
const
void
*
index_data
,
enum
wined3d_format_id
index_data_format_id
);
HRESULT
__cdecl
wined3d_device_draw_indexed_primitive_up
(
struct
wined3d_device
*
device
,
UINT
index_count
,
const
void
*
index_data
,
enum
wined3d_format_id
index_data_format_id
,
const
void
*
stream_data
,
UINT
stream_stride
);
HRESULT
__cdecl
wined3d_device_draw_primitive
(
struct
wined3d_device
*
device
,
UINT
start_vertex
,
UINT
vertex_count
);
HRESULT
__cdecl
wined3d_device_draw_primitive_strided
(
struct
wined3d_device
*
device
,
UINT
vertex_count
,
const
WineDirect3DVertexStridedD
ata
*
strided_data
);
UINT
vertex_count
,
const
struct
wined3d_strided_d
ata
*
strided_data
);
HRESULT
__cdecl
wined3d_device_draw_primitive_up
(
struct
wined3d_device
*
device
,
UINT
vertex_count
,
const
void
*
stream_data
,
UINT
stream_stride
);
HRESULT
__cdecl
wined3d_device_draw_rect_patch
(
struct
wined3d_device
*
device
,
UINT
handle
,
...
...
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