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
90bf1f2e
Commit
90bf1f2e
authored
Dec 24, 2002
by
Lionel Ulmer
Committed by
Alexandre Julliard
Dec 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combine texturing for D3D3 and 7 by thunking 3 to 7.
parent
49e119f9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
24 deletions
+25
-24
main.c
dlls/ddraw/d3ddevice/main.c
+12
-11
main.h
dlls/ddraw/d3ddevice/main.h
+6
-6
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+7
-7
No files found.
dlls/ddraw/d3ddevice/main.c
View file @
90bf1f2e
...
...
@@ -453,7 +453,7 @@ Main_IDirect3DDeviceImpl_7_GetTexture(LPDIRECT3DDEVICE7 iface,
}
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_7_SetTexture
(
LPDIRECT3DDEVICE7
iface
,
Main_IDirect3DDeviceImpl_7_
3T_
SetTexture
(
LPDIRECT3DDEVICE7
iface
,
DWORD
dwStage
,
LPDIRECTDRAWSURFACE7
lpTexture
)
{
...
...
@@ -827,16 +827,6 @@ Main_IDirect3DDeviceImpl_3_GetTexture(LPDIRECT3DDEVICE3 iface,
}
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_3_SetTexture
(
LPDIRECT3DDEVICE3
iface
,
DWORD
dwStage
,
LPDIRECT3DTEXTURE2
lpTexture2
)
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice3
,
iface
);
FIXME
(
"(%p/%p)->(%08lx,%p): stub!
\n
"
,
This
,
iface
,
dwStage
,
lpTexture2
);
return
DD_OK
;
}
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_2_SwapTextureHandles
(
LPDIRECT3DDEVICE2
iface
,
LPDIRECT3DTEXTURE2
lpD3DTex1
,
LPDIRECT3DTEXTURE2
lpD3DTex2
)
...
...
@@ -1728,3 +1718,14 @@ Thunk_IDirect3DDeviceImpl_1_EnumTextureFormats(LPDIRECT3DDEVICE iface,
lpD3DEnumTextureProc
,
lpArg
);
}
HRESULT
WINAPI
Thunk_IDirect3DDeviceImpl_3_SetTexture
(
LPDIRECT3DDEVICE3
iface
,
DWORD
dwStage
,
LPDIRECT3DTEXTURE2
lpTexture2
)
{
TRACE
(
"(%p)->(%ld,%p) thunking to IDirect3DDevice7 interface.
\n
"
,
iface
,
dwStage
,
lpTexture2
);
return
IDirect3DDevice7_SetTexture
(
COM_INTERFACE_CAST
(
IDirect3DDeviceImpl
,
IDirect3DDevice3
,
IDirect3DDevice7
,
iface
),
dwStage
,
COM_INTERFACE_CAST
(
IDirectDrawSurfaceImpl
,
IDirect3DTexture2
,
IDirectDrawSurface7
,
lpTexture2
));
}
dlls/ddraw/d3ddevice/main.h
View file @
90bf1f2e
...
...
@@ -206,7 +206,7 @@ Main_IDirect3DDeviceImpl_7_GetTexture(LPDIRECT3DDEVICE7 iface,
LPDIRECTDRAWSURFACE7
*
lpTexture
);
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_7_SetTexture
(
LPDIRECT3DDEVICE7
iface
,
Main_IDirect3DDeviceImpl_7_
3T_
SetTexture
(
LPDIRECT3DDEVICE7
iface
,
DWORD
dwStage
,
LPDIRECTDRAWSURFACE7
lpTexture
);
...
...
@@ -366,11 +366,6 @@ Main_IDirect3DDeviceImpl_3_GetTexture(LPDIRECT3DDEVICE3 iface,
LPDIRECT3DTEXTURE2
*
lplpTexture2
);
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_3_SetTexture
(
LPDIRECT3DDEVICE3
iface
,
DWORD
dwStage
,
LPDIRECT3DTEXTURE2
lpTexture2
);
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_2_SwapTextureHandles
(
LPDIRECT3DDEVICE2
iface
,
LPDIRECT3DTEXTURE2
lpD3DTex1
,
LPDIRECT3DTEXTURE2
lpD3DTex2
);
...
...
@@ -757,3 +752,8 @@ HRESULT WINAPI
Thunk_IDirect3DDeviceImpl_1_EnumTextureFormats
(
LPDIRECT3DDEVICE
iface
,
LPD3DENUMTEXTUREFORMATSCALLBACK
lpD3DEnumTextureProc
,
LPVOID
lpArg
);
HRESULT
WINAPI
Thunk_IDirect3DDeviceImpl_3_SetTexture
(
LPDIRECT3DDEVICE3
iface
,
DWORD
dwStage
,
LPDIRECT3DTEXTURE2
lpTexture2
);
dlls/ddraw/d3ddevice/mesa.c
View file @
90bf1f2e
...
...
@@ -1282,11 +1282,11 @@ GL_IDirect3DDeviceImpl_7_3T_SetTextureStageState(LPDIRECT3DDEVICE7 iface,
}
HRESULT
WINAPI
GL_IDirect3DDeviceImpl_
3_SetTexture
(
LPDIRECT3DDEVICE3
iface
,
GL_IDirect3DDeviceImpl_
7_3T_SetTexture
(
LPDIRECT3DDEVICE7
iface
,
DWORD
dwStage
,
LPDIRECT3DTEXTURE2
lpTexture2
)
LPDIRECTDRAWSURFACE7
lpTexture2
)
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice
3
,
iface
);
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice
7
,
iface
);
TRACE
(
"(%p/%p)->(%08lx,%p)
\n
"
,
This
,
iface
,
dwStage
,
lpTexture2
);
...
...
@@ -1301,11 +1301,11 @@ GL_IDirect3DDeviceImpl_3_SetTexture(LPDIRECT3DDEVICE3 iface,
glBindTexture
(
GL_TEXTURE_2D
,
0
);
glDisable
(
GL_TEXTURE_2D
);
}
else
{
IDirectDrawSurfaceImpl
*
tex_impl
=
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirect
3DTexture2
,
lpTexture2
);
IDirectDrawSurfaceImpl
*
tex_impl
=
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirect
DrawSurface7
,
lpTexture2
);
IDirect3DTextureGLImpl
*
tex_glimpl
=
(
IDirect3DTextureGLImpl
*
)
tex_impl
->
tex_private
;
This
->
current_texture
[
dwStage
]
=
tex_impl
;
IDirectDrawSurface7_AddRef
(
ICOM_INTERFACE
(
tex_impl
,
IDirectDrawSurface7
));
IDirectDrawSurface7_AddRef
(
ICOM_INTERFACE
(
tex_impl
,
IDirectDrawSurface7
));
/* Not sure about this either */
TRACE
(
" activating OpenGL texture %d.
\n
"
,
tex_glimpl
->
tex_name
);
...
...
@@ -1375,7 +1375,7 @@ ICOM_VTABLE(IDirect3DDevice7) VTABLE_IDirect3DDevice7 =
XCAST
(
DrawIndexedPrimitiveVB
)
Main_IDirect3DDeviceImpl_7_DrawIndexedPrimitiveVB
,
XCAST
(
ComputeSphereVisibility
)
Main_IDirect3DDeviceImpl_7_3T_ComputeSphereVisibility
,
XCAST
(
GetTexture
)
Main_IDirect3DDeviceImpl_7_GetTexture
,
XCAST
(
SetTexture
)
Main_IDirect3DDeviceImpl_7
_SetTexture
,
XCAST
(
SetTexture
)
GL_IDirect3DDeviceImpl_7_3T
_SetTexture
,
XCAST
(
GetTextureStageState
)
Main_IDirect3DDeviceImpl_7_3T_GetTextureStageState
,
XCAST
(
SetTextureStageState
)
GL_IDirect3DDeviceImpl_7_3T_SetTextureStageState
,
XCAST
(
ValidateDevice
)
Main_IDirect3DDeviceImpl_7_3T_ValidateDevice
,
...
...
@@ -1443,7 +1443,7 @@ ICOM_VTABLE(IDirect3DDevice3) VTABLE_IDirect3DDevice3 =
XCAST
(
DrawIndexedPrimitiveVB
)
Main_IDirect3DDeviceImpl_3_DrawIndexedPrimitiveVB
,
XCAST
(
ComputeSphereVisibility
)
Thunk_IDirect3DDeviceImpl_3_ComputeSphereVisibility
,
XCAST
(
GetTexture
)
Main_IDirect3DDeviceImpl_3_GetTexture
,
XCAST
(
SetTexture
)
GL
_IDirect3DDeviceImpl_3_SetTexture
,
XCAST
(
SetTexture
)
Thunk
_IDirect3DDeviceImpl_3_SetTexture
,
XCAST
(
GetTextureStageState
)
Thunk_IDirect3DDeviceImpl_3_GetTextureStageState
,
XCAST
(
SetTextureStageState
)
Thunk_IDirect3DDeviceImpl_3_SetTextureStageState
,
XCAST
(
ValidateDevice
)
Thunk_IDirect3DDeviceImpl_3_ValidateDevice
,
...
...
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