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
262240ad
Commit
262240ad
authored
Jun 06, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add IWineD3DDevice_GetBaseVertexIndex to retrieve the base vertex index.
parent
4b8d4424
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
device.c
dlls/wined3d/device.c
+12
-0
wined3d_interface.h
include/wine/wined3d_interface.h
+2
-0
No files found.
dlls/wined3d/device.c
View file @
262240ad
...
...
@@ -2813,6 +2813,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetBaseVertexIndex(IWineD3DDevice *ifac
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetBaseVertexIndex
(
IWineD3DDevice
*
iface
,
UINT
*
base_index
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : base_index %p
\n
"
,
This
,
base_index
);
*
base_index
=
This
->
stateBlock
->
baseVertexIndex
;
TRACE
(
"Returning %u
\n
"
,
*
base_index
);
return
WINED3D_OK
;
}
/*****
* Get / Set Viewports
*****/
...
...
@@ -6369,6 +6380,7 @@ const IWineD3DDeviceVtbl IWineD3DDevice_Vtbl =
IWineD3DDeviceImpl_SetIndices
,
IWineD3DDeviceImpl_GetIndices
,
IWineD3DDeviceImpl_SetBaseVertexIndex
,
IWineD3DDeviceImpl_GetBaseVertexIndex
,
IWineD3DDeviceImpl_SetLight
,
IWineD3DDeviceImpl_GetLight
,
IWineD3DDeviceImpl_SetLightEnable
,
...
...
include/wine/wined3d_interface.h
View file @
262240ad
...
...
@@ -406,6 +406,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
STDMETHOD
(
SetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
*
pIndexData
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
PURE
;
STDMETHOD
(
SetBaseVertexIndex
)(
THIS_
UINT
baseIndex
);
STDMETHOD
(
GetBaseVertexIndex
)(
THIS_
UINT
*
baseIndex
);
STDMETHOD
(
SetLight
)(
THIS_
DWORD
Index
,
CONST
WINED3DLIGHT
*
pLight
)
PURE
;
STDMETHOD
(
GetLight
)(
THIS_
DWORD
Index
,
WINED3DLIGHT
*
pLight
)
PURE
;
STDMETHOD
(
SetLightEnable
)(
THIS_
DWORD
Index
,
BOOL
Enable
)
PURE
;
...
...
@@ -542,6 +543,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
#define IWineD3DDevice_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
#define IWineD3DDevice_GetIndices(p,a,b) (p)->lpVtbl->GetIndices(p,a,b)
#define IWineD3DDevice_SetBaseVertexIndex(p, a) (p)->lpVtbl->SetBaseVertexIndex(p, a)
#define IWineD3DDevice_GetBaseVertexIndex(p,a) (p)->lpVtbl->GetBaseVertexIndex(p,a)
#define IWineD3DDevice_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
#define IWineD3DDevice_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
#define IWineD3DDevice_SetLightEnable(p,a,b) (p)->lpVtbl->SetLightEnable(p,a,b)
...
...
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