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
74c95ec0
Commit
74c95ec0
authored
Jan 03, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jan 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- more thunking in the D3DVertexBuffer COM object
- added 'support' for GetInfo
parent
d0f15692
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
33 deletions
+52
-33
main.c
dlls/ddraw/d3ddevice/main.c
+12
-1
d3dvertexbuffer.c
dlls/ddraw/d3dvertexbuffer.c
+40
-32
No files found.
dlls/ddraw/d3ddevice/main.c
View file @
74c95ec0
...
...
@@ -684,7 +684,18 @@ Main_IDirect3DDeviceImpl_7_GetInfo(LPDIRECT3DDEVICE7 iface,
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice7
,
iface
);
FIXME
(
"(%p/%p)->(%08lx,%p,%08lx): stub!
\n
"
,
This
,
iface
,
dwDevInfoID
,
pDevInfoStruct
,
dwSize
);
return
DD_OK
;
if
(
TRACE_ON
(
ddraw
))
{
TRACE
(
" info requested : "
);
switch
(
dwDevInfoID
)
{
case
D3DDEVINFOID_TEXTUREMANAGER
:
DPRINTF
(
"D3DDEVINFOID_TEXTUREMANAGER
\n
"
);
break
;
case
D3DDEVINFOID_D3DTEXTUREMANAGER
:
DPRINTF
(
"D3DDEVINFOID_D3DTEXTUREMANAGER
\n
"
);
break
;
case
D3DDEVINFOID_TEXTURING
:
DPRINTF
(
"D3DDEVINFOID_TEXTURING
\n
"
);
break
;
default:
ERR
(
" invalid flag !!!
\n
"
);
return
DDERR_INVALIDPARAMS
;
}
}
return
S_FALSE
;
/* According to MSDN, this is valid for a non-debug driver */
}
HRESULT
WINAPI
...
...
dlls/ddraw/d3dvertexbuffer.c
View file @
74c95ec0
...
...
@@ -117,14 +117,14 @@ Main_IDirect3DVertexBufferImpl_7_1T_Unlock(LPDIRECT3DVERTEXBUFFER7 iface)
}
HRESULT
WINAPI
Main_IDirect3DVertexBufferImpl_7_ProcessVertices
(
LPDIRECT3DVERTEXBUFFER7
iface
,
DWORD
dwVertexOp
,
DWORD
dwDestIndex
,
DWORD
dwCount
,
LPDIRECT3DVERTEXBUFFER7
lpSrcBuffer
,
DWORD
dwSrcIndex
,
LPDIRECT3DDEVICE7
lpD3DDevice
,
DWORD
dwFlags
)
Main_IDirect3DVertexBufferImpl_7_
1T_
ProcessVertices
(
LPDIRECT3DVERTEXBUFFER7
iface
,
DWORD
dwVertexOp
,
DWORD
dwDestIndex
,
DWORD
dwCount
,
LPDIRECT3DVERTEXBUFFER7
lpSrcBuffer
,
DWORD
dwSrcIndex
,
LPDIRECT3DDEVICE7
lpD3DDevice
,
DWORD
dwFlags
)
{
ICOM_THIS_FROM
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer7
,
iface
);
FIXME
(
"(%p/%p)->(%08lx,%08lx,%08lx,%p,%08lx,%p,%08lx): stub!
\n
"
,
This
,
iface
,
dwVertexOp
,
dwDestIndex
,
dwCount
,
lpSrcBuffer
,
dwSrcIndex
,
lpD3DDevice
,
dwFlags
);
...
...
@@ -149,9 +149,9 @@ Main_IDirect3DVertexBufferImpl_7_1T_GetVertexBufferDesc(LPDIRECT3DVERTEXBUFFER7
}
HRESULT
WINAPI
Main_IDirect3DVertexBufferImpl_7_Optimize
(
LPDIRECT3DVERTEXBUFFER7
iface
,
LPDIRECT3DDEVICE7
lpD3DDevice
,
DWORD
dwFlags
)
Main_IDirect3DVertexBufferImpl_7_
1T_
Optimize
(
LPDIRECT3DVERTEXBUFFER7
iface
,
LPDIRECT3DDEVICE7
lpD3DDevice
,
DWORD
dwFlags
)
{
ICOM_THIS_FROM
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer7
,
iface
);
FIXME
(
"(%p/%p)->(%p,%08lx): stub!
\n
"
,
This
,
iface
,
lpD3DDevice
,
dwFlags
);
...
...
@@ -177,28 +177,36 @@ Main_IDirect3DVertexBufferImpl_7_ProcessVerticesStrided(LPDIRECT3DVERTEXBUFFER7
}
HRESULT
WINAPI
Main
_IDirect3DVertexBufferImpl_1_ProcessVertices
(
LPDIRECT3DVERTEXBUFFER
iface
,
DWORD
dwVertexOp
,
DWORD
dwDestIndex
,
DWORD
dwCount
,
LPDIRECT3DVERTEXBUFFER
lpSrcBuffer
,
DWORD
dwSrcIndex
,
LPDIRECT3DDEVICE3
lpD3DDevice
,
DWORD
dwFlags
)
Thunk
_IDirect3DVertexBufferImpl_1_ProcessVertices
(
LPDIRECT3DVERTEXBUFFER
iface
,
DWORD
dwVertexOp
,
DWORD
dwDestIndex
,
DWORD
dwCount
,
LPDIRECT3DVERTEXBUFFER
lpSrcBuffer
,
DWORD
dwSrcIndex
,
LPDIRECT3DDEVICE3
lpD3DDevice
,
DWORD
dwFlags
)
{
ICOM_THIS_FROM
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer
,
iface
);
FIXME
(
"(%p/%p)->(%08lx,%08lx,%08lx,%p,%08lx,%p,%08lx): stub!
\n
"
,
This
,
iface
,
dwVertexOp
,
dwDestIndex
,
dwCount
,
lpSrcBuffer
,
dwSrcIndex
,
lpD3DDevice
,
dwFlags
);
return
DD_OK
;
TRACE
(
"(%p)->(%08lx,%08lx,%08lx,%p,%08lx,%p,%08lx) thunking to IDirect3DVertexBuffer7 interface.
\n
"
,
iface
,
dwVertexOp
,
dwDestIndex
,
dwCount
,
lpSrcBuffer
,
dwSrcIndex
,
lpD3DDevice
,
dwFlags
);
return
IDirect3DVertexBuffer7_ProcessVertices
(
COM_INTERFACE_CAST
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer
,
IDirect3DVertexBuffer7
,
iface
),
dwVertexOp
,
dwDestIndex
,
dwCount
,
COM_INTERFACE_CAST
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer
,
IDirect3DVertexBuffer7
,
lpSrcBuffer
),
dwSrcIndex
,
COM_INTERFACE_CAST
(
IDirect3DDeviceImpl
,
IDirect3DDevice3
,
IDirect3DDevice7
,
lpD3DDevice
),
dwFlags
);
}
HRESULT
WINAPI
Main
_IDirect3DVertexBufferImpl_1_Optimize
(
LPDIRECT3DVERTEXBUFFER
iface
,
LPDIRECT3DDEVICE3
lpD3DDevice
,
DWORD
dwFlags
)
Thunk
_IDirect3DVertexBufferImpl_1_Optimize
(
LPDIRECT3DVERTEXBUFFER
iface
,
LPDIRECT3DDEVICE3
lpD3DDevice
,
DWORD
dwFlags
)
{
ICOM_THIS_FROM
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer
,
iface
);
FIXME
(
"(%p/%p)->(%p,%08lx): stub!
\n
"
,
This
,
iface
,
lpD3DDevice
,
dwFlags
);
return
DD_OK
;
TRACE
(
"(%p)->(%p,%08lx) thunking to IDirect3DVertexBuffer7 interface.
\n
"
,
iface
,
lpD3DDevice
,
dwFlags
);
return
IDirect3DVertexBuffer7_Optimize
(
COM_INTERFACE_CAST
(
IDirect3DVertexBufferImpl
,
IDirect3DVertexBuffer
,
IDirect3DVertexBuffer7
,
iface
),
COM_INTERFACE_CAST
(
IDirect3DDeviceImpl
,
IDirect3DDevice3
,
IDirect3DDevice7
,
lpD3DDevice
),
dwFlags
);
}
HRESULT
WINAPI
...
...
@@ -269,9 +277,9 @@ ICOM_VTABLE(IDirect3DVertexBuffer7) VTABLE_IDirect3DVertexBuffer7 =
XCAST
(
Release
)
Main_IDirect3DVertexBufferImpl_7_1T_Release
,
XCAST
(
Lock
)
Main_IDirect3DVertexBufferImpl_7_1T_Lock
,
XCAST
(
Unlock
)
Main_IDirect3DVertexBufferImpl_7_1T_Unlock
,
XCAST
(
ProcessVertices
)
Main_IDirect3DVertexBufferImpl_7_ProcessVertices
,
XCAST
(
ProcessVertices
)
Main_IDirect3DVertexBufferImpl_7_
1T_
ProcessVertices
,
XCAST
(
GetVertexBufferDesc
)
Main_IDirect3DVertexBufferImpl_7_1T_GetVertexBufferDesc
,
XCAST
(
Optimize
)
Main_IDirect3DVertexBufferImpl_7_Optimize
,
XCAST
(
Optimize
)
Main_IDirect3DVertexBufferImpl_7_
1T_
Optimize
,
XCAST
(
ProcessVerticesStrided
)
Main_IDirect3DVertexBufferImpl_7_ProcessVerticesStrided
};
...
...
@@ -294,9 +302,9 @@ ICOM_VTABLE(IDirect3DVertexBuffer) VTABLE_IDirect3DVertexBuffer =
XCAST
(
Release
)
Thunk_IDirect3DVertexBufferImpl_1_Release
,
XCAST
(
Lock
)
Thunk_IDirect3DVertexBufferImpl_1_Lock
,
XCAST
(
Unlock
)
Thunk_IDirect3DVertexBufferImpl_1_Unlock
,
XCAST
(
ProcessVertices
)
Main
_IDirect3DVertexBufferImpl_1_ProcessVertices
,
XCAST
(
ProcessVertices
)
Thunk
_IDirect3DVertexBufferImpl_1_ProcessVertices
,
XCAST
(
GetVertexBufferDesc
)
Thunk_IDirect3DVertexBufferImpl_1_GetVertexBufferDesc
,
XCAST
(
Optimize
)
Main
_IDirect3DVertexBufferImpl_1_Optimize
XCAST
(
Optimize
)
Thunk
_IDirect3DVertexBufferImpl_1_Optimize
};
#if !defined(__STRICT_ANSI__) && defined(__GNUC__)
...
...
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