Henri Verbeet : d3d10core: Implement ID3D10Device::DrawIndexed().
Alexandre Julliard
julliard at winehq.org
Fri Sep 11 10:52:19 CDT 2009
Module: wine
Branch: master
Commit: fa07d93730a59d21752daae08502cb454601af8c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa07d93730a59d21752daae08502cb454601af8c
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Sep 10 16:57:18 2009 +0200
d3d10core: Implement ID3D10Device::DrawIndexed().
---
dlls/d3d10core/device.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d10core/device.c b/dlls/d3d10core/device.c
index ed9b149..3808dfb 100644
--- a/dlls/d3d10core/device.c
+++ b/dlls/d3d10core/device.c
@@ -153,8 +153,13 @@ static void STDMETHODCALLTYPE d3d10_device_VSSetShader(ID3D10Device *iface, ID3D
static void STDMETHODCALLTYPE d3d10_device_DrawIndexed(ID3D10Device *iface,
UINT index_count, UINT start_index_location, INT base_vertex_location)
{
- FIXME("iface %p, index_count %u, start_index_location %u, base_vertex_location %d stub!\n",
+ struct d3d10_device *This = (struct d3d10_device *)iface;
+
+ TRACE("iface %p, index_count %u, start_index_location %u, base_vertex_location %d.\n",
iface, index_count, start_index_location, base_vertex_location);
+
+ IWineD3DDevice_SetBaseVertexIndex(This->wined3d_device, base_vertex_location);
+ IWineD3DDevice_DrawIndexedPrimitive(This->wined3d_device, start_index_location, index_count);
}
static void STDMETHODCALLTYPE d3d10_device_Draw(ID3D10Device *iface,
More information about the wine-cvs
mailing list