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
e9cbc66e
Commit
e9cbc66e
authored
Jun 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make the virtual table functions static where possible.
parent
6c5eff90
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
363 additions
and
363 deletions
+363
-363
cubetexture.c
dlls/wined3d/cubetexture.c
+29
-29
device.c
dlls/wined3d/device.c
+137
-137
directx.c
dlls/wined3d/directx.c
+18
-18
indexbuffer.c
dlls/wined3d/indexbuffer.c
+15
-15
palette.c
dlls/wined3d/palette.c
+7
-7
pixelshader.c
dlls/wined3d/pixelshader.c
+7
-7
query.c
dlls/wined3d/query.c
+9
-9
stateblock.c
dlls/wined3d/stateblock.c
+8
-8
surface.c
dlls/wined3d/surface.c
+7
-7
surface_gdi.c
dlls/wined3d/surface_gdi.c
+4
-4
swapchain.c
dlls/wined3d/swapchain.c
+13
-13
texture.c
dlls/wined3d/texture.c
+29
-29
vertexbuffer.c
dlls/wined3d/vertexbuffer.c
+15
-15
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+8
-8
vertexshader.c
dlls/wined3d/vertexshader.c
+7
-7
volume.c
dlls/wined3d/volume.c
+21
-21
volumetexture.c
dlls/wined3d/volumetexture.c
+29
-29
No files found.
dlls/wined3d/cubetexture.c
View file @
e9cbc66e
...
@@ -47,7 +47,7 @@ static const GLenum cube_targets[6] = {
...
@@ -47,7 +47,7 @@ static const GLenum cube_targets[6] = {
/* *******************************************
/* *******************************************
IWineD3DCubeTexture IUnknown parts follow
IWineD3DCubeTexture IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DCubeTextureImpl_QueryInterface
(
IWineD3DCubeTexture
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_QueryInterface
(
IWineD3DCubeTexture
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -64,13 +64,13 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_QueryInterface(IWineD3DCubeTexture *iface
...
@@ -64,13 +64,13 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_QueryInterface(IWineD3DCubeTexture *iface
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DCubeTextureImpl_AddRef
(
IWineD3DCubeTexture
*
iface
)
{
static
ULONG
WINAPI
IWineD3DCubeTextureImpl_AddRef
(
IWineD3DCubeTexture
*
iface
)
{
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
}
}
ULONG
WINAPI
IWineD3DCubeTextureImpl_Release
(
IWineD3DCubeTexture
*
iface
)
{
static
ULONG
WINAPI
IWineD3DCubeTextureImpl_Release
(
IWineD3DCubeTexture
*
iface
)
{
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
...
@@ -105,31 +105,31 @@ ULONG WINAPI IWineD3DCubeTextureImpl_Release(IWineD3DCubeTexture *iface) {
...
@@ -105,31 +105,31 @@ ULONG WINAPI IWineD3DCubeTextureImpl_Release(IWineD3DCubeTexture *iface) {
/* ****************************************************
/* ****************************************************
IWineD3DCubeTexture IWineD3DResource parts follow
IWineD3DCubeTexture IWineD3DResource parts follow
**************************************************** */
**************************************************** */
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetDevice
(
IWineD3DCubeTexture
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetDevice
(
IWineD3DCubeTexture
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_SetPrivateData
(
IWineD3DCubeTexture
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_SetPrivateData
(
IWineD3DCubeTexture
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetPrivateData
(
IWineD3DCubeTexture
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetPrivateData
(
IWineD3DCubeTexture
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_FreePrivateData
(
IWineD3DCubeTexture
*
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_FreePrivateData
(
IWineD3DCubeTexture
*
iface
,
REFGUID
refguid
)
{
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
}
}
DWORD
WINAPI
IWineD3DCubeTextureImpl_SetPriority
(
IWineD3DCubeTexture
*
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_SetPriority
(
IWineD3DCubeTexture
*
iface
,
DWORD
PriorityNew
)
{
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
}
DWORD
WINAPI
IWineD3DCubeTextureImpl_GetPriority
(
IWineD3DCubeTexture
*
iface
)
{
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_GetPriority
(
IWineD3DCubeTexture
*
iface
)
{
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
}
}
void
WINAPI
IWineD3DCubeTextureImpl_PreLoad
(
IWineD3DCubeTexture
*
iface
)
{
static
void
WINAPI
IWineD3DCubeTextureImpl_PreLoad
(
IWineD3DCubeTexture
*
iface
)
{
/* Override the IWineD3DResource Preload method */
/* Override the IWineD3DResource Preload method */
unsigned
int
i
,
j
;
unsigned
int
i
,
j
;
BOOL
setGlTextureDesc
=
FALSE
;
BOOL
setGlTextureDesc
=
FALSE
;
...
@@ -158,71 +158,71 @@ void WINAPI IWineD3DCubeTextureImpl_PreLoad(IWineD3DCubeTexture *iface) {
...
@@ -158,71 +158,71 @@ void WINAPI IWineD3DCubeTextureImpl_PreLoad(IWineD3DCubeTexture *iface) {
return
;
return
;
}
}
WINED3DRESOURCETYPE
WINAPI
IWineD3DCubeTextureImpl_GetType
(
IWineD3DCubeTexture
*
iface
)
{
static
WINED3DRESOURCETYPE
WINAPI
IWineD3DCubeTextureImpl_GetType
(
IWineD3DCubeTexture
*
iface
)
{
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetParent
(
IWineD3DCubeTexture
*
iface
,
IUnknown
**
pParent
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetParent
(
IWineD3DCubeTexture
*
iface
,
IUnknown
**
pParent
)
{
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
}
}
/* ******************************************************
/* ******************************************************
IWineD3DCubeTexture IWineD3DBaseTexture parts follow
IWineD3DCubeTexture IWineD3DBaseTexture parts follow
****************************************************** */
****************************************************** */
DWORD
WINAPI
IWineD3DCubeTextureImpl_SetLOD
(
IWineD3DCubeTexture
*
iface
,
DWORD
LODNew
)
{
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_SetLOD
(
IWineD3DCubeTexture
*
iface
,
DWORD
LODNew
)
{
return
IWineD3DBaseTextureImpl_SetLOD
((
IWineD3DBaseTexture
*
)
iface
,
LODNew
);
return
IWineD3DBaseTextureImpl_SetLOD
((
IWineD3DBaseTexture
*
)
iface
,
LODNew
);
}
}
DWORD
WINAPI
IWineD3DCubeTextureImpl_GetLOD
(
IWineD3DCubeTexture
*
iface
)
{
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_GetLOD
(
IWineD3DCubeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetLOD
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetLOD
((
IWineD3DBaseTexture
*
)
iface
);
}
}
DWORD
WINAPI
IWineD3DCubeTextureImpl_GetLevelCount
(
IWineD3DCubeTexture
*
iface
)
{
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_GetLevelCount
(
IWineD3DCubeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetLevelCount
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetLevelCount
((
IWineD3DBaseTexture
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_SetAutoGenFilterType
(
IWineD3DCubeTexture
*
iface
,
WINED3DTEXTUREFILTERTYPE
FilterType
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_SetAutoGenFilterType
(
IWineD3DCubeTexture
*
iface
,
WINED3DTEXTUREFILTERTYPE
FilterType
)
{
return
IWineD3DBaseTextureImpl_SetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
,
FilterType
);
return
IWineD3DBaseTextureImpl_SetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
,
FilterType
);
}
}
WINED3DTEXTUREFILTERTYPE
WINAPI
IWineD3DCubeTextureImpl_GetAutoGenFilterType
(
IWineD3DCubeTexture
*
iface
)
{
static
WINED3DTEXTUREFILTERTYPE
WINAPI
IWineD3DCubeTextureImpl_GetAutoGenFilterType
(
IWineD3DCubeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
);
}
}
void
WINAPI
IWineD3DCubeTextureImpl_GenerateMipSubLevels
(
IWineD3DCubeTexture
*
iface
)
{
static
void
WINAPI
IWineD3DCubeTextureImpl_GenerateMipSubLevels
(
IWineD3DCubeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GenerateMipSubLevels
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GenerateMipSubLevels
((
IWineD3DBaseTexture
*
)
iface
);
}
}
/* Internal function, No d3d mapping */
/* Internal function, No d3d mapping */
BOOL
WINAPI
IWineD3DCubeTextureImpl_SetDirty
(
IWineD3DCubeTexture
*
iface
,
BOOL
dirty
)
{
static
BOOL
WINAPI
IWineD3DCubeTextureImpl_SetDirty
(
IWineD3DCubeTexture
*
iface
,
BOOL
dirty
)
{
return
IWineD3DBaseTextureImpl_SetDirty
((
IWineD3DBaseTexture
*
)
iface
,
dirty
);
return
IWineD3DBaseTextureImpl_SetDirty
((
IWineD3DBaseTexture
*
)
iface
,
dirty
);
}
}
/* Internal function, No d3d mapping */
/* Internal function, No d3d mapping */
BOOL
WINAPI
IWineD3DCubeTextureImpl_GetDirty
(
IWineD3DCubeTexture
*
iface
)
{
static
BOOL
WINAPI
IWineD3DCubeTextureImpl_GetDirty
(
IWineD3DCubeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetDirty
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetDirty
((
IWineD3DBaseTexture
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_BindTexture
(
IWineD3DCubeTexture
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_BindTexture
(
IWineD3DCubeTexture
*
iface
)
{
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
return
IWineD3DBaseTextureImpl_BindTexture
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_BindTexture
((
IWineD3DBaseTexture
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_UnBindTexture
(
IWineD3DCubeTexture
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_UnBindTexture
(
IWineD3DCubeTexture
*
iface
)
{
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
return
IWineD3DBaseTextureImpl_UnBindTexture
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_UnBindTexture
((
IWineD3DBaseTexture
*
)
iface
);
}
}
UINT
WINAPI
IWineD3DCubeTextureImpl_GetTextureDimensions
(
IWineD3DCubeTexture
*
iface
){
static
UINT
WINAPI
IWineD3DCubeTextureImpl_GetTextureDimensions
(
IWineD3DCubeTexture
*
iface
){
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
return
GL_TEXTURE_CUBE_MAP_ARB
;
return
GL_TEXTURE_CUBE_MAP_ARB
;
}
}
void
WINAPI
IWineD3DCubeTextureImpl_ApplyStateChanges
(
IWineD3DCubeTexture
*
iface
,
static
void
WINAPI
IWineD3DCubeTextureImpl_ApplyStateChanges
(
IWineD3DCubeTexture
*
iface
,
const
DWORD
textureStates
[
WINED3D_HIGHEST_TEXTURE_STATE
+
1
],
const
DWORD
textureStates
[
WINED3D_HIGHEST_TEXTURE_STATE
+
1
],
const
DWORD
samplerStates
[
WINED3D_HIGHEST_SAMPLER_STATE
+
1
])
{
const
DWORD
samplerStates
[
WINED3D_HIGHEST_SAMPLER_STATE
+
1
])
{
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
...
@@ -263,7 +263,7 @@ void WINAPI IWineD3DCubeTextureImpl_ApplyStateChanges(IWineD3DCubeTexture *iface
...
@@ -263,7 +263,7 @@ void WINAPI IWineD3DCubeTextureImpl_ApplyStateChanges(IWineD3DCubeTexture *iface
/* *******************************************
/* *******************************************
IWineD3DCubeTexture IWineD3DCubeTexture parts follow
IWineD3DCubeTexture IWineD3DCubeTexture parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetLevelDesc
(
IWineD3DCubeTexture
*
iface
,
UINT
Level
,
WINED3DSURFACE_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetLevelDesc
(
IWineD3DCubeTexture
*
iface
,
UINT
Level
,
WINED3DSURFACE_DESC
*
pDesc
)
{
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
if
(
Level
<
This
->
baseTexture
.
levels
)
{
if
(
Level
<
This
->
baseTexture
.
levels
)
{
...
@@ -274,7 +274,7 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_GetLevelDesc(IWineD3DCubeTexture *iface,
...
@@ -274,7 +274,7 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_GetLevelDesc(IWineD3DCubeTexture *iface,
return
WINED3DERR_INVALIDCALL
;
return
WINED3DERR_INVALIDCALL
;
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetCubeMapSurface
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
IWineD3DSurface
**
ppCubeMapSurface
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_GetCubeMapSurface
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
IWineD3DSurface
**
ppCubeMapSurface
)
{
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
...
@@ -293,7 +293,7 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_GetCubeMapSurface(IWineD3DCubeTexture *if
...
@@ -293,7 +293,7 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_GetCubeMapSurface(IWineD3DCubeTexture *if
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_LockRect
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
WINED3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_LockRect
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
WINED3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
...
@@ -310,7 +310,7 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_LockRect(IWineD3DCubeTexture *iface, WINE
...
@@ -310,7 +310,7 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_LockRect(IWineD3DCubeTexture *iface, WINE
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_UnlockRect
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_UnlockRect
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
)
{
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
...
@@ -326,7 +326,7 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_UnlockRect(IWineD3DCubeTexture *iface, WI
...
@@ -326,7 +326,7 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_UnlockRect(IWineD3DCubeTexture *iface, WI
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_AddDirtyRect
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
CONST
RECT
*
pDirtyRect
)
{
static
HRESULT
WINAPI
IWineD3DCubeTextureImpl_AddDirtyRect
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
CONST
RECT
*
pDirtyRect
)
{
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
This
->
baseTexture
.
dirty
=
TRUE
;
This
->
baseTexture
.
dirty
=
TRUE
;
...
...
dlls/wined3d/device.c
View file @
e9cbc66e
...
@@ -418,7 +418,7 @@ static void delete_glsl_shader_list(IWineD3DDevice* iface) {
...
@@ -418,7 +418,7 @@ static void delete_glsl_shader_list(IWineD3DDevice* iface) {
/* Apply the current values to the specified texture stage */
/* Apply the current values to the specified texture stage */
void
WINAPI
IWineD3DDeviceImpl_SetupTextureStates
(
IWineD3DDevice
*
iface
,
DWORD
Sampler
,
DWORD
Flags
)
{
static
void
WINAPI
IWineD3DDeviceImpl_SetupTextureStates
(
IWineD3DDevice
*
iface
,
DWORD
Sampler
,
DWORD
Flags
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
float
col
[
4
];
float
col
[
4
];
...
@@ -531,7 +531,7 @@ void WINAPI IWineD3DDeviceImpl_SetupTextureStates(IWineD3DDevice *iface, DWORD S
...
@@ -531,7 +531,7 @@ void WINAPI IWineD3DDeviceImpl_SetupTextureStates(IWineD3DDevice *iface, DWORD S
* IUnknown parts follows
* IUnknown parts follows
**********************************************************/
**********************************************************/
HRESULT
WINAPI
IWineD3DDeviceImpl_QueryInterface
(
IWineD3DDevice
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DDeviceImpl_QueryInterface
(
IWineD3DDevice
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -547,7 +547,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_QueryInterface(IWineD3DDevice *iface,REFIID ri
...
@@ -547,7 +547,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_QueryInterface(IWineD3DDevice *iface,REFIID ri
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DDeviceImpl_AddRef
(
IWineD3DDevice
*
iface
)
{
static
ULONG
WINAPI
IWineD3DDeviceImpl_AddRef
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
@@ -555,7 +555,7 @@ ULONG WINAPI IWineD3DDeviceImpl_AddRef(IWineD3DDevice *iface) {
...
@@ -555,7 +555,7 @@ ULONG WINAPI IWineD3DDeviceImpl_AddRef(IWineD3DDevice *iface) {
return
refCount
;
return
refCount
;
}
}
ULONG
WINAPI
IWineD3DDeviceImpl_Release
(
IWineD3DDevice
*
iface
)
{
static
ULONG
WINAPI
IWineD3DDeviceImpl_Release
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
@@ -607,14 +607,14 @@ ULONG WINAPI IWineD3DDeviceImpl_Release(IWineD3DDevice *iface) {
...
@@ -607,14 +607,14 @@ ULONG WINAPI IWineD3DDeviceImpl_Release(IWineD3DDevice *iface) {
/**********************************************************
/**********************************************************
* IWineD3DDevice implementation follows
* IWineD3DDevice implementation follows
**********************************************************/
**********************************************************/
HRESULT
WINAPI
IWineD3DDeviceImpl_GetParent
(
IWineD3DDevice
*
iface
,
IUnknown
**
pParent
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetParent
(
IWineD3DDevice
*
iface
,
IUnknown
**
pParent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
*
pParent
=
This
->
parent
;
*
pParent
=
This
->
parent
;
IUnknown_AddRef
(
This
->
parent
);
IUnknown_AddRef
(
This
->
parent
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexBuffer
(
IWineD3DDevice
*
iface
,
UINT
Size
,
DWORD
Usage
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexBuffer
(
IWineD3DDevice
*
iface
,
UINT
Size
,
DWORD
Usage
,
DWORD
FVF
,
WINED3DPOOL
Pool
,
IWineD3DVertexBuffer
**
ppVertexBuffer
,
HANDLE
*
sharedHandle
,
DWORD
FVF
,
WINED3DPOOL
Pool
,
IWineD3DVertexBuffer
**
ppVertexBuffer
,
HANDLE
*
sharedHandle
,
IUnknown
*
parent
)
{
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -634,7 +634,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexBuffer(IWineD3DDevice *iface, UINT
...
@@ -634,7 +634,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexBuffer(IWineD3DDevice *iface, UINT
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateIndexBuffer
(
IWineD3DDevice
*
iface
,
UINT
Length
,
DWORD
Usage
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateIndexBuffer
(
IWineD3DDevice
*
iface
,
UINT
Length
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
IWineD3DIndexBuffer
**
ppIndexBuffer
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
IWineD3DIndexBuffer
**
ppIndexBuffer
,
HANDLE
*
sharedHandle
,
IUnknown
*
parent
)
{
HANDLE
*
sharedHandle
,
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -656,7 +656,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateIndexBuffer(IWineD3DDevice *iface, UINT
...
@@ -656,7 +656,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateIndexBuffer(IWineD3DDevice *iface, UINT
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateStateBlock
(
IWineD3DDevice
*
iface
,
WINED3DSTATEBLOCKTYPE
Type
,
IWineD3DStateBlock
**
ppStateBlock
,
IUnknown
*
parent
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateStateBlock
(
IWineD3DDevice
*
iface
,
WINED3DSTATEBLOCKTYPE
Type
,
IWineD3DStateBlock
**
ppStateBlock
,
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
object
;
IWineD3DStateBlockImpl
*
object
;
...
@@ -793,7 +793,7 @@ If this flag is set, the contents of the depth stencil buffer will be invalid af
...
@@ -793,7 +793,7 @@ If this flag is set, the contents of the depth stencil buffer will be invalid af
******************************** */
******************************** */
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateSurface
(
IWineD3DDevice
*
iface
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
WINED3DRESOURCETYPE
Type
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
WINED3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
HANDLE
*
pSharedHandle
,
WINED3DSURFTYPE
Impl
,
IUnknown
*
parent
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateSurface
(
IWineD3DDevice
*
iface
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
WINED3DRESOURCETYPE
Type
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
WINED3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
HANDLE
*
pSharedHandle
,
WINED3DSURFTYPE
Impl
,
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
object
;
/*NOTE: impl ref allowed since this is a create function */
IWineD3DSurfaceImpl
*
object
;
/*NOTE: impl ref allowed since this is a create function */
unsigned
int
pow2Width
,
pow2Height
;
unsigned
int
pow2Width
,
pow2Height
;
...
@@ -984,7 +984,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateSurface(IWineD3DDevice *iface, UINT Wid
...
@@ -984,7 +984,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateSurface(IWineD3DDevice *iface, UINT Wid
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateTexture
(
IWineD3DDevice
*
iface
,
UINT
Width
,
UINT
Height
,
UINT
Levels
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateTexture
(
IWineD3DDevice
*
iface
,
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
IWineD3DTexture
**
ppTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
,
IWineD3DTexture
**
ppTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
,
D3DCB_CREATESURFACEFN
D3DCB_CreateSurface
)
{
D3DCB_CREATESURFACEFN
D3DCB_CreateSurface
)
{
...
@@ -1067,7 +1067,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateTexture(IWineD3DDevice *iface, UINT Wid
...
@@ -1067,7 +1067,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateTexture(IWineD3DDevice *iface, UINT Wid
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVolumeTexture
(
IWineD3DDevice
*
iface
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVolumeTexture
(
IWineD3DDevice
*
iface
,
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Levels
,
DWORD
Usage
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
...
@@ -1139,7 +1139,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *iface,
...
@@ -1139,7 +1139,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *iface,
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVolume
(
IWineD3DDevice
*
iface
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVolume
(
IWineD3DDevice
*
iface
,
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Width
,
UINT
Height
,
UINT
Depth
,
DWORD
Usage
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
...
@@ -1168,7 +1168,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVolume(IWineD3DDevice *iface,
...
@@ -1168,7 +1168,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVolume(IWineD3DDevice *iface,
return
IWineD3DVolume_AddDirtyBox
((
IWineD3DVolume
*
)
object
,
NULL
);
return
IWineD3DVolume_AddDirtyBox
((
IWineD3DVolume
*
)
object
,
NULL
);
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateCubeTexture
(
IWineD3DDevice
*
iface
,
UINT
EdgeLength
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateCubeTexture
(
IWineD3DDevice
*
iface
,
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
IWineD3DCubeTexture
**
ppCubeTexture
,
IWineD3DCubeTexture
**
ppCubeTexture
,
...
@@ -1255,7 +1255,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface, UINT
...
@@ -1255,7 +1255,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface, UINT
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateQuery
(
IWineD3DDevice
*
iface
,
WINED3DQUERYTYPE
Type
,
IWineD3DQuery
**
ppQuery
,
IUnknown
*
parent
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateQuery
(
IWineD3DDevice
*
iface
,
WINED3DQUERYTYPE
Type
,
IWineD3DQuery
**
ppQuery
,
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DQueryImpl
*
object
;
/*NOTE: impl ref allowed since this is a create function */
IWineD3DQueryImpl
*
object
;
/*NOTE: impl ref allowed since this is a create function */
...
@@ -1321,7 +1321,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateQuery(IWineD3DDevice *iface, WINED3DQUER
...
@@ -1321,7 +1321,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateQuery(IWineD3DDevice *iface, WINED3DQUER
}
}
/* example at http://www.fairyengine.com/articles/dxmultiviews.htm */
/* example at http://www.fairyengine.com/articles/dxmultiviews.htm */
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateAdditionalSwapChain
(
IWineD3DDevice
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IWineD3DSwapChain
**
ppSwapChain
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateAdditionalSwapChain
(
IWineD3DDevice
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IWineD3DSwapChain
**
ppSwapChain
,
IUnknown
*
parent
,
IUnknown
*
parent
,
D3DCB_CREATERENDERTARGETFN
D3DCB_CreateRenderTarget
,
D3DCB_CREATERENDERTARGETFN
D3DCB_CreateRenderTarget
,
D3DCB_CREATEDEPTHSTENCILSURFACEFN
D3DCB_CreateDepthStencil
)
{
D3DCB_CREATEDEPTHSTENCILSURFACEFN
D3DCB_CreateDepthStencil
)
{
...
@@ -1727,14 +1727,14 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevice* ifac
...
@@ -1727,14 +1727,14 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevice* ifac
}
}
/** NOTE: These are ahead of the other getters and setters to save using a forward declaration **/
/** NOTE: These are ahead of the other getters and setters to save using a forward declaration **/
UINT
WINAPI
IWineD3DDeviceImpl_GetNumberOfSwapChains
(
IWineD3DDevice
*
iface
)
{
static
UINT
WINAPI
IWineD3DDeviceImpl_GetNumberOfSwapChains
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
return
This
->
NumberOfSwapChains
;
return
This
->
NumberOfSwapChains
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetSwapChain
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
IWineD3DSwapChain
**
pSwapChain
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetSwapChain
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
IWineD3DSwapChain
**
pSwapChain
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : swapchain %d
\n
"
,
This
,
iSwapChain
);
TRACE
(
"(%p) : swapchain %d
\n
"
,
This
,
iSwapChain
);
...
@@ -1753,7 +1753,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetSwapChain(IWineD3DDevice *iface, UINT iSw
...
@@ -1753,7 +1753,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetSwapChain(IWineD3DDevice *iface, UINT iSw
/*****
/*****
* Vertex Declaration
* Vertex Declaration
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexDeclaration
(
IWineD3DDevice
*
iface
,
CONST
VOID
*
pDeclaration
,
IWineD3DVertexDeclaration
**
ppVertexDeclaration
,
IUnknown
*
parent
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexDeclaration
(
IWineD3DDevice
*
iface
,
CONST
VOID
*
pDeclaration
,
IWineD3DVertexDeclaration
**
ppVertexDeclaration
,
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
object
=
NULL
;
IWineD3DVertexDeclarationImpl
*
object
=
NULL
;
HRESULT
hr
=
WINED3D_OK
;
HRESULT
hr
=
WINED3D_OK
;
...
@@ -1767,7 +1767,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexDeclaration(IWineD3DDevice* iface,
...
@@ -1767,7 +1767,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexDeclaration(IWineD3DDevice* iface,
}
}
/* http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/graphics/programmingguide/programmable/vertexshaders/vscreate.asp */
/* http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/graphics/programmingguide/programmable/vertexshaders/vscreate.asp */
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexShader
(
IWineD3DDevice
*
iface
,
CONST
DWORD
*
pDeclaration
,
CONST
DWORD
*
pFunction
,
IWineD3DVertexShader
**
ppVertexShader
,
IUnknown
*
parent
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexShader
(
IWineD3DDevice
*
iface
,
CONST
DWORD
*
pDeclaration
,
CONST
DWORD
*
pFunction
,
IWineD3DVertexShader
**
ppVertexShader
,
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DVertexShaderImpl
*
object
;
/* NOTE: impl usage is ok, this is a create */
IWineD3DVertexShaderImpl
*
object
;
/* NOTE: impl usage is ok, this is a create */
HRESULT
hr
=
WINED3D_OK
;
HRESULT
hr
=
WINED3D_OK
;
...
@@ -1811,7 +1811,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexShader(IWineD3DDevice *iface, CONS
...
@@ -1811,7 +1811,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexShader(IWineD3DDevice *iface, CONS
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreatePixelShader
(
IWineD3DDevice
*
iface
,
CONST
DWORD
*
pFunction
,
IWineD3DPixelShader
**
ppPixelShader
,
IUnknown
*
parent
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreatePixelShader
(
IWineD3DDevice
*
iface
,
CONST
DWORD
*
pFunction
,
IWineD3DPixelShader
**
ppPixelShader
,
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DPixelShaderImpl
*
object
;
/* NOTE: impl allowed, this is a create */
IWineD3DPixelShaderImpl
*
object
;
/* NOTE: impl allowed, this is a create */
HRESULT
hr
=
WINED3D_OK
;
HRESULT
hr
=
WINED3D_OK
;
...
@@ -1828,7 +1828,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreatePixelShader(IWineD3DDevice *iface, CONST
...
@@ -1828,7 +1828,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreatePixelShader(IWineD3DDevice *iface, CONST
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_CreatePalette
(
IWineD3DDevice
*
iface
,
DWORD
Flags
,
PALETTEENTRY
*
PalEnt
,
IWineD3DPalette
**
Palette
,
IUnknown
*
Parent
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreatePalette
(
IWineD3DDevice
*
iface
,
DWORD
Flags
,
PALETTEENTRY
*
PalEnt
,
IWineD3DPalette
**
Palette
,
IUnknown
*
Parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DPaletteImpl
*
object
;
IWineD3DPaletteImpl
*
object
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -1866,7 +1866,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreatePalette(IWineD3DDevice *iface, DWORD Fla
...
@@ -1866,7 +1866,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreatePalette(IWineD3DDevice *iface, DWORD Fla
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_Init3D
(
IWineD3DDevice
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
D3DCB_CREATEADDITIONALSWAPCHAIN
D3DCB_CreateAdditionalSwapChain
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Init3D
(
IWineD3DDevice
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
D3DCB_CREATEADDITIONALSWAPCHAIN
D3DCB_CreateAdditionalSwapChain
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
swapchain
;
IWineD3DSwapChainImpl
*
swapchain
;
...
@@ -1950,7 +1950,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPRESENT_P
...
@@ -1950,7 +1950,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPRESENT_P
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_Uninit3D
(
IWineD3DDevice
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Uninit3D
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
texstage
;
int
texstage
;
IUnknown
*
stencilBufferParent
;
IUnknown
*
stencilBufferParent
;
...
@@ -2004,7 +2004,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface) {
...
@@ -2004,7 +2004,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface) {
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_EnumDisplayModes
(
IWineD3DDevice
*
iface
,
DWORD
Flags
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
pixelformat
,
LPVOID
context
,
D3DCB_ENUMDISPLAYMODESCALLBACK
callback
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_EnumDisplayModes
(
IWineD3DDevice
*
iface
,
DWORD
Flags
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
pixelformat
,
LPVOID
context
,
D3DCB_ENUMDISPLAYMODESCALLBACK
callback
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
DEVMODEW
DevModeW
;
DEVMODEW
DevModeW
;
...
@@ -2027,7 +2027,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EnumDisplayModes(IWineD3DDevice *iface, DWORD
...
@@ -2027,7 +2027,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EnumDisplayModes(IWineD3DDevice *iface, DWORD
return
D3D_OK
;
return
D3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetDisplayMode
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DDISPLAYMODE
*
pMode
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetDisplayMode
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DDISPLAYMODE
*
pMode
)
{
DEVMODEW
devmode
;
DEVMODEW
devmode
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
LONG
ret
;
LONG
ret
;
...
@@ -2084,7 +2084,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetDisplayMode(IWineD3DDevice *iface, UINT iSw
...
@@ -2084,7 +2084,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetDisplayMode(IWineD3DDevice *iface, UINT iSw
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_EnumZBufferFormats
(
IWineD3DDevice
*
iface
,
D3DCB_ENUMPIXELFORMATS
Callback
,
void
*
Context
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_EnumZBufferFormats
(
IWineD3DDevice
*
iface
,
D3DCB_ENUMPIXELFORMATS
Callback
,
void
*
Context
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
HRESULT
ret
;
HRESULT
ret
;
int
i
=
0
;
int
i
=
0
;
...
@@ -2115,7 +2115,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EnumZBufferFormats(IWineD3DDevice *iface, D3DC
...
@@ -2115,7 +2115,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EnumZBufferFormats(IWineD3DDevice *iface, D3DC
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_EnumTextureFormats
(
IWineD3DDevice
*
iface
,
D3DCB_ENUMPIXELFORMATS
Callback
,
void
*
Context
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_EnumTextureFormats
(
IWineD3DDevice
*
iface
,
D3DCB_ENUMPIXELFORMATS
Callback
,
void
*
Context
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
HRESULT
ret
;
HRESULT
ret
;
int
i
=
0
;
int
i
=
0
;
...
@@ -2167,7 +2167,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EnumTextureFormats(IWineD3DDevice *iface, D3DC
...
@@ -2167,7 +2167,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EnumTextureFormats(IWineD3DDevice *iface, D3DC
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDirect3D
(
IWineD3DDevice
*
iface
,
IWineD3D
**
ppD3D
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDirect3D
(
IWineD3DDevice
*
iface
,
IWineD3D
**
ppD3D
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
*
ppD3D
=
This
->
wineD3D
;
*
ppD3D
=
This
->
wineD3D
;
TRACE
(
"(%p) : wineD3D returning %p
\n
"
,
This
,
*
ppD3D
);
TRACE
(
"(%p) : wineD3D returning %p
\n
"
,
This
,
*
ppD3D
);
...
@@ -2175,7 +2175,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetDirect3D(IWineD3DDevice *iface, IWineD3D **
...
@@ -2175,7 +2175,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetDirect3D(IWineD3DDevice *iface, IWineD3D **
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
UINT
WINAPI
IWineD3DDeviceImpl_GetAvailableTextureMem
(
IWineD3DDevice
*
iface
)
{
static
UINT
WINAPI
IWineD3DDeviceImpl_GetAvailableTextureMem
(
IWineD3DDevice
*
iface
)
{
/** NOTE: There's a probably a hack-around for this one by putting as many pbuffers, VBO's (or whatever)
/** NOTE: There's a probably a hack-around for this one by putting as many pbuffers, VBO's (or whatever)
* Into the video ram as possible and seeing how many fit
* Into the video ram as possible and seeing how many fit
* you can also get the correct initial value from via X and ATI's driver
* you can also get the correct initial value from via X and ATI's driver
...
@@ -2198,7 +2198,7 @@ UINT WINAPI IWineD3DDeviceImpl_GetAvailableTextureMem(IWineD3DDevice *iface) {
...
@@ -2198,7 +2198,7 @@ UINT WINAPI IWineD3DDeviceImpl_GetAvailableTextureMem(IWineD3DDevice *iface) {
/*****
/*****
* Get / Set FVF
* Get / Set FVF
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetFVF
(
IWineD3DDevice
*
iface
,
DWORD
fvf
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetFVF
(
IWineD3DDevice
*
iface
,
DWORD
fvf
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
HRESULT
hr
=
WINED3D_OK
;
HRESULT
hr
=
WINED3D_OK
;
...
@@ -2221,7 +2221,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetFVF(IWineD3DDevice *iface, DWORD fvf) {
...
@@ -2221,7 +2221,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetFVF(IWineD3DDevice *iface, DWORD fvf) {
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetFVF
(
IWineD3DDevice
*
iface
,
DWORD
*
pfvf
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetFVF
(
IWineD3DDevice
*
iface
,
DWORD
*
pfvf
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : GetFVF returning %lx
\n
"
,
This
,
This
->
stateBlock
->
fvf
);
TRACE
(
"(%p) : GetFVF returning %lx
\n
"
,
This
,
This
->
stateBlock
->
fvf
);
*
pfvf
=
This
->
stateBlock
->
fvf
;
*
pfvf
=
This
->
stateBlock
->
fvf
;
...
@@ -2231,7 +2231,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetFVF(IWineD3DDevice *iface, DWORD *pfvf) {
...
@@ -2231,7 +2231,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetFVF(IWineD3DDevice *iface, DWORD *pfvf) {
/*****
/*****
* Get / Set Stream Source
* Get / Set Stream Source
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetStreamSource
(
IWineD3DDevice
*
iface
,
UINT
StreamNumber
,
IWineD3DVertexBuffer
*
pStreamData
,
UINT
OffsetInBytes
,
UINT
Stride
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetStreamSource
(
IWineD3DDevice
*
iface
,
UINT
StreamNumber
,
IWineD3DVertexBuffer
*
pStreamData
,
UINT
OffsetInBytes
,
UINT
Stride
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DVertexBuffer
*
oldSrc
;
IWineD3DVertexBuffer
*
oldSrc
;
...
@@ -2292,7 +2292,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface, UINT St
...
@@ -2292,7 +2292,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSource(IWineD3DDevice *iface, UINT St
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetStreamSource
(
IWineD3DDevice
*
iface
,
UINT
StreamNumber
,
IWineD3DVertexBuffer
**
pStream
,
UINT
*
pOffset
,
UINT
*
pStride
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetStreamSource
(
IWineD3DDevice
*
iface
,
UINT
StreamNumber
,
IWineD3DVertexBuffer
**
pStream
,
UINT
*
pOffset
,
UINT
*
pStride
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
UINT
streamFlags
;
UINT
streamFlags
;
...
@@ -2339,7 +2339,7 @@ VertexOffset = StartVertex / Divider * StreamStride +
...
@@ -2339,7 +2339,7 @@ VertexOffset = StartVertex / Divider * StreamStride +
VertexIndex / Divider * StreamStride + StreamOffset
VertexIndex / Divider * StreamStride + StreamOffset
*/
*/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetStreamSourceFreq
(
IWineD3DDevice
*
iface
,
UINT
StreamNumber
,
UINT
Divider
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetStreamSourceFreq
(
IWineD3DDevice
*
iface
,
UINT
StreamNumber
,
UINT
Divider
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) StreamNumber(%d), Divider(%d)
\n
"
,
This
,
StreamNumber
,
Divider
);
TRACE
(
"(%p) StreamNumber(%d), Divider(%d)
\n
"
,
This
,
StreamNumber
,
Divider
);
...
@@ -2356,7 +2356,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSourceFreq(IWineD3DDevice *iface, UI
...
@@ -2356,7 +2356,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetStreamSourceFreq(IWineD3DDevice *iface, UI
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetStreamSourceFreq
(
IWineD3DDevice
*
iface
,
UINT
StreamNumber
,
UINT
*
Divider
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetStreamSourceFreq
(
IWineD3DDevice
*
iface
,
UINT
StreamNumber
,
UINT
*
Divider
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) StreamNumber(%d), Divider(%p)
\n
"
,
This
,
StreamNumber
,
Divider
);
TRACE
(
"(%p) StreamNumber(%d), Divider(%p)
\n
"
,
This
,
StreamNumber
,
Divider
);
...
@@ -2370,7 +2370,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetStreamSourceFreq(IWineD3DDevice *iface, UI
...
@@ -2370,7 +2370,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetStreamSourceFreq(IWineD3DDevice *iface, UI
/*****
/*****
* Get / Set & Multiply Transform
* Get / Set & Multiply Transform
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetTransform
(
IWineD3DDevice
*
iface
,
D3DTRANSFORMSTATETYPE
d3dts
,
CONST
D3DMATRIX
*
lpmatrix
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetTransform
(
IWineD3DDevice
*
iface
,
D3DTRANSFORMSTATETYPE
d3dts
,
CONST
D3DMATRIX
*
lpmatrix
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/* Most of this routine, comments included copied from ddraw tree initially: */
/* Most of this routine, comments included copied from ddraw tree initially: */
...
@@ -2474,14 +2474,14 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetTransform(IWineD3DDevice *iface, D3DTRANS
...
@@ -2474,14 +2474,14 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetTransform(IWineD3DDevice *iface, D3DTRANS
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetTransform
(
IWineD3DDevice
*
iface
,
D3DTRANSFORMSTATETYPE
State
,
D3DMATRIX
*
pMatrix
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetTransform
(
IWineD3DDevice
*
iface
,
D3DTRANSFORMSTATETYPE
State
,
D3DMATRIX
*
pMatrix
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : for Transform State %d
\n
"
,
This
,
State
);
TRACE
(
"(%p) : for Transform State %d
\n
"
,
This
,
State
);
memcpy
(
pMatrix
,
&
This
->
stateBlock
->
transforms
[
State
],
sizeof
(
D3DMATRIX
));
memcpy
(
pMatrix
,
&
This
->
stateBlock
->
transforms
[
State
],
sizeof
(
D3DMATRIX
));
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_MultiplyTransform
(
IWineD3DDevice
*
iface
,
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_MultiplyTransform
(
IWineD3DDevice
*
iface
,
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
{
D3DMATRIX
*
mat
=
NULL
;
D3DMATRIX
*
mat
=
NULL
;
D3DMATRIX
temp
;
D3DMATRIX
temp
;
...
@@ -2516,7 +2516,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_MultiplyTransform(IWineD3DDevice *iface, D3DTR
...
@@ -2516,7 +2516,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_MultiplyTransform(IWineD3DDevice *iface, D3DTR
However, this causes stateblock problems. When capturing the state block, I duplicate the list,
However, this causes stateblock problems. When capturing the state block, I duplicate the list,
but when recording, just build a chain pretty much of commands to be replayed. */
but when recording, just build a chain pretty much of commands to be replayed. */
HRESULT
WINAPI
IWineD3DDeviceImpl_SetLight
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
CONST
WINED3DLIGHT
*
pLight
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetLight
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
CONST
WINED3DLIGHT
*
pLight
)
{
float
rho
;
float
rho
;
PLIGHTINFOEL
*
object
,
*
temp
;
PLIGHTINFOEL
*
object
,
*
temp
;
...
@@ -2663,7 +2663,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetLight(IWineD3DDevice *iface, DWORD Index, C
...
@@ -2663,7 +2663,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetLight(IWineD3DDevice *iface, DWORD Index, C
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetLight
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
WINED3DLIGHT
*
pLight
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetLight
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
WINED3DLIGHT
*
pLight
)
{
PLIGHTINFOEL
*
lightInfo
=
NULL
;
PLIGHTINFOEL
*
lightInfo
=
NULL
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : Idx(%ld), pLight(%p)
\n
"
,
This
,
Index
,
pLight
);
TRACE
(
"(%p) : Idx(%ld), pLight(%p)
\n
"
,
This
,
Index
,
pLight
);
...
@@ -2685,7 +2685,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetLight(IWineD3DDevice *iface, DWORD Index, W
...
@@ -2685,7 +2685,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetLight(IWineD3DDevice *iface, DWORD Index, W
* Get / Set Light Enable
* Get / Set Light Enable
* (Note for consistency, renamed d3dx function by adding the 'set' prefix)
* (Note for consistency, renamed d3dx function by adding the 'set' prefix)
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetLightEnable
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
BOOL
Enable
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetLightEnable
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
BOOL
Enable
)
{
PLIGHTINFOEL
*
lightInfo
=
NULL
;
PLIGHTINFOEL
*
lightInfo
=
NULL
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : Idx(%ld), enable? %d
\n
"
,
This
,
Index
,
Enable
);
TRACE
(
"(%p) : Idx(%ld), enable? %d
\n
"
,
This
,
Index
,
Enable
);
...
@@ -2884,7 +2884,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetLightEnable(IWineD3DDevice *iface, DWORD In
...
@@ -2884,7 +2884,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetLightEnable(IWineD3DDevice *iface, DWORD In
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetLightEnable
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
BOOL
*
pEnable
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetLightEnable
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
BOOL
*
pEnable
)
{
PLIGHTINFOEL
*
lightInfo
=
NULL
;
PLIGHTINFOEL
*
lightInfo
=
NULL
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -2905,7 +2905,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetLightEnable(IWineD3DDevice *iface, DWORD In
...
@@ -2905,7 +2905,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetLightEnable(IWineD3DDevice *iface, DWORD In
/*****
/*****
* Get / Set Clip Planes
* Get / Set Clip Planes
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetClipPlane
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
CONST
float
*
pPlane
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetClipPlane
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
CONST
float
*
pPlane
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : for idx %ld, %p
\n
"
,
This
,
Index
,
pPlane
);
TRACE
(
"(%p) : for idx %ld, %p
\n
"
,
This
,
Index
,
pPlane
);
...
@@ -2951,7 +2951,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetClipPlane(IWineD3DDevice *iface, DWORD Inde
...
@@ -2951,7 +2951,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetClipPlane(IWineD3DDevice *iface, DWORD Inde
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetClipPlane
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
float
*
pPlane
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetClipPlane
(
IWineD3DDevice
*
iface
,
DWORD
Index
,
float
*
pPlane
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : for idx %ld
\n
"
,
This
,
Index
);
TRACE
(
"(%p) : for idx %ld
\n
"
,
This
,
Index
);
...
@@ -2972,7 +2972,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetClipPlane(IWineD3DDevice *iface, DWORD Inde
...
@@ -2972,7 +2972,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetClipPlane(IWineD3DDevice *iface, DWORD Inde
* Get / Set Clip Plane Status
* Get / Set Clip Plane Status
* WARNING: This code relies on the fact that D3DCLIPSTATUS8 == D3DCLIPSTATUS9
* WARNING: This code relies on the fact that D3DCLIPSTATUS8 == D3DCLIPSTATUS9
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetClipStatus
(
IWineD3DDevice
*
iface
,
CONST
WINED3DCLIPSTATUS
*
pClipStatus
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetClipStatus
(
IWineD3DDevice
*
iface
,
CONST
WINED3DCLIPSTATUS
*
pClipStatus
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
FIXME
(
"(%p) : stub
\n
"
,
This
);
FIXME
(
"(%p) : stub
\n
"
,
This
);
if
(
NULL
==
pClipStatus
)
{
if
(
NULL
==
pClipStatus
)
{
...
@@ -2983,7 +2983,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetClipStatus(IWineD3DDevice *iface, CONST W
...
@@ -2983,7 +2983,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetClipStatus(IWineD3DDevice *iface, CONST W
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetClipStatus
(
IWineD3DDevice
*
iface
,
WINED3DCLIPSTATUS
*
pClipStatus
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetClipStatus
(
IWineD3DDevice
*
iface
,
WINED3DCLIPSTATUS
*
pClipStatus
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
FIXME
(
"(%p) : stub
\n
"
,
This
);
FIXME
(
"(%p) : stub
\n
"
,
This
);
if
(
NULL
==
pClipStatus
)
{
if
(
NULL
==
pClipStatus
)
{
...
@@ -2998,7 +2998,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetClipStatus(IWineD3DDevice *iface, WINED3D
...
@@ -2998,7 +2998,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetClipStatus(IWineD3DDevice *iface, WINED3D
* Get / Set Material
* Get / Set Material
* WARNING: This code relies on the fact that D3DMATERIAL8 == D3DMATERIAL9
* WARNING: This code relies on the fact that D3DMATERIAL8 == D3DMATERIAL9
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetMaterial
(
IWineD3DDevice
*
iface
,
CONST
WINED3DMATERIAL
*
pMaterial
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetMaterial
(
IWineD3DDevice
*
iface
,
CONST
WINED3DMATERIAL
*
pMaterial
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
This
->
updateStateBlock
->
changed
.
material
=
TRUE
;
This
->
updateStateBlock
->
changed
.
material
=
TRUE
;
...
@@ -3045,7 +3045,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetMaterial(IWineD3DDevice *iface, CONST WINED
...
@@ -3045,7 +3045,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetMaterial(IWineD3DDevice *iface, CONST WINED
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetMaterial
(
IWineD3DDevice
*
iface
,
WINED3DMATERIAL
*
pMaterial
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetMaterial
(
IWineD3DDevice
*
iface
,
WINED3DMATERIAL
*
pMaterial
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
memcpy
(
pMaterial
,
&
This
->
updateStateBlock
->
material
,
sizeof
(
WINED3DMATERIAL
));
memcpy
(
pMaterial
,
&
This
->
updateStateBlock
->
material
,
sizeof
(
WINED3DMATERIAL
));
TRACE
(
"(%p) : Diffuse (%f,%f,%f,%f)
\n
"
,
This
,
pMaterial
->
Diffuse
.
r
,
pMaterial
->
Diffuse
.
g
,
TRACE
(
"(%p) : Diffuse (%f,%f,%f,%f)
\n
"
,
This
,
pMaterial
->
Diffuse
.
r
,
pMaterial
->
Diffuse
.
g
,
...
@@ -3064,7 +3064,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetMaterial(IWineD3DDevice *iface, WINED3DMATE
...
@@ -3064,7 +3064,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetMaterial(IWineD3DDevice *iface, WINED3DMATE
/*****
/*****
* Get / Set Indices
* Get / Set Indices
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetIndices
(
IWineD3DDevice
*
iface
,
IWineD3DIndexBuffer
*
pIndexData
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetIndices
(
IWineD3DDevice
*
iface
,
IWineD3DIndexBuffer
*
pIndexData
,
UINT
BaseVertexIndex
)
{
UINT
BaseVertexIndex
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DIndexBuffer
*
oldIdxs
;
IWineD3DIndexBuffer
*
oldIdxs
;
...
@@ -3092,7 +3092,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetIndices(IWineD3DDevice *iface, IWineD3DInde
...
@@ -3092,7 +3092,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetIndices(IWineD3DDevice *iface, IWineD3DInde
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetIndices
(
IWineD3DDevice
*
iface
,
IWineD3DIndexBuffer
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetIndices
(
IWineD3DDevice
*
iface
,
IWineD3DIndexBuffer
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
*
ppIndexData
=
This
->
stateBlock
->
pIndexData
;
*
ppIndexData
=
This
->
stateBlock
->
pIndexData
;
...
@@ -3113,7 +3113,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetIndices(IWineD3DDevice *iface, IWineD3DInde
...
@@ -3113,7 +3113,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetIndices(IWineD3DDevice *iface, IWineD3DInde
/*****
/*****
* Get / Set Viewports
* Get / Set Viewports
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetViewport
(
IWineD3DDevice
*
iface
,
CONST
WINED3DVIEWPORT
*
pViewport
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetViewport
(
IWineD3DDevice
*
iface
,
CONST
WINED3DVIEWPORT
*
pViewport
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
...
@@ -3149,7 +3149,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetViewport(IWineD3DDevice *iface, CONST WINED
...
@@ -3149,7 +3149,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetViewport(IWineD3DDevice *iface, CONST WINED
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetViewport
(
IWineD3DDevice
*
iface
,
WINED3DVIEWPORT
*
pViewport
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetViewport
(
IWineD3DDevice
*
iface
,
WINED3DVIEWPORT
*
pViewport
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
memcpy
(
pViewport
,
&
This
->
stateBlock
->
viewport
,
sizeof
(
WINED3DVIEWPORT
));
memcpy
(
pViewport
,
&
This
->
stateBlock
->
viewport
,
sizeof
(
WINED3DVIEWPORT
));
...
@@ -3160,7 +3160,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetViewport(IWineD3DDevice *iface, WINED3DVIEW
...
@@ -3160,7 +3160,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetViewport(IWineD3DDevice *iface, WINED3DVIEW
* Get / Set Render States
* Get / Set Render States
* TODO: Verify against dx9 definitions
* TODO: Verify against dx9 definitions
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetRenderState
(
IWineD3DDevice
*
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetRenderState
(
IWineD3DDevice
*
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
DWORD
OldValue
=
This
->
stateBlock
->
renderState
[
State
];
DWORD
OldValue
=
This
->
stateBlock
->
renderState
[
State
];
...
@@ -4368,7 +4368,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
...
@@ -4368,7 +4368,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRenderState
(
IWineD3DDevice
*
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
*
pValue
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRenderState
(
IWineD3DDevice
*
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
*
pValue
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) for State %d = %ld
\n
"
,
This
,
State
,
This
->
stateBlock
->
renderState
[
State
]);
TRACE
(
"(%p) for State %d = %ld
\n
"
,
This
,
State
,
This
->
stateBlock
->
renderState
[
State
]);
*
pValue
=
This
->
stateBlock
->
renderState
[
State
];
*
pValue
=
This
->
stateBlock
->
renderState
[
State
];
...
@@ -4380,7 +4380,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetRenderState(IWineD3DDevice *iface, D3DRENDE
...
@@ -4380,7 +4380,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetRenderState(IWineD3DDevice *iface, D3DRENDE
* TODO: Verify against dx9 definitions
* TODO: Verify against dx9 definitions
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetSamplerState
(
IWineD3DDevice
*
iface
,
DWORD
Sampler
,
WINED3DSAMPLERSTATETYPE
Type
,
DWORD
Value
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetSamplerState
(
IWineD3DDevice
*
iface
,
DWORD
Sampler
,
WINED3DSAMPLERSTATETYPE
Type
,
DWORD
Value
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/**
/**
* SetSampler is designed to allow for more than the standard up to 8 textures
* SetSampler is designed to allow for more than the standard up to 8 textures
...
@@ -4418,7 +4418,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetSamplerState(IWineD3DDevice *iface, DWORD S
...
@@ -4418,7 +4418,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetSamplerState(IWineD3DDevice *iface, DWORD S
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetSamplerState
(
IWineD3DDevice
*
iface
,
DWORD
Sampler
,
WINED3DSAMPLERSTATETYPE
Type
,
DWORD
*
Value
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetSamplerState
(
IWineD3DDevice
*
iface
,
DWORD
Sampler
,
WINED3DSAMPLERSTATETYPE
Type
,
DWORD
*
Value
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/** TODO: check that sampler is in range **/
/** TODO: check that sampler is in range **/
*
Value
=
This
->
updateStateBlock
->
samplerState
[
Sampler
][
Type
];
*
Value
=
This
->
updateStateBlock
->
samplerState
[
Sampler
][
Type
];
...
@@ -4427,7 +4427,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetSamplerState(IWineD3DDevice *iface, DWORD S
...
@@ -4427,7 +4427,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetSamplerState(IWineD3DDevice *iface, DWORD S
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetScissorRect
(
IWineD3DDevice
*
iface
,
CONST
RECT
*
pRect
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetScissorRect
(
IWineD3DDevice
*
iface
,
CONST
RECT
*
pRect
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
ENTER_GL
();
ENTER_GL
();
...
@@ -4439,7 +4439,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetScissorRect(IWineD3DDevice *iface, CONST RE
...
@@ -4439,7 +4439,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetScissorRect(IWineD3DDevice *iface, CONST RE
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetScissorRect
(
IWineD3DDevice
*
iface
,
RECT
*
pRect
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetScissorRect
(
IWineD3DDevice
*
iface
,
RECT
*
pRect
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
GLint
scissorBox
[
4
];
GLint
scissorBox
[
4
];
...
@@ -4455,7 +4455,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetScissorRect(IWineD3DDevice *iface, RECT* pR
...
@@ -4455,7 +4455,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetScissorRect(IWineD3DDevice *iface, RECT* pR
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexDeclaration
(
IWineD3DDevice
*
iface
,
IWineD3DVertexDeclaration
*
pDecl
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexDeclaration
(
IWineD3DDevice
*
iface
,
IWineD3DVertexDeclaration
*
pDecl
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DVertexDeclaration
*
oldDecl
=
This
->
updateStateBlock
->
vertexDecl
;
IWineD3DVertexDeclaration
*
oldDecl
=
This
->
updateStateBlock
->
vertexDecl
;
...
@@ -4478,7 +4478,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexDeclaration(IWineD3DDevice* iface, IW
...
@@ -4478,7 +4478,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexDeclaration(IWineD3DDevice* iface, IW
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexDeclaration
(
IWineD3DDevice
*
iface
,
IWineD3DVertexDeclaration
**
ppDecl
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexDeclaration
(
IWineD3DDevice
*
iface
,
IWineD3DVertexDeclaration
**
ppDecl
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : ppDecl=%p
\n
"
,
This
,
ppDecl
);
TRACE
(
"(%p) : ppDecl=%p
\n
"
,
This
,
ppDecl
);
...
@@ -4488,7 +4488,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexDeclaration(IWineD3DDevice* iface, IW
...
@@ -4488,7 +4488,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexDeclaration(IWineD3DDevice* iface, IW
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexShader
(
IWineD3DDevice
*
iface
,
IWineD3DVertexShader
*
pShader
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexShader
(
IWineD3DDevice
*
iface
,
IWineD3DVertexShader
*
pShader
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DVertexShader
*
oldShader
=
This
->
updateStateBlock
->
vertexShader
;
IWineD3DVertexShader
*
oldShader
=
This
->
updateStateBlock
->
vertexShader
;
...
@@ -4519,7 +4519,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShader(IWineD3DDevice *iface, IWineD3
...
@@ -4519,7 +4519,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShader(IWineD3DDevice *iface, IWineD3
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexShader
(
IWineD3DDevice
*
iface
,
IWineD3DVertexShader
**
ppShader
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexShader
(
IWineD3DDevice
*
iface
,
IWineD3DVertexShader
**
ppShader
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
if
(
NULL
==
ppShader
)
{
if
(
NULL
==
ppShader
)
{
...
@@ -4533,7 +4533,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShader(IWineD3DDevice *iface, IWineD3
...
@@ -4533,7 +4533,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShader(IWineD3DDevice *iface, IWineD3
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexShaderConstantB
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexShaderConstantB
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
CONST
BOOL
*
srcData
,
CONST
BOOL
*
srcData
,
...
@@ -4558,7 +4558,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantB(
...
@@ -4558,7 +4558,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantB(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexShaderConstantB
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexShaderConstantB
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
BOOL
*
dstData
,
BOOL
*
dstData
,
...
@@ -4577,7 +4577,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantB(
...
@@ -4577,7 +4577,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantB(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexShaderConstantI
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexShaderConstantI
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
CONST
int
*
srcData
,
CONST
int
*
srcData
,
...
@@ -4602,7 +4602,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantI(
...
@@ -4602,7 +4602,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantI(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexShaderConstantI
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexShaderConstantI
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
int
*
dstData
,
int
*
dstData
,
...
@@ -4621,7 +4621,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantI(
...
@@ -4621,7 +4621,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantI(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexShaderConstantF
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexShaderConstantF
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
CONST
float
*
srcData
,
CONST
float
*
srcData
,
...
@@ -4646,7 +4646,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantF(
...
@@ -4646,7 +4646,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantF(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexShaderConstantF
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetVertexShaderConstantF
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
float
*
dstData
,
float
*
dstData
,
...
@@ -4665,7 +4665,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantF(
...
@@ -4665,7 +4665,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantF(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPixelShader
(
IWineD3DDevice
*
iface
,
IWineD3DPixelShader
*
pShader
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPixelShader
(
IWineD3DDevice
*
iface
,
IWineD3DPixelShader
*
pShader
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DPixelShader
*
oldShader
=
This
->
updateStateBlock
->
pixelShader
;
IWineD3DPixelShader
*
oldShader
=
This
->
updateStateBlock
->
pixelShader
;
This
->
updateStateBlock
->
pixelShader
=
pShader
;
This
->
updateStateBlock
->
pixelShader
=
pShader
;
...
@@ -4691,7 +4691,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShader(IWineD3DDevice *iface, IWineD3D
...
@@ -4691,7 +4691,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShader(IWineD3DDevice *iface, IWineD3D
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPixelShader
(
IWineD3DDevice
*
iface
,
IWineD3DPixelShader
**
ppShader
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPixelShader
(
IWineD3DDevice
*
iface
,
IWineD3DPixelShader
**
ppShader
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
if
(
NULL
==
ppShader
)
{
if
(
NULL
==
ppShader
)
{
...
@@ -4707,7 +4707,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShader(IWineD3DDevice *iface, IWineD3D
...
@@ -4707,7 +4707,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShader(IWineD3DDevice *iface, IWineD3D
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPixelShaderConstantB
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPixelShaderConstantB
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
CONST
BOOL
*
srcData
,
CONST
BOOL
*
srcData
,
...
@@ -4732,7 +4732,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantB(
...
@@ -4732,7 +4732,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantB(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPixelShaderConstantB
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPixelShaderConstantB
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
BOOL
*
dstData
,
BOOL
*
dstData
,
...
@@ -4751,7 +4751,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantB(
...
@@ -4751,7 +4751,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantB(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPixelShaderConstantI
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPixelShaderConstantI
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
CONST
int
*
srcData
,
CONST
int
*
srcData
,
...
@@ -4776,7 +4776,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantI(
...
@@ -4776,7 +4776,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantI(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPixelShaderConstantI
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPixelShaderConstantI
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
int
*
dstData
,
int
*
dstData
,
...
@@ -4795,7 +4795,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantI(
...
@@ -4795,7 +4795,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantI(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPixelShaderConstantF
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPixelShaderConstantF
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
CONST
float
*
srcData
,
CONST
float
*
srcData
,
...
@@ -4820,7 +4820,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantF(
...
@@ -4820,7 +4820,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantF(
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPixelShaderConstantF
(
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPixelShaderConstantF
(
IWineD3DDevice
*
iface
,
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
start
,
float
*
dstData
,
float
*
dstData
,
...
@@ -5095,7 +5095,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo
...
@@ -5095,7 +5095,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo
}
}
#undef copy_and_next
#undef copy_and_next
HRESULT
WINAPI
IWineD3DDeviceImpl_ProcessVertices
(
IWineD3DDevice
*
iface
,
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IWineD3DVertexBuffer
*
pDestBuffer
,
IWineD3DVertexBuffer
*
pVertexDecl
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_ProcessVertices
(
IWineD3DDevice
*
iface
,
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IWineD3DVertexBuffer
*
pDestBuffer
,
IWineD3DVertexBuffer
*
pVertexDecl
,
DWORD
Flags
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DVertexBufferImpl
*
SrcImpl
=
(
IWineD3DVertexBufferImpl
*
)
pVertexDecl
;
IWineD3DVertexBufferImpl
*
SrcImpl
=
(
IWineD3DVertexBufferImpl
*
)
pVertexDecl
;
WineDirect3DVertexStridedData
strided
;
WineDirect3DVertexStridedData
strided
;
...
@@ -5333,7 +5333,7 @@ static void WINAPI IWineD3DDeviceImpl_ApplyTextureUnitState(IWineD3DDevice *ifac
...
@@ -5333,7 +5333,7 @@ static void WINAPI IWineD3DDeviceImpl_ApplyTextureUnitState(IWineD3DDevice *ifac
* Get / Set Texture Stage States
* Get / Set Texture Stage States
* TODO: Verify against dx9 definitions
* TODO: Verify against dx9 definitions
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetTextureStageState
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
WINED3DTEXTURESTAGESTATETYPE
Type
,
DWORD
Value
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetTextureStageState
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
WINED3DTEXTURESTAGESTATETYPE
Type
,
DWORD
Value
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/* FIXME: Handle 3d textures? What if TSS value set before set texture? Need to reapply all values? */
/* FIXME: Handle 3d textures? What if TSS value set before set texture? Need to reapply all values? */
...
@@ -5353,7 +5353,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetTextureStageState(IWineD3DDevice *iface, DW
...
@@ -5353,7 +5353,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetTextureStageState(IWineD3DDevice *iface, DW
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetTextureStageState
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
WINED3DTEXTURESTAGESTATETYPE
Type
,
DWORD
*
pValue
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetTextureStageState
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
WINED3DTEXTURESTAGESTATETYPE
Type
,
DWORD
*
pValue
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : requesting Stage %ld, Type %d getting %ld
\n
"
,
This
,
Stage
,
Type
,
This
->
updateStateBlock
->
textureState
[
Stage
][
Type
]);
TRACE
(
"(%p) : requesting Stage %ld, Type %d getting %ld
\n
"
,
This
,
Stage
,
Type
,
This
->
updateStateBlock
->
textureState
[
Stage
][
Type
]);
*
pValue
=
This
->
updateStateBlock
->
textureState
[
Stage
][
Type
];
*
pValue
=
This
->
updateStateBlock
->
textureState
[
Stage
][
Type
];
...
@@ -5363,7 +5363,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetTextureStageState(IWineD3DDevice *iface, DW
...
@@ -5363,7 +5363,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetTextureStageState(IWineD3DDevice *iface, DW
/*****
/*****
* Get / Set Texture
* Get / Set Texture
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetTexture
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
IWineD3DBaseTexture
*
pTexture
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetTexture
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
IWineD3DBaseTexture
*
pTexture
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DBaseTexture
*
oldTexture
;
IWineD3DBaseTexture
*
oldTexture
;
...
@@ -5438,7 +5438,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD Stage,
...
@@ -5438,7 +5438,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD Stage,
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetTexture
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
IWineD3DBaseTexture
**
ppTexture
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetTexture
(
IWineD3DDevice
*
iface
,
DWORD
Stage
,
IWineD3DBaseTexture
**
ppTexture
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : (%ld /* Stage */,%p /* ppTexture */)
\n
"
,
This
,
Stage
,
ppTexture
);
TRACE
(
"(%p) : (%ld /* Stage */,%p /* ppTexture */)
\n
"
,
This
,
Stage
,
ppTexture
);
...
@@ -5458,7 +5458,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetTexture(IWineD3DDevice *iface, DWORD Stage,
...
@@ -5458,7 +5458,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetTexture(IWineD3DDevice *iface, DWORD Stage,
/*****
/*****
* Get Back Buffer
* Get Back Buffer
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_GetBackBuffer
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
UINT
BackBuffer
,
WINED3DBACKBUFFER_TYPE
Type
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetBackBuffer
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
UINT
BackBuffer
,
WINED3DBACKBUFFER_TYPE
Type
,
IWineD3DSurface
**
ppBackBuffer
)
{
IWineD3DSurface
**
ppBackBuffer
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSwapChain
*
swapChain
;
IWineD3DSwapChain
*
swapChain
;
...
@@ -5476,13 +5476,13 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetBackBuffer(IWineD3DDevice *iface, UINT iSwa
...
@@ -5476,13 +5476,13 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetBackBuffer(IWineD3DDevice *iface, UINT iSwa
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDeviceCaps
(
IWineD3DDevice
*
iface
,
WINED3DCAPS
*
pCaps
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDeviceCaps
(
IWineD3DDevice
*
iface
,
WINED3DCAPS
*
pCaps
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
WARN
(
"(%p) : stub, calling idirect3d for now
\n
"
,
This
);
WARN
(
"(%p) : stub, calling idirect3d for now
\n
"
,
This
);
return
IWineD3D_GetDeviceCaps
(
This
->
wineD3D
,
This
->
adapterNo
,
This
->
devType
,
pCaps
);
return
IWineD3D_GetDeviceCaps
(
This
->
wineD3D
,
This
->
adapterNo
,
This
->
devType
,
pCaps
);
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDisplayMode
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DDISPLAYMODE
*
pMode
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDisplayMode
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DDISPLAYMODE
*
pMode
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSwapChain
*
swapChain
;
IWineD3DSwapChain
*
swapChain
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -5513,7 +5513,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetDisplayMode(IWineD3DDevice *iface, UINT iSw
...
@@ -5513,7 +5513,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetDisplayMode(IWineD3DDevice *iface, UINT iSw
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetHWND
(
IWineD3DDevice
*
iface
,
HWND
hWnd
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetHWND
(
IWineD3DDevice
*
iface
,
HWND
hWnd
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
hWnd
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
hWnd
);
...
@@ -5521,7 +5521,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetHWND(IWineD3DDevice *iface, HWND hWnd) {
...
@@ -5521,7 +5521,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetHWND(IWineD3DDevice *iface, HWND hWnd) {
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetHWND
(
IWineD3DDevice
*
iface
,
HWND
*
hWnd
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetHWND
(
IWineD3DDevice
*
iface
,
HWND
*
hWnd
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
hWnd
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
hWnd
);
...
@@ -5533,7 +5533,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetHWND(IWineD3DDevice *iface, HWND *hWnd) {
...
@@ -5533,7 +5533,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetHWND(IWineD3DDevice *iface, HWND *hWnd) {
* Stateblock related functions
* Stateblock related functions
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_BeginStateBlock
(
IWineD3DDevice
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_BeginStateBlock
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
object
;
IWineD3DStateBlockImpl
*
object
;
TRACE
(
"(%p)"
,
This
);
TRACE
(
"(%p)"
,
This
);
...
@@ -5563,7 +5563,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_BeginStateBlock(IWineD3DDevice *iface) {
...
@@ -5563,7 +5563,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_BeginStateBlock(IWineD3DDevice *iface) {
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_EndStateBlock
(
IWineD3DDevice
*
iface
,
IWineD3DStateBlock
**
ppStateBlock
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_EndStateBlock
(
IWineD3DDevice
*
iface
,
IWineD3DStateBlock
**
ppStateBlock
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
if
(
!
This
->
isRecordingState
)
{
if
(
!
This
->
isRecordingState
)
{
...
@@ -5584,7 +5584,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EndStateBlock(IWineD3DDevice *iface, IWineD3DS
...
@@ -5584,7 +5584,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EndStateBlock(IWineD3DDevice *iface, IWineD3DS
/*****
/*****
* Scene related functions
* Scene related functions
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_BeginScene
(
IWineD3DDevice
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_BeginScene
(
IWineD3DDevice
*
iface
)
{
/* At the moment we have no need for any functionality at the beginning
/* At the moment we have no need for any functionality at the beginning
of a scene */
of a scene */
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -5592,7 +5592,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_BeginScene(IWineD3DDevice *iface) {
...
@@ -5592,7 +5592,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_BeginScene(IWineD3DDevice *iface) {
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_EndScene
(
IWineD3DDevice
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_EndScene
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
ENTER_GL
();
ENTER_GL
();
...
@@ -5624,7 +5624,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EndScene(IWineD3DDevice *iface) {
...
@@ -5624,7 +5624,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EndScene(IWineD3DDevice *iface) {
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_Present
(
IWineD3DDevice
*
iface
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Present
(
IWineD3DDevice
*
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
{
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -5645,7 +5645,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Present(IWineD3DDevice *iface,
...
@@ -5645,7 +5645,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Present(IWineD3DDevice *iface,
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_Clear
(
IWineD3DDevice
*
iface
,
DWORD
Count
,
CONST
D3DRECT
*
pRects
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Clear
(
IWineD3DDevice
*
iface
,
DWORD
Count
,
CONST
D3DRECT
*
pRects
,
DWORD
Flags
,
D3DCOLOR
Color
,
float
Z
,
DWORD
Stencil
)
{
DWORD
Flags
,
D3DCOLOR
Color
,
float
Z
,
DWORD
Stencil
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -5765,7 +5765,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Count, CONS
...
@@ -5765,7 +5765,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Count, CONS
/*****
/*****
* Drawing functions
* Drawing functions
*****/
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawPrimitive
(
IWineD3DDevice
*
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
StartVertex
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawPrimitive
(
IWineD3DDevice
*
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
StartVertex
,
UINT
PrimitiveCount
)
{
UINT
PrimitiveCount
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -5782,7 +5782,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawPrimitive(IWineD3DDevice *iface, D3DPRIMIT
...
@@ -5782,7 +5782,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawPrimitive(IWineD3DDevice *iface, D3DPRIMIT
}
}
/* TODO: baseVIndex needs to be provided from This->stateBlock->baseVertexIndex when called from d3d8 */
/* TODO: baseVIndex needs to be provided from This->stateBlock->baseVertexIndex when called from d3d8 */
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawIndexedPrimitive
(
IWineD3DDevice
*
iface
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawIndexedPrimitive
(
IWineD3DDevice
*
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
D3DPRIMITIVETYPE
PrimitiveType
,
INT
baseVIndex
,
UINT
minIndex
,
INT
baseVIndex
,
UINT
minIndex
,
UINT
NumVertices
,
UINT
startIndex
,
UINT
primCount
)
{
UINT
NumVertices
,
UINT
startIndex
,
UINT
primCount
)
{
...
@@ -5812,7 +5812,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawIndexedPrimitive(IWineD3DDevice *iface,
...
@@ -5812,7 +5812,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawIndexedPrimitive(IWineD3DDevice *iface,
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawPrimitiveUP
(
IWineD3DDevice
*
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawPrimitiveUP
(
IWineD3DDevice
*
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
PrimitiveCount
,
CONST
void
*
pVertexStreamZeroData
,
UINT
PrimitiveCount
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
{
UINT
VertexStreamZeroStride
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -5842,7 +5842,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawPrimitiveUP(IWineD3DDevice *iface, D3DPRIM
...
@@ -5842,7 +5842,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawPrimitiveUP(IWineD3DDevice *iface, D3DPRIM
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawIndexedPrimitiveUP
(
IWineD3DDevice
*
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawIndexedPrimitiveUP
(
IWineD3DDevice
*
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
MinVertexIndex
,
UINT
NumVertices
,
UINT
MinVertexIndex
,
UINT
NumVertices
,
UINT
PrimitiveCount
,
CONST
void
*
pIndexData
,
UINT
PrimitiveCount
,
CONST
void
*
pIndexData
,
WINED3DFORMAT
IndexDataFormat
,
CONST
void
*
pVertexStreamZeroData
,
WINED3DFORMAT
IndexDataFormat
,
CONST
void
*
pVertexStreamZeroData
,
...
@@ -5884,13 +5884,13 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawIndexedPrimitiveUP(IWineD3DDevice *iface,
...
@@ -5884,13 +5884,13 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawIndexedPrimitiveUP(IWineD3DDevice *iface,
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawPrimitiveStrided
(
IWineD3DDevice
*
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
PrimitiveCount
,
WineDirect3DVertexStridedData
*
DrawPrimStrideData
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawPrimitiveStrided
(
IWineD3DDevice
*
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
PrimitiveCount
,
WineDirect3DVertexStridedData
*
DrawPrimStrideData
)
{
drawPrimitive
(
iface
,
PrimitiveType
,
PrimitiveCount
,
0
,
0
,
0
,
0
,
NULL
,
0
,
DrawPrimStrideData
);
drawPrimitive
(
iface
,
PrimitiveType
,
PrimitiveCount
,
0
,
0
,
0
,
0
,
NULL
,
0
,
DrawPrimStrideData
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
/* Yet another way to update a texture, some apps use this to load default textures instead of using surface/texture lock/unlock */
/* Yet another way to update a texture, some apps use this to load default textures instead of using surface/texture lock/unlock */
HRESULT
WINAPI
IWineD3DDeviceImpl_UpdateTexture
(
IWineD3DDevice
*
iface
,
IWineD3DBaseTexture
*
pSourceTexture
,
IWineD3DBaseTexture
*
pDestinationTexture
){
static
HRESULT
WINAPI
IWineD3DDeviceImpl_UpdateTexture
(
IWineD3DDevice
*
iface
,
IWineD3DBaseTexture
*
pSourceTexture
,
IWineD3DBaseTexture
*
pDestinationTexture
){
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
HRESULT
hr
=
WINED3D_OK
;
HRESULT
hr
=
WINED3D_OK
;
WINED3DRESOURCETYPE
sourceType
;
WINED3DRESOURCETYPE
sourceType
;
...
@@ -6017,7 +6017,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_UpdateTexture (IWineD3DDevice *iface, IWineD3D
...
@@ -6017,7 +6017,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_UpdateTexture (IWineD3DDevice *iface, IWineD3D
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_StretchRect
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSourceSurface
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_StretchRect
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IWineD3DSurface
*
pDestinationSurface
,
CONST
RECT
*
pSourceRect
,
IWineD3DSurface
*
pDestinationSurface
,
CONST
RECT
*
pDestRect
,
WINED3DTEXTUREFILTERTYPE
Filter
)
{
CONST
RECT
*
pDestRect
,
WINED3DTEXTUREFILTERTYPE
Filter
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -6025,7 +6025,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_StretchRect(IWineD3DDevice *iface, IWineD3DS
...
@@ -6025,7 +6025,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_StretchRect(IWineD3DDevice *iface, IWineD3DS
TRACE
(
"(%p) : stub
\n
"
,
This
);
TRACE
(
"(%p) : stub
\n
"
,
This
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRenderTargetData
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pRenderTarget
,
IWineD3DSurface
*
pSurface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRenderTargetData
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pRenderTarget
,
IWineD3DSurface
*
pSurface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/** TODO: remove remove casts to IWineD3DSurfaceImpl *
/** TODO: remove remove casts to IWineD3DSurfaceImpl *
* NOTE It may be best to move the code into surface to occomplish this
* NOTE It may be best to move the code into surface to occomplish this
...
@@ -6102,7 +6102,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetRenderTargetData(IWineD3DDevice *iface, I
...
@@ -6102,7 +6102,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetRenderTargetData(IWineD3DDevice *iface, I
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetFrontBufferData
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
IWineD3DSurface
*
pDestSurface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetFrontBufferData
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
IWineD3DSurface
*
pDestSurface
)
{
IWineD3DSwapChain
*
swapChain
;
IWineD3DSwapChain
*
swapChain
;
HRESULT
hr
;
HRESULT
hr
;
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
(
IWineD3DSwapChain
**
)
&
swapChain
);
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
(
IWineD3DSwapChain
**
)
&
swapChain
);
...
@@ -6113,7 +6113,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetFrontBufferData(IWineD3DDevice *iface,UIN
...
@@ -6113,7 +6113,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetFrontBufferData(IWineD3DDevice *iface,UIN
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_ValidateDevice
(
IWineD3DDevice
*
iface
,
DWORD
*
pNumPasses
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_ValidateDevice
(
IWineD3DDevice
*
iface
,
DWORD
*
pNumPasses
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/* return a sensible default */
/* return a sensible default */
*
pNumPasses
=
1
;
*
pNumPasses
=
1
;
...
@@ -6122,7 +6122,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_ValidateDevice(IWineD3DDevice *iface, DWORD*
...
@@ -6122,7 +6122,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_ValidateDevice(IWineD3DDevice *iface, DWORD*
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPaletteEntries
(
IWineD3DDevice
*
iface
,
UINT
PaletteNumber
,
CONST
PALETTEENTRY
*
pEntries
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetPaletteEntries
(
IWineD3DDevice
*
iface
,
UINT
PaletteNumber
,
CONST
PALETTEENTRY
*
pEntries
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
j
;
int
j
;
TRACE
(
"(%p) : PaletteNumber %u
\n
"
,
This
,
PaletteNumber
);
TRACE
(
"(%p) : PaletteNumber %u
\n
"
,
This
,
PaletteNumber
);
...
@@ -6140,7 +6140,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPaletteEntries(IWineD3DDevice *iface, UIN
...
@@ -6140,7 +6140,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetPaletteEntries(IWineD3DDevice *iface, UIN
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPaletteEntries
(
IWineD3DDevice
*
iface
,
UINT
PaletteNumber
,
PALETTEENTRY
*
pEntries
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetPaletteEntries
(
IWineD3DDevice
*
iface
,
UINT
PaletteNumber
,
PALETTEENTRY
*
pEntries
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
j
;
int
j
;
TRACE
(
"(%p) : PaletteNumber %u
\n
"
,
This
,
PaletteNumber
);
TRACE
(
"(%p) : PaletteNumber %u
\n
"
,
This
,
PaletteNumber
);
...
@@ -6158,7 +6158,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPaletteEntries(IWineD3DDevice *iface, UIN
...
@@ -6158,7 +6158,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetPaletteEntries(IWineD3DDevice *iface, UIN
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetCurrentTexturePalette
(
IWineD3DDevice
*
iface
,
UINT
PaletteNumber
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetCurrentTexturePalette
(
IWineD3DDevice
*
iface
,
UINT
PaletteNumber
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : PaletteNumber %u
\n
"
,
This
,
PaletteNumber
);
TRACE
(
"(%p) : PaletteNumber %u
\n
"
,
This
,
PaletteNumber
);
if
(
PaletteNumber
<
0
||
PaletteNumber
>=
MAX_PALETTES
)
{
if
(
PaletteNumber
<
0
||
PaletteNumber
>=
MAX_PALETTES
)
{
...
@@ -6171,7 +6171,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetCurrentTexturePalette(IWineD3DDevice *ifa
...
@@ -6171,7 +6171,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetCurrentTexturePalette(IWineD3DDevice *ifa
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetCurrentTexturePalette
(
IWineD3DDevice
*
iface
,
UINT
*
PaletteNumber
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetCurrentTexturePalette
(
IWineD3DDevice
*
iface
,
UINT
*
PaletteNumber
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
if
(
PaletteNumber
==
NULL
)
{
if
(
PaletteNumber
==
NULL
)
{
WARN
(
"(%p) : returning Invalid Call
\n
"
,
This
);
WARN
(
"(%p) : returning Invalid Call
\n
"
,
This
);
...
@@ -6183,7 +6183,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetCurrentTexturePalette(IWineD3DDevice *ifa
...
@@ -6183,7 +6183,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetCurrentTexturePalette(IWineD3DDevice *ifa
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetSoftwareVertexProcessing
(
IWineD3DDevice
*
iface
,
BOOL
bSoftware
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetSoftwareVertexProcessing
(
IWineD3DDevice
*
iface
,
BOOL
bSoftware
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
static
BOOL
showFixmes
=
TRUE
;
static
BOOL
showFixmes
=
TRUE
;
if
(
showFixmes
)
{
if
(
showFixmes
)
{
...
@@ -6196,7 +6196,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetSoftwareVertexProcessing(IWineD3DDevice *
...
@@ -6196,7 +6196,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetSoftwareVertexProcessing(IWineD3DDevice *
}
}
BOOL
WINAPI
IWineD3DDeviceImpl_GetSoftwareVertexProcessing
(
IWineD3DDevice
*
iface
)
{
static
BOOL
WINAPI
IWineD3DDeviceImpl_GetSoftwareVertexProcessing
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
static
BOOL
showFixmes
=
TRUE
;
static
BOOL
showFixmes
=
TRUE
;
if
(
showFixmes
)
{
if
(
showFixmes
)
{
...
@@ -6207,7 +6207,7 @@ BOOL WINAPI IWineD3DDeviceImpl_GetSoftwareVertexProcessing(IWineD3DDevice *
...
@@ -6207,7 +6207,7 @@ BOOL WINAPI IWineD3DDeviceImpl_GetSoftwareVertexProcessing(IWineD3DDevice *
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRasterStatus
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DRASTER_STATUS
*
pRasterStatus
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRasterStatus
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DRASTER_STATUS
*
pRasterStatus
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSwapChain
*
swapChain
;
IWineD3DSwapChain
*
swapChain
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -6225,7 +6225,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetRasterStatus(IWineD3DDevice *iface, UINT
...
@@ -6225,7 +6225,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetRasterStatus(IWineD3DDevice *iface, UINT
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetNPatchMode
(
IWineD3DDevice
*
iface
,
float
nSegments
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetNPatchMode
(
IWineD3DDevice
*
iface
,
float
nSegments
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
static
BOOL
showfixmes
=
TRUE
;
static
BOOL
showfixmes
=
TRUE
;
if
(
nSegments
!=
0
.
0
f
)
{
if
(
nSegments
!=
0
.
0
f
)
{
...
@@ -6237,7 +6237,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetNPatchMode(IWineD3DDevice *iface, float n
...
@@ -6237,7 +6237,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetNPatchMode(IWineD3DDevice *iface, float n
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
float
WINAPI
IWineD3DDeviceImpl_GetNPatchMode
(
IWineD3DDevice
*
iface
)
{
static
float
WINAPI
IWineD3DDeviceImpl_GetNPatchMode
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
static
BOOL
showfixmes
=
TRUE
;
static
BOOL
showfixmes
=
TRUE
;
if
(
showfixmes
)
{
if
(
showfixmes
)
{
...
@@ -6247,7 +6247,7 @@ float WINAPI IWineD3DDeviceImpl_GetNPatchMode(IWineD3DDevice *iface) {
...
@@ -6247,7 +6247,7 @@ float WINAPI IWineD3DDeviceImpl_GetNPatchMode(IWineD3DDevice *iface) {
return
0
.
0
f
;
return
0
.
0
f
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_UpdateSurface
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IWineD3DSurface
*
pDestinationSurface
,
CONST
POINT
*
pDestPoint
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_UpdateSurface
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IWineD3DSurface
*
pDestinationSurface
,
CONST
POINT
*
pDestPoint
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/** TODO: remove casts to IWineD3DSurfaceImpl
/** TODO: remove casts to IWineD3DSurfaceImpl
* NOTE: move code to surface to accomplish this
* NOTE: move code to surface to accomplish this
...
@@ -6445,7 +6445,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface, IWineD3
...
@@ -6445,7 +6445,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface, IWineD3
}
}
/* Used by DirectX 8 */
/* Used by DirectX 8 */
HRESULT
WINAPI
IWineD3DDeviceImpl_CopyRects
(
IWineD3DDevice
*
iface
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CopyRects
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRectsArray
,
UINT
cRects
,
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRectsArray
,
UINT
cRects
,
IWineD3DSurface
*
pDestinationSurface
,
CONST
POINT
*
pDestPointsArray
)
{
IWineD3DSurface
*
pDestinationSurface
,
CONST
POINT
*
pDestPointsArray
)
{
...
@@ -6565,7 +6565,7 @@ OpenGL evaluators or tessellate surfaces within your application.
...
@@ -6565,7 +6565,7 @@ OpenGL evaluators or tessellate surfaces within your application.
*/
*/
/* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/d3d/interfaces/idirect3ddevice9/DrawRectPatch.asp */
/* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/d3d/interfaces/idirect3ddevice9/DrawRectPatch.asp */
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawRectPatch
(
IWineD3DDevice
*
iface
,
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
WINED3DRECTPATCH_INFO
*
pRectPatchInfo
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawRectPatch
(
IWineD3DDevice
*
iface
,
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
WINED3DRECTPATCH_INFO
*
pRectPatchInfo
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) Handle(%d) noSegs(%p) rectpatch(%p)
\n
"
,
This
,
Handle
,
pNumSegs
,
pRectPatchInfo
);
TRACE
(
"(%p) Handle(%d) noSegs(%p) rectpatch(%p)
\n
"
,
This
,
Handle
,
pNumSegs
,
pRectPatchInfo
);
FIXME
(
"(%p) : Stub
\n
"
,
This
);
FIXME
(
"(%p) : Stub
\n
"
,
This
);
...
@@ -6574,21 +6574,21 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawRectPatch(IWineD3DDevice *iface, UINT Hand
...
@@ -6574,21 +6574,21 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawRectPatch(IWineD3DDevice *iface, UINT Hand
}
}
/* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/d3d/interfaces/idirect3ddevice9/DrawTriPatch.asp */
/* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/d3d/interfaces/idirect3ddevice9/DrawTriPatch.asp */
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawTriPatch
(
IWineD3DDevice
*
iface
,
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
WINED3DTRIPATCH_INFO
*
pTriPatchInfo
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_DrawTriPatch
(
IWineD3DDevice
*
iface
,
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
WINED3DTRIPATCH_INFO
*
pTriPatchInfo
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) Handle(%d) noSegs(%p) tripatch(%p)
\n
"
,
This
,
Handle
,
pNumSegs
,
pTriPatchInfo
);
TRACE
(
"(%p) Handle(%d) noSegs(%p) tripatch(%p)
\n
"
,
This
,
Handle
,
pNumSegs
,
pTriPatchInfo
);
FIXME
(
"(%p) : Stub
\n
"
,
This
);
FIXME
(
"(%p) : Stub
\n
"
,
This
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_DeletePatch
(
IWineD3DDevice
*
iface
,
UINT
Handle
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_DeletePatch
(
IWineD3DDevice
*
iface
,
UINT
Handle
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) Handle(%d)
\n
"
,
This
,
Handle
);
TRACE
(
"(%p) Handle(%d)
\n
"
,
This
,
Handle
);
FIXME
(
"(%p) : Stub
\n
"
,
This
);
FIXME
(
"(%p) : Stub
\n
"
,
This
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_ColorFill
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSurface
,
CONST
D3DRECT
*
pRect
,
D3DCOLOR
color
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_ColorFill
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSurface
,
CONST
D3DRECT
*
pRect
,
D3DCOLOR
color
)
{
/* I couldn't find a 'really' quick way of doing this in openGl so here goes
/* I couldn't find a 'really' quick way of doing this in openGl so here goes
fill a surface with a block of color! */
fill a surface with a block of color! */
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -6696,7 +6696,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface, IWineD3DSurfa
...
@@ -6696,7 +6696,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface, IWineD3DSurfa
}
}
/* rendertarget and deptth stencil functions */
/* rendertarget and deptth stencil functions */
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRenderTarget
(
IWineD3DDevice
*
iface
,
DWORD
RenderTargetIndex
,
IWineD3DSurface
**
ppRenderTarget
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRenderTarget
(
IWineD3DDevice
*
iface
,
DWORD
RenderTargetIndex
,
IWineD3DSurface
**
ppRenderTarget
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/* FIXME: Implelent RenderTargetIndex >0 */
/* FIXME: Implelent RenderTargetIndex >0 */
...
@@ -6711,7 +6711,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetRenderTarget(IWineD3DDevice* iface,DWORD
...
@@ -6711,7 +6711,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetRenderTarget(IWineD3DDevice* iface,DWORD
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetFrontBackBuffers
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
Front
,
IWineD3DSurface
*
Back
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetFrontBackBuffers
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
Front
,
IWineD3DSurface
*
Back
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
FrontImpl
=
(
IWineD3DSurfaceImpl
*
)
Front
;
IWineD3DSurfaceImpl
*
FrontImpl
=
(
IWineD3DSurfaceImpl
*
)
Front
;
IWineD3DSurfaceImpl
*
BackImpl
=
(
IWineD3DSurfaceImpl
*
)
Back
;
IWineD3DSurfaceImpl
*
BackImpl
=
(
IWineD3DSurfaceImpl
*
)
Back
;
...
@@ -6778,7 +6778,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *iface, IWi
...
@@ -6778,7 +6778,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *iface, IWi
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDepthStencilSurface
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
**
ppZStencilSurface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDepthStencilSurface
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
**
ppZStencilSurface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
*
ppZStencilSurface
=
This
->
depthStencilBuffer
;
*
ppZStencilSurface
=
This
->
depthStencilBuffer
;
TRACE
(
"(%p) : zStencilSurface returning %p
\n
"
,
This
,
*
ppZStencilSurface
);
TRACE
(
"(%p) : zStencilSurface returning %p
\n
"
,
This
,
*
ppZStencilSurface
);
...
@@ -6791,10 +6791,10 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetDepthStencilSurface(IWineD3DDevice* iface
...
@@ -6791,10 +6791,10 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetDepthStencilSurface(IWineD3DDevice* iface
}
}
/* internal static helper functions */
/* internal static helper functions */
HRESULT
WINAPI
static
IWineD3DDeviceImpl_ActiveRender
(
IWineD3DDevice
*
iface
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_ActiveRender
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
RenderSurface
);
IWineD3DSurface
*
RenderSurface
);
HRESULT
WINAPI
IWineD3DDeviceImpl_SetRenderTarget
(
IWineD3DDevice
*
iface
,
DWORD
RenderTargetIndex
,
IWineD3DSurface
*
pRenderTarget
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetRenderTarget
(
IWineD3DDevice
*
iface
,
DWORD
RenderTargetIndex
,
IWineD3DSurface
*
pRenderTarget
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
HRESULT
hr
=
WINED3D_OK
;
HRESULT
hr
=
WINED3D_OK
;
WINED3DVIEWPORT
viewport
;
WINED3DVIEWPORT
viewport
;
...
@@ -6860,7 +6860,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface, DWORD R
...
@@ -6860,7 +6860,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface, DWORD R
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetDepthStencilSurface
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pNewZStencil
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetDepthStencilSurface
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pNewZStencil
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
HRESULT
hr
=
WINED3D_OK
;
HRESULT
hr
=
WINED3D_OK
;
IWineD3DSurface
*
tmp
;
IWineD3DSurface
*
tmp
;
...
@@ -6899,7 +6899,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetDepthStencilSurface(IWineD3DDevice *iface,
...
@@ -6899,7 +6899,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetDepthStencilSurface(IWineD3DDevice *iface,
*(the swapchain doesn't need to know anything about offscreen rendering!)
*(the swapchain doesn't need to know anything about offscreen rendering!)
****************************************************/
****************************************************/
HRESULT
WINAPI
IWineD3DDeviceImpl_CleanRender
(
IWineD3DDevice
*
iface
,
IWineD3DSwapChainImpl
*
swapchain
)
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CleanRender
(
IWineD3DDevice
*
iface
,
IWineD3DSwapChainImpl
*
swapchain
)
{
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -6914,7 +6914,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CleanRender(IWineD3DDevice* iface, IWineD3DSwa
...
@@ -6914,7 +6914,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_CleanRender(IWineD3DDevice* iface, IWineD3DSwa
}
}
/* TODO: move this off into a context manager so that GLX_ATI_render_texture and other types of surface can be used. */
/* TODO: move this off into a context manager so that GLX_ATI_render_texture and other types of surface can be used. */
HRESULT
WINAPI
IWineD3DDeviceImpl_FindGLContext
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSurface
,
glContext
**
context
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_FindGLContext
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSurface
,
glContext
**
context
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
;
int
i
;
unsigned
int
width
;
unsigned
int
width
;
...
@@ -6981,7 +6981,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_FindGLContext(IWineD3DDevice *iface, IWineD3DS
...
@@ -6981,7 +6981,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_FindGLContext(IWineD3DDevice *iface, IWineD3DS
* the functionality needs splitting up so that we don't do more than we should do.
* the functionality needs splitting up so that we don't do more than we should do.
* this only seems to impact performance a little.
* this only seems to impact performance a little.
******************************/
******************************/
HRESULT
WINAPI
IWineD3DDeviceImpl_ActiveRender
(
IWineD3DDevice
*
iface
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_ActiveRender
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
RenderSurface
)
{
IWineD3DSurface
*
RenderSurface
)
{
HRESULT
ret
=
WINED3DERR_INVALIDCALL
;
HRESULT
ret
=
WINED3DERR_INVALIDCALL
;
...
@@ -7267,7 +7267,7 @@ the directX current directX state should then be applied to the context */
...
@@ -7267,7 +7267,7 @@ the directX current directX state should then be applied to the context */
return
ret
;
return
ret
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetCursorProperties
(
IWineD3DDevice
*
iface
,
UINT
XHotSpot
,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetCursorProperties
(
IWineD3DDevice
*
iface
,
UINT
XHotSpot
,
UINT
YHotSpot
,
IWineD3DSurface
*
pCursorBitmap
)
{
UINT
YHotSpot
,
IWineD3DSurface
*
pCursorBitmap
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/* TODO: the use of Impl is deprecated. */
/* TODO: the use of Impl is deprecated. */
...
@@ -7292,7 +7292,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetCursorProperties(IWineD3DDevice* iface, U
...
@@ -7292,7 +7292,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetCursorProperties(IWineD3DDevice* iface, U
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
void
WINAPI
IWineD3DDeviceImpl_SetCursorPosition
(
IWineD3DDevice
*
iface
,
int
XScreenSpace
,
int
YScreenSpace
,
DWORD
Flags
)
{
static
void
WINAPI
IWineD3DDeviceImpl_SetCursorPosition
(
IWineD3DDevice
*
iface
,
int
XScreenSpace
,
int
YScreenSpace
,
DWORD
Flags
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : SetPos to (%u,%u)
\n
"
,
This
,
XScreenSpace
,
YScreenSpace
);
TRACE
(
"(%p) : SetPos to (%u,%u)
\n
"
,
This
,
XScreenSpace
,
YScreenSpace
);
...
@@ -7303,7 +7303,7 @@ void WINAPI IWineD3DDeviceImpl_SetCursorPosition(IWineD3DDevice* iface, int
...
@@ -7303,7 +7303,7 @@ void WINAPI IWineD3DDeviceImpl_SetCursorPosition(IWineD3DDevice* iface, int
}
}
BOOL
WINAPI
IWineD3DDeviceImpl_ShowCursor
(
IWineD3DDevice
*
iface
,
BOOL
bShow
)
{
static
BOOL
WINAPI
IWineD3DDeviceImpl_ShowCursor
(
IWineD3DDevice
*
iface
,
BOOL
bShow
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : visible(%d)
\n
"
,
This
,
bShow
);
TRACE
(
"(%p) : visible(%d)
\n
"
,
This
,
bShow
);
...
@@ -7312,7 +7312,7 @@ BOOL WINAPI IWineD3DDeviceImpl_ShowCursor(IWineD3DDevice* iface, BOOL bShow
...
@@ -7312,7 +7312,7 @@ BOOL WINAPI IWineD3DDeviceImpl_ShowCursor(IWineD3DDevice* iface, BOOL bShow
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_TestCooperativeLevel
(
IWineD3DDevice
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_TestCooperativeLevel
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : state (%lu)
\n
"
,
This
,
This
->
state
);
TRACE
(
"(%p) : state (%lu)
\n
"
,
This
,
This
->
state
);
/* TODO: Implement wrapping of the WndProc so that mimimize and maxamise can be monitored and the states adjusted. */
/* TODO: Implement wrapping of the WndProc so that mimimize and maxamise can be monitored and the states adjusted. */
...
@@ -7338,7 +7338,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_TestCooperativeLevel(IWineD3DDevice* iface)
...
@@ -7338,7 +7338,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_TestCooperativeLevel(IWineD3DDevice* iface)
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_EvictManagedResources
(
IWineD3DDevice
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_EvictManagedResources
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/** FIXME: Resource tracking needs to be done,
/** FIXME: Resource tracking needs to be done,
* The closes we can do to this is set the priorities of all managed textures low
* The closes we can do to this is set the priorities of all managed textures low
...
@@ -7348,7 +7348,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EvictManagedResources(IWineD3DDevice* iface)
...
@@ -7348,7 +7348,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_EvictManagedResources(IWineD3DDevice* iface)
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_Reset
(
IWineD3DDevice
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Reset
(
IWineD3DDevice
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/** FIXME: Resource trascking needs to be done.
/** FIXME: Resource trascking needs to be done.
* in effect this pulls all non only default
* in effect this pulls all non only default
...
@@ -7359,7 +7359,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRESENT_PA
...
@@ -7359,7 +7359,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRESENT_PA
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_SetDialogBoxMode
(
IWineD3DDevice
*
iface
,
BOOL
bEnableDialogs
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetDialogBoxMode
(
IWineD3DDevice
*
iface
,
BOOL
bEnableDialogs
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/** FIXME: always true at the moment **/
/** FIXME: always true at the moment **/
if
(
bEnableDialogs
==
FALSE
)
{
if
(
bEnableDialogs
==
FALSE
)
{
...
@@ -7369,7 +7369,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetDialogBoxMode(IWineD3DDevice *iface, BOOL b
...
@@ -7369,7 +7369,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetDialogBoxMode(IWineD3DDevice *iface, BOOL b
}
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetCreationParameters
(
IWineD3DDevice
*
iface
,
WINED3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetCreationParameters
(
IWineD3DDevice
*
iface
,
WINED3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : pParameters %p
\n
"
,
This
,
pParameters
);
TRACE
(
"(%p) : pParameters %p
\n
"
,
This
,
pParameters
);
...
@@ -7377,7 +7377,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetCreationParameters(IWineD3DDevice *iface,
...
@@ -7377,7 +7377,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetCreationParameters(IWineD3DDevice *iface,
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
void
WINAPI
IWineD3DDeviceImpl_SetGammaRamp
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
DWORD
Flags
,
CONST
WINED3DGAMMARAMP
*
pRamp
)
{
static
void
WINAPI
IWineD3DDeviceImpl_SetGammaRamp
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
DWORD
Flags
,
CONST
WINED3DGAMMARAMP
*
pRamp
)
{
IWineD3DSwapChain
*
swapchain
;
IWineD3DSwapChain
*
swapchain
;
HRESULT
hrc
=
WINED3D_OK
;
HRESULT
hrc
=
WINED3D_OK
;
...
@@ -7390,7 +7390,7 @@ void WINAPI IWineD3DDeviceImpl_SetGammaRamp(IWineD3DDevice * iface, UINT iSwapCh
...
@@ -7390,7 +7390,7 @@ void WINAPI IWineD3DDeviceImpl_SetGammaRamp(IWineD3DDevice * iface, UINT iSwapCh
return
;
return
;
}
}
void
WINAPI
IWineD3DDeviceImpl_GetGammaRamp
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DGAMMARAMP
*
pRamp
)
{
static
void
WINAPI
IWineD3DDeviceImpl_GetGammaRamp
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DGAMMARAMP
*
pRamp
)
{
IWineD3DSwapChain
*
swapchain
;
IWineD3DSwapChain
*
swapchain
;
HRESULT
hrc
=
WINED3D_OK
;
HRESULT
hrc
=
WINED3D_OK
;
...
@@ -7477,7 +7477,7 @@ static void WINAPI IWineD3DDeviceImpl_RemoveResource(IWineD3DDevice *iface, IWin
...
@@ -7477,7 +7477,7 @@ static void WINAPI IWineD3DDeviceImpl_RemoveResource(IWineD3DDevice *iface, IWin
}
}
void
WINAPI
IWineD3DDeviceImpl_ResourceReleased
(
IWineD3DDevice
*
iface
,
IWineD3DResource
*
resource
){
static
void
WINAPI
IWineD3DDeviceImpl_ResourceReleased
(
IWineD3DDevice
*
iface
,
IWineD3DResource
*
resource
){
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
counter
;
int
counter
;
...
...
dlls/wined3d/directx.c
View file @
e9cbc66e
...
@@ -163,7 +163,7 @@ static void WineD3D_ReleaseFakeGLContext(WineD3D_Context* ctx) {
...
@@ -163,7 +163,7 @@ static void WineD3D_ReleaseFakeGLContext(WineD3D_Context* ctx) {
* IUnknown parts follows
* IUnknown parts follows
**********************************************************/
**********************************************************/
HRESULT
WINAPI
IWineD3DImpl_QueryInterface
(
IWineD3D
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DImpl_QueryInterface
(
IWineD3D
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
@@ -179,7 +179,7 @@ HRESULT WINAPI IWineD3DImpl_QueryInterface(IWineD3D *iface,REFIID riid,LPVOID *p
...
@@ -179,7 +179,7 @@ HRESULT WINAPI IWineD3DImpl_QueryInterface(IWineD3D *iface,REFIID riid,LPVOID *p
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DImpl_AddRef
(
IWineD3D
*
iface
)
{
static
ULONG
WINAPI
IWineD3DImpl_AddRef
(
IWineD3D
*
iface
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
@@ -187,7 +187,7 @@ ULONG WINAPI IWineD3DImpl_AddRef(IWineD3D *iface) {
...
@@ -187,7 +187,7 @@ ULONG WINAPI IWineD3DImpl_AddRef(IWineD3D *iface) {
return
refCount
;
return
refCount
;
}
}
ULONG
WINAPI
IWineD3DImpl_Release
(
IWineD3D
*
iface
)
{
static
ULONG
WINAPI
IWineD3DImpl_Release
(
IWineD3D
*
iface
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
...
@@ -772,7 +772,7 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display) {
...
@@ -772,7 +772,7 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display) {
* IWineD3D implementation follows
* IWineD3D implementation follows
**********************************************************/
**********************************************************/
UINT
WINAPI
IWineD3DImpl_GetAdapterCount
(
IWineD3D
*
iface
)
{
static
UINT
WINAPI
IWineD3DImpl_GetAdapterCount
(
IWineD3D
*
iface
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
/* FIXME: Set to one for now to imply the display */
/* FIXME: Set to one for now to imply the display */
...
@@ -780,13 +780,13 @@ UINT WINAPI IWineD3DImpl_GetAdapterCount (IWineD3D *iface) {
...
@@ -780,13 +780,13 @@ UINT WINAPI IWineD3DImpl_GetAdapterCount (IWineD3D *iface) {
return
1
;
return
1
;
}
}
HRESULT
WINAPI
IWineD3DImpl_RegisterSoftwareDevice
(
IWineD3D
*
iface
,
void
*
pInitializeFunction
)
{
static
HRESULT
WINAPI
IWineD3DImpl_RegisterSoftwareDevice
(
IWineD3D
*
iface
,
void
*
pInitializeFunction
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
pInitializeFunction
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
pInitializeFunction
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HMONITOR
WINAPI
IWineD3DImpl_GetAdapterMonitor
(
IWineD3D
*
iface
,
UINT
Adapter
)
{
static
HMONITOR
WINAPI
IWineD3DImpl_GetAdapterMonitor
(
IWineD3D
*
iface
,
UINT
Adapter
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
FIXME_
(
d3d_caps
)(
"(%p)->(Adptr:%d)
\n
"
,
This
,
Adapter
);
FIXME_
(
d3d_caps
)(
"(%p)->(Adptr:%d)
\n
"
,
This
,
Adapter
);
if
(
Adapter
>=
IWineD3DImpl_GetAdapterCount
(
iface
))
{
if
(
Adapter
>=
IWineD3DImpl_GetAdapterCount
(
iface
))
{
...
@@ -799,7 +799,7 @@ HMONITOR WINAPI IWineD3DImpl_GetAdapterMonitor(IWineD3D *iface, UINT Adapter) {
...
@@ -799,7 +799,7 @@ HMONITOR WINAPI IWineD3DImpl_GetAdapterMonitor(IWineD3D *iface, UINT Adapter) {
of the same bpp but different resolutions */
of the same bpp but different resolutions */
/* Note: dx9 supplies a format. Calls from d3d8 supply D3DFMT_UNKNOWN */
/* Note: dx9 supplies a format. Calls from d3d8 supply D3DFMT_UNKNOWN */
UINT
WINAPI
IWineD3DImpl_GetAdapterModeCount
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DFORMAT
Format
)
{
static
UINT
WINAPI
IWineD3DImpl_GetAdapterModeCount
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DFORMAT
Format
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
TRACE_
(
d3d_caps
)(
"(%p}->(Adapter: %d, Format: %s)
\n
"
,
This
,
Adapter
,
debug_d3dformat
(
Format
));
TRACE_
(
d3d_caps
)(
"(%p}->(Adapter: %d, Format: %s)
\n
"
,
This
,
Adapter
,
debug_d3dformat
(
Format
));
...
@@ -853,7 +853,7 @@ UINT WINAPI IWineD3DImpl_GetAdapterModeCount(IWineD3D *iface, UINT Adapter,
...
@@ -853,7 +853,7 @@ UINT WINAPI IWineD3DImpl_GetAdapterModeCount(IWineD3D *iface, UINT Adapter,
}
}
/* Note: dx9 supplies a format. Calls from d3d8 supply D3DFMT_UNKNOWN */
/* Note: dx9 supplies a format. Calls from d3d8 supply D3DFMT_UNKNOWN */
HRESULT
WINAPI
IWineD3DImpl_EnumAdapterModes
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DFORMAT
Format
,
UINT
Mode
,
WINED3DDISPLAYMODE
*
pMode
)
{
static
HRESULT
WINAPI
IWineD3DImpl_EnumAdapterModes
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DFORMAT
Format
,
UINT
Mode
,
WINED3DDISPLAYMODE
*
pMode
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
TRACE_
(
d3d_caps
)(
"(%p}->(Adapter:%d, mode:%d, pMode:%p, format:%s)
\n
"
,
This
,
Adapter
,
Mode
,
pMode
,
debug_d3dformat
(
Format
));
TRACE_
(
d3d_caps
)(
"(%p}->(Adapter:%d, mode:%d, pMode:%p, format:%s)
\n
"
,
This
,
Adapter
,
Mode
,
pMode
,
debug_d3dformat
(
Format
));
...
@@ -960,7 +960,7 @@ HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapter, WINE
...
@@ -960,7 +960,7 @@ HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapter, WINE
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DImpl_GetAdapterDisplayMode
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDISPLAYMODE
*
pMode
)
{
static
HRESULT
WINAPI
IWineD3DImpl_GetAdapterDisplayMode
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDISPLAYMODE
*
pMode
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
TRACE_
(
d3d_caps
)(
"(%p}->(Adapter: %d, pMode: %p)
\n
"
,
This
,
Adapter
,
pMode
);
TRACE_
(
d3d_caps
)(
"(%p}->(Adapter: %d, pMode: %p)
\n
"
,
This
,
Adapter
,
pMode
);
...
@@ -1014,7 +1014,7 @@ static Display * WINAPI IWineD3DImpl_GetAdapterDisplay(IWineD3D *iface, UINT Ada
...
@@ -1014,7 +1014,7 @@ static Display * WINAPI IWineD3DImpl_GetAdapterDisplay(IWineD3D *iface, UINT Ada
/* NOTE: due to structure differences between dx8 and dx9 D3DADAPTER_IDENTIFIER,
/* NOTE: due to structure differences between dx8 and dx9 D3DADAPTER_IDENTIFIER,
and fields being inserted in the middle, a new structure is used in place */
and fields being inserted in the middle, a new structure is used in place */
HRESULT
WINAPI
IWineD3DImpl_GetAdapterIdentifier
(
IWineD3D
*
iface
,
UINT
Adapter
,
DWORD
Flags
,
static
HRESULT
WINAPI
IWineD3DImpl_GetAdapterIdentifier
(
IWineD3D
*
iface
,
UINT
Adapter
,
DWORD
Flags
,
WINED3DADAPTER_IDENTIFIER
*
pIdentifier
)
{
WINED3DADAPTER_IDENTIFIER
*
pIdentifier
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
...
@@ -1215,7 +1215,7 @@ static BOOL IWineD3DImpl_IsGLXFBConfigCompatibleWithDepthFmt(WineD3D_Context* ct
...
@@ -1215,7 +1215,7 @@ static BOOL IWineD3DImpl_IsGLXFBConfigCompatibleWithDepthFmt(WineD3D_Context* ct
#endif
#endif
}
}
HRESULT
WINAPI
IWineD3DImpl_CheckDepthStencilMatch
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
static
HRESULT
WINAPI
IWineD3DImpl_CheckDepthStencilMatch
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
WINED3DFORMAT
AdapterFormat
,
WINED3DFORMAT
AdapterFormat
,
WINED3DFORMAT
RenderTargetFormat
,
WINED3DFORMAT
RenderTargetFormat
,
WINED3DFORMAT
DepthStencilFormat
)
{
WINED3DFORMAT
DepthStencilFormat
)
{
...
@@ -1271,7 +1271,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDepthStencilMatch(IWineD3D *iface, UINT Adapter
...
@@ -1271,7 +1271,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDepthStencilMatch(IWineD3D *iface, UINT Adapter
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceMultiSampleType
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
static
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceMultiSampleType
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
WINED3DFORMAT
SurfaceFormat
,
WINED3DFORMAT
SurfaceFormat
,
BOOL
Windowed
,
WINED3DMULTISAMPLE_TYPE
MultiSampleType
,
DWORD
*
pQualityLevels
)
{
BOOL
Windowed
,
WINED3DMULTISAMPLE_TYPE
MultiSampleType
,
DWORD
*
pQualityLevels
)
{
...
@@ -1302,7 +1302,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDeviceMultiSampleType(IWineD3D *iface, UINT Ada
...
@@ -1302,7 +1302,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDeviceMultiSampleType(IWineD3D *iface, UINT Ada
return
WINED3DERR_NOTAVAILABLE
;
return
WINED3DERR_NOTAVAILABLE
;
}
}
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceType
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
CheckType
,
static
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceType
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
CheckType
,
WINED3DFORMAT
DisplayFormat
,
WINED3DFORMAT
BackBufferFormat
,
BOOL
Windowed
)
{
WINED3DFORMAT
DisplayFormat
,
WINED3DFORMAT
BackBufferFormat
,
BOOL
Windowed
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
...
@@ -1343,7 +1343,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDeviceType(IWineD3D *iface, UINT Adapter, WINED
...
@@ -1343,7 +1343,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDeviceType(IWineD3D *iface, UINT Adapter, WINED
return
WINED3DERR_NOTAVAILABLE
;
return
WINED3DERR_NOTAVAILABLE
;
}
}
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceFormat
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
static
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceFormat
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
WINED3DFORMAT
AdapterFormat
,
DWORD
Usage
,
WINED3DRESOURCETYPE
RType
,
WINED3DFORMAT
CheckFormat
)
{
WINED3DFORMAT
AdapterFormat
,
DWORD
Usage
,
WINED3DRESOURCETYPE
RType
,
WINED3DFORMAT
CheckFormat
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
TRACE_
(
d3d_caps
)(
"(%p)-> (STUB) (Adptr:%d, DevType:(%u,%s), AdptFmt:(%u,%s), Use:(%lu,%s), ResTyp:(%x,%s), CheckFmt:(%u,%s)) "
,
TRACE_
(
d3d_caps
)(
"(%p)-> (STUB) (Adptr:%d, DevType:(%u,%s), AdptFmt:(%u,%s), Use:(%lu,%s), ResTyp:(%x,%s), CheckFmt:(%u,%s)) "
,
...
@@ -1435,7 +1435,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapter, WIN
...
@@ -1435,7 +1435,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapter, WIN
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceFormatConversion
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
static
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceFormatConversion
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
WINED3DFORMAT
SourceFormat
,
WINED3DFORMAT
TargetFormat
)
{
WINED3DFORMAT
SourceFormat
,
WINED3DFORMAT
TargetFormat
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
...
@@ -1451,7 +1451,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDeviceFormatConversion(IWineD3D *iface, UINT
...
@@ -1451,7 +1451,7 @@ HRESULT WINAPI IWineD3DImpl_CheckDeviceFormatConversion(IWineD3D *iface, UINT
/* Note: d3d8 passes in a pointer to a D3DCAPS8 structure, which is a true
/* Note: d3d8 passes in a pointer to a D3DCAPS8 structure, which is a true
subset of a D3DCAPS9 structure. However, it has to come via a void *
subset of a D3DCAPS9 structure. However, it has to come via a void *
as the d3d8 interface cannot import the d3d9 header */
as the d3d8 interface cannot import the d3d9 header */
HRESULT
WINAPI
IWineD3DImpl_GetDeviceCaps
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
WINED3DCAPS
*
pCaps
)
{
static
HRESULT
WINAPI
IWineD3DImpl_GetDeviceCaps
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
WINED3DCAPS
*
pCaps
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
...
@@ -1794,7 +1794,7 @@ HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, WINED3D
...
@@ -1794,7 +1794,7 @@ HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, WINED3D
/* Note due to structure differences between dx8 and dx9 D3DPRESENT_PARAMETERS,
/* Note due to structure differences between dx8 and dx9 D3DPRESENT_PARAMETERS,
and fields being inserted in the middle, a new structure is used in place */
and fields being inserted in the middle, a new structure is used in place */
HRESULT
WINAPI
IWineD3DImpl_CreateDevice
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
static
HRESULT
WINAPI
IWineD3DImpl_CreateDevice
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviourFlags
,
IWineD3DDevice
**
ppReturnedDeviceInterface
,
DWORD
BehaviourFlags
,
IWineD3DDevice
**
ppReturnedDeviceInterface
,
IUnknown
*
parent
)
{
IUnknown
*
parent
)
{
...
@@ -1899,7 +1899,7 @@ create_device_error:
...
@@ -1899,7 +1899,7 @@ create_device_error:
}
}
HRESULT
WINAPI
IWineD3DImpl_GetParent
(
IWineD3D
*
iface
,
IUnknown
**
pParent
)
{
static
HRESULT
WINAPI
IWineD3DImpl_GetParent
(
IWineD3D
*
iface
,
IUnknown
**
pParent
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
IUnknown_AddRef
(
This
->
parent
);
IUnknown_AddRef
(
This
->
parent
);
*
pParent
=
This
->
parent
;
*
pParent
=
This
->
parent
;
...
...
dlls/wined3d/indexbuffer.c
View file @
e9cbc66e
...
@@ -30,7 +30,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
...
@@ -30,7 +30,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
/* *******************************************
/* *******************************************
IWineD3DIndexBuffer IUnknown parts follow
IWineD3DIndexBuffer IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DIndexBufferImpl_QueryInterface
(
IWineD3DIndexBuffer
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DIndexBufferImpl_QueryInterface
(
IWineD3DIndexBuffer
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -46,14 +46,14 @@ HRESULT WINAPI IWineD3DIndexBufferImpl_QueryInterface(IWineD3DIndexBuffer *iface
...
@@ -46,14 +46,14 @@ HRESULT WINAPI IWineD3DIndexBufferImpl_QueryInterface(IWineD3DIndexBuffer *iface
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DIndexBufferImpl_AddRef
(
IWineD3DIndexBuffer
*
iface
)
{
static
ULONG
WINAPI
IWineD3DIndexBufferImpl_AddRef
(
IWineD3DIndexBuffer
*
iface
)
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
ref
-
1
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
return
ref
;
}
}
ULONG
WINAPI
IWineD3DIndexBufferImpl_Release
(
IWineD3DIndexBuffer
*
iface
)
{
static
ULONG
WINAPI
IWineD3DIndexBufferImpl_Release
(
IWineD3DIndexBuffer
*
iface
)
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
ref
+
1
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
ref
+
1
);
...
@@ -67,57 +67,57 @@ ULONG WINAPI IWineD3DIndexBufferImpl_Release(IWineD3DIndexBuffer *iface) {
...
@@ -67,57 +67,57 @@ ULONG WINAPI IWineD3DIndexBufferImpl_Release(IWineD3DIndexBuffer *iface) {
/* ****************************************************
/* ****************************************************
IWineD3DIndexBuffer IWineD3DResource parts follow
IWineD3DIndexBuffer IWineD3DResource parts follow
**************************************************** */
**************************************************** */
HRESULT
WINAPI
IWineD3DIndexBufferImpl_GetDevice
(
IWineD3DIndexBuffer
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
static
HRESULT
WINAPI
IWineD3DIndexBufferImpl_GetDevice
(
IWineD3DIndexBuffer
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
}
}
HRESULT
WINAPI
IWineD3DIndexBufferImpl_SetPrivateData
(
IWineD3DIndexBuffer
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DIndexBufferImpl_SetPrivateData
(
IWineD3DIndexBuffer
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
}
HRESULT
WINAPI
IWineD3DIndexBufferImpl_GetPrivateData
(
IWineD3DIndexBuffer
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IWineD3DIndexBufferImpl_GetPrivateData
(
IWineD3DIndexBuffer
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
}
HRESULT
WINAPI
IWineD3DIndexBufferImpl_FreePrivateData
(
IWineD3DIndexBuffer
*
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IWineD3DIndexBufferImpl_FreePrivateData
(
IWineD3DIndexBuffer
*
iface
,
REFGUID
refguid
)
{
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
}
}
DWORD
WINAPI
IWineD3DIndexBufferImpl_SetPriority
(
IWineD3DIndexBuffer
*
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IWineD3DIndexBufferImpl_SetPriority
(
IWineD3DIndexBuffer
*
iface
,
DWORD
PriorityNew
)
{
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
}
DWORD
WINAPI
IWineD3DIndexBufferImpl_GetPriority
(
IWineD3DIndexBuffer
*
iface
)
{
static
DWORD
WINAPI
IWineD3DIndexBufferImpl_GetPriority
(
IWineD3DIndexBuffer
*
iface
)
{
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
}
}
void
WINAPI
IWineD3DIndexBufferImpl_PreLoad
(
IWineD3DIndexBuffer
*
iface
)
{
static
void
WINAPI
IWineD3DIndexBufferImpl_PreLoad
(
IWineD3DIndexBuffer
*
iface
)
{
return
IWineD3DResourceImpl_PreLoad
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_PreLoad
((
IWineD3DResource
*
)
iface
);
}
}
WINED3DRESOURCETYPE
WINAPI
IWineD3DIndexBufferImpl_GetType
(
IWineD3DIndexBuffer
*
iface
)
{
static
WINED3DRESOURCETYPE
WINAPI
IWineD3DIndexBufferImpl_GetType
(
IWineD3DIndexBuffer
*
iface
)
{
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DIndexBufferImpl_GetParent
(
IWineD3DIndexBuffer
*
iface
,
IUnknown
**
pParent
)
{
static
HRESULT
WINAPI
IWineD3DIndexBufferImpl_GetParent
(
IWineD3DIndexBuffer
*
iface
,
IUnknown
**
pParent
)
{
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
}
}
/* ******************************************************
/* ******************************************************
IWineD3DIndexBuffer IWineD3DIndexBuffer parts follow
IWineD3DIndexBuffer IWineD3DIndexBuffer parts follow
****************************************************** */
****************************************************** */
HRESULT
WINAPI
IWineD3DIndexBufferImpl_Lock
(
IWineD3DIndexBuffer
*
iface
,
UINT
OffsetToLock
,
UINT
SizeToLock
,
BYTE
**
ppbData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DIndexBufferImpl_Lock
(
IWineD3DIndexBuffer
*
iface
,
UINT
OffsetToLock
,
UINT
SizeToLock
,
BYTE
**
ppbData
,
DWORD
Flags
)
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
TRACE
(
"(%p) : no real locking yet, offset %d, size %d, Flags=%lx
\n
"
,
This
,
OffsetToLock
,
SizeToLock
,
Flags
);
TRACE
(
"(%p) : no real locking yet, offset %d, size %d, Flags=%lx
\n
"
,
This
,
OffsetToLock
,
SizeToLock
,
Flags
);
*
ppbData
=
(
BYTE
*
)
This
->
resource
.
allocatedMemory
+
OffsetToLock
;
*
ppbData
=
(
BYTE
*
)
This
->
resource
.
allocatedMemory
+
OffsetToLock
;
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DIndexBufferImpl_Unlock
(
IWineD3DIndexBuffer
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DIndexBufferImpl_Unlock
(
IWineD3DIndexBuffer
*
iface
)
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
TRACE
(
"(%p) : stub
\n
"
,
This
);
TRACE
(
"(%p) : stub
\n
"
,
This
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DIndexBufferImpl_GetDesc
(
IWineD3DIndexBuffer
*
iface
,
WINED3DINDEXBUFFER_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IWineD3DIndexBufferImpl_GetDesc
(
IWineD3DIndexBuffer
*
iface
,
WINED3DINDEXBUFFER_DESC
*
pDesc
)
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
...
...
dlls/wined3d/palette.c
View file @
e9cbc66e
...
@@ -31,7 +31,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
...
@@ -31,7 +31,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
#define SIZE_BITS (DDPCAPS_1BIT | DDPCAPS_2BIT | DDPCAPS_4BIT | DDPCAPS_8BIT)
#define SIZE_BITS (DDPCAPS_1BIT | DDPCAPS_2BIT | DDPCAPS_4BIT | DDPCAPS_8BIT)
HRESULT
WINAPI
IWineD3DPaletteImpl_QueryInterface
(
IWineD3DPalette
*
iface
,
REFIID
refiid
,
void
**
obj
)
{
static
HRESULT
WINAPI
IWineD3DPaletteImpl_QueryInterface
(
IWineD3DPalette
*
iface
,
REFIID
refiid
,
void
**
obj
)
{
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
refiid
),
obj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
refiid
),
obj
);
...
@@ -47,7 +47,7 @@ HRESULT WINAPI IWineD3DPaletteImpl_QueryInterface(IWineD3DPalette *iface, REFIID
...
@@ -47,7 +47,7 @@ HRESULT WINAPI IWineD3DPaletteImpl_QueryInterface(IWineD3DPalette *iface, REFIID
}
}
}
}
ULONG
WINAPI
IWineD3DPaletteImpl_AddRef
(
IWineD3DPalette
*
iface
)
{
static
ULONG
WINAPI
IWineD3DPaletteImpl_AddRef
(
IWineD3DPalette
*
iface
)
{
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
@@ -56,7 +56,7 @@ ULONG WINAPI IWineD3DPaletteImpl_AddRef(IWineD3DPalette *iface) {
...
@@ -56,7 +56,7 @@ ULONG WINAPI IWineD3DPaletteImpl_AddRef(IWineD3DPalette *iface) {
return
ref
;
return
ref
;
}
}
ULONG
WINAPI
IWineD3DPaletteImpl_Release
(
IWineD3DPalette
*
iface
)
{
static
ULONG
WINAPI
IWineD3DPaletteImpl_Release
(
IWineD3DPalette
*
iface
)
{
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
@@ -81,7 +81,7 @@ DWORD IWineD3DPaletteImpl_Size(DWORD dwFlags) {
...
@@ -81,7 +81,7 @@ DWORD IWineD3DPaletteImpl_Size(DWORD dwFlags) {
}
}
}
}
HRESULT
WINAPI
IWineD3DPaletteImpl_GetEntries
(
IWineD3DPalette
*
iface
,
DWORD
Flags
,
DWORD
Start
,
DWORD
Count
,
PALETTEENTRY
*
PalEnt
)
{
static
HRESULT
WINAPI
IWineD3DPaletteImpl_GetEntries
(
IWineD3DPalette
*
iface
,
DWORD
Flags
,
DWORD
Start
,
DWORD
Count
,
PALETTEENTRY
*
PalEnt
)
{
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
TRACE
(
"(%p)->(%08lx,%ld,%ld,%p)
\n
"
,
This
,
Flags
,
Start
,
Count
,
PalEnt
);
TRACE
(
"(%p)->(%08lx,%ld,%ld,%p)
\n
"
,
This
,
Flags
,
Start
,
Count
,
PalEnt
);
...
@@ -104,7 +104,7 @@ HRESULT WINAPI IWineD3DPaletteImpl_GetEntries(IWineD3DPalette *iface, DWORD Flag
...
@@ -104,7 +104,7 @@ HRESULT WINAPI IWineD3DPaletteImpl_GetEntries(IWineD3DPalette *iface, DWORD Flag
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DPaletteImpl_SetEntries
(
IWineD3DPalette
*
iface
,
DWORD
Flags
,
DWORD
Start
,
DWORD
Count
,
PALETTEENTRY
*
PalEnt
)
static
HRESULT
WINAPI
IWineD3DPaletteImpl_SetEntries
(
IWineD3DPalette
*
iface
,
DWORD
Flags
,
DWORD
Start
,
DWORD
Count
,
PALETTEENTRY
*
PalEnt
)
{
{
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
ResourceList
*
res
;
ResourceList
*
res
;
...
@@ -156,7 +156,7 @@ HRESULT WINAPI IWineD3DPaletteImpl_SetEntries(IWineD3DPalette *iface, DWORD Flag
...
@@ -156,7 +156,7 @@ HRESULT WINAPI IWineD3DPaletteImpl_SetEntries(IWineD3DPalette *iface, DWORD Flag
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DPaletteImpl_GetCaps
(
IWineD3DPalette
*
iface
,
DWORD
*
Caps
)
{
static
HRESULT
WINAPI
IWineD3DPaletteImpl_GetCaps
(
IWineD3DPalette
*
iface
,
DWORD
*
Caps
)
{
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
Caps
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
Caps
);
...
@@ -164,7 +164,7 @@ HRESULT WINAPI IWineD3DPaletteImpl_GetCaps(IWineD3DPalette *iface, DWORD *Caps)
...
@@ -164,7 +164,7 @@ HRESULT WINAPI IWineD3DPaletteImpl_GetCaps(IWineD3DPalette *iface, DWORD *Caps)
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DPaletteImpl_GetParent
(
IWineD3DPalette
*
iface
,
IUnknown
**
Parent
)
{
static
HRESULT
WINAPI
IWineD3DPaletteImpl_GetParent
(
IWineD3DPalette
*
iface
,
IUnknown
**
Parent
)
{
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
IWineD3DPaletteImpl
*
This
=
(
IWineD3DPaletteImpl
*
)
iface
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
Parent
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
Parent
);
...
...
dlls/wined3d/pixelshader.c
View file @
e9cbc66e
...
@@ -44,7 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader);
...
@@ -44,7 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader);
/* *******************************************
/* *******************************************
IWineD3DPixelShader IUnknown parts follow
IWineD3DPixelShader IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DPixelShaderImpl_QueryInterface
(
IWineD3DPixelShader
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DPixelShaderImpl_QueryInterface
(
IWineD3DPixelShader
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -60,13 +60,13 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_QueryInterface(IWineD3DPixelShader *iface
...
@@ -60,13 +60,13 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_QueryInterface(IWineD3DPixelShader *iface
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DPixelShaderImpl_AddRef
(
IWineD3DPixelShader
*
iface
)
{
static
ULONG
WINAPI
IWineD3DPixelShaderImpl_AddRef
(
IWineD3DPixelShader
*
iface
)
{
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
}
ULONG
WINAPI
IWineD3DPixelShaderImpl_Release
(
IWineD3DPixelShader
*
iface
)
{
static
ULONG
WINAPI
IWineD3DPixelShaderImpl_Release
(
IWineD3DPixelShader
*
iface
)
{
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
...
@@ -93,7 +93,7 @@ ULONG WINAPI IWineD3DPixelShaderImpl_Release(IWineD3DPixelShader *iface) {
...
@@ -93,7 +93,7 @@ ULONG WINAPI IWineD3DPixelShaderImpl_Release(IWineD3DPixelShader *iface) {
IWineD3DPixelShader IWineD3DPixelShader parts follow
IWineD3DPixelShader IWineD3DPixelShader parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DPixelShaderImpl_GetParent
(
IWineD3DPixelShader
*
iface
,
IUnknown
**
parent
){
static
HRESULT
WINAPI
IWineD3DPixelShaderImpl_GetParent
(
IWineD3DPixelShader
*
iface
,
IUnknown
**
parent
){
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
*
parent
=
This
->
parent
;
*
parent
=
This
->
parent
;
...
@@ -102,7 +102,7 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_GetParent(IWineD3DPixelShader *iface, IUn
...
@@ -102,7 +102,7 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_GetParent(IWineD3DPixelShader *iface, IUn
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DPixelShaderImpl_GetDevice
(
IWineD3DPixelShader
*
iface
,
IWineD3DDevice
**
pDevice
){
static
HRESULT
WINAPI
IWineD3DPixelShaderImpl_GetDevice
(
IWineD3DPixelShader
*
iface
,
IWineD3DDevice
**
pDevice
){
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
IWineD3DDevice_AddRef
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
);
IWineD3DDevice_AddRef
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
);
*
pDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
*
pDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
...
@@ -111,7 +111,7 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_GetDevice(IWineD3DPixelShader* iface, IWi
...
@@ -111,7 +111,7 @@ HRESULT WINAPI IWineD3DPixelShaderImpl_GetDevice(IWineD3DPixelShader* iface, IWi
}
}
HRESULT
WINAPI
IWineD3DPixelShaderImpl_GetFunction
(
IWineD3DPixelShader
*
impl
,
VOID
*
pData
,
UINT
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IWineD3DPixelShaderImpl_GetFunction
(
IWineD3DPixelShader
*
impl
,
VOID
*
pData
,
UINT
*
pSizeOfData
)
{
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
impl
;
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
impl
;
TRACE
(
"(%p) : pData(%p), pSizeOfData(%p)
\n
"
,
This
,
pData
,
pSizeOfData
);
TRACE
(
"(%p) : pData(%p), pSizeOfData(%p)
\n
"
,
This
,
pData
,
pSizeOfData
);
...
@@ -1387,7 +1387,7 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateShader(
...
@@ -1387,7 +1387,7 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateShader(
#endif
#endif
}
}
HRESULT
WINAPI
IWineD3DPixelShaderImpl_SetFunction
(
IWineD3DPixelShader
*
iface
,
CONST
DWORD
*
pFunction
)
{
static
HRESULT
WINAPI
IWineD3DPixelShaderImpl_SetFunction
(
IWineD3DPixelShader
*
iface
,
CONST
DWORD
*
pFunction
)
{
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
const
DWORD
*
pToken
=
pFunction
;
const
DWORD
*
pToken
=
pFunction
;
const
SHADER_OPCODE
*
curOpcode
=
NULL
;
const
SHADER_OPCODE
*
curOpcode
=
NULL
;
...
...
dlls/wined3d/query.c
View file @
e9cbc66e
...
@@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
...
@@ -33,7 +33,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
/* *******************************************
/* *******************************************
IWineD3DQuery IUnknown parts follow
IWineD3DQuery IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DQueryImpl_QueryInterface
(
IWineD3DQuery
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DQueryImpl_QueryInterface
(
IWineD3DQuery
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -48,13 +48,13 @@ HRESULT WINAPI IWineD3DQueryImpl_QueryInterface(IWineD3DQuery *iface, REFIID rii
...
@@ -48,13 +48,13 @@ HRESULT WINAPI IWineD3DQueryImpl_QueryInterface(IWineD3DQuery *iface, REFIID rii
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DQueryImpl_AddRef
(
IWineD3DQuery
*
iface
)
{
static
ULONG
WINAPI
IWineD3DQueryImpl_AddRef
(
IWineD3DQuery
*
iface
)
{
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
}
ULONG
WINAPI
IWineD3DQueryImpl_Release
(
IWineD3DQuery
*
iface
)
{
static
ULONG
WINAPI
IWineD3DQueryImpl_Release
(
IWineD3DQuery
*
iface
)
{
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
...
@@ -69,7 +69,7 @@ ULONG WINAPI IWineD3DQueryImpl_Release(IWineD3DQuery *iface) {
...
@@ -69,7 +69,7 @@ ULONG WINAPI IWineD3DQueryImpl_Release(IWineD3DQuery *iface) {
/* *******************************************
/* *******************************************
IWineD3DQuery IWineD3DQuery parts follow
IWineD3DQuery IWineD3DQuery parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DQueryImpl_GetParent
(
IWineD3DQuery
*
iface
,
IUnknown
**
parent
){
static
HRESULT
WINAPI
IWineD3DQueryImpl_GetParent
(
IWineD3DQuery
*
iface
,
IUnknown
**
parent
){
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
*
parent
=
(
IUnknown
*
)
parent
;
*
parent
=
(
IUnknown
*
)
parent
;
...
@@ -78,7 +78,7 @@ HRESULT WINAPI IWineD3DQueryImpl_GetParent(IWineD3DQuery *iface, IUnknown** pare
...
@@ -78,7 +78,7 @@ HRESULT WINAPI IWineD3DQueryImpl_GetParent(IWineD3DQuery *iface, IUnknown** pare
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DQueryImpl_GetDevice
(
IWineD3DQuery
*
iface
,
IWineD3DDevice
**
pDevice
){
static
HRESULT
WINAPI
IWineD3DQueryImpl_GetDevice
(
IWineD3DQuery
*
iface
,
IWineD3DDevice
**
pDevice
){
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DDevice_AddRef
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
);
IWineD3DDevice_AddRef
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
);
*
pDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
*
pDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
...
@@ -87,7 +87,7 @@ HRESULT WINAPI IWineD3DQueryImpl_GetDevice(IWineD3DQuery* iface, IWineD3DDevice
...
@@ -87,7 +87,7 @@ HRESULT WINAPI IWineD3DQueryImpl_GetDevice(IWineD3DQuery* iface, IWineD3DDevice
}
}
HRESULT
WINAPI
IWineD3DQueryImpl_GetData
(
IWineD3DQuery
*
iface
,
void
*
pData
,
DWORD
dwSize
,
DWORD
dwGetDataFlags
){
static
HRESULT
WINAPI
IWineD3DQueryImpl_GetData
(
IWineD3DQuery
*
iface
,
void
*
pData
,
DWORD
dwSize
,
DWORD
dwGetDataFlags
){
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
if
(
dwSize
==
0
){
if
(
dwSize
==
0
){
/*you can use this method to poll the resource for the query status*/
/*you can use this method to poll the resource for the query status*/
...
@@ -244,7 +244,7 @@ HRESULT WINAPI IWineD3DQueryImpl_GetData(IWineD3DQuery* iface, void* pData, DWOR
...
@@ -244,7 +244,7 @@ HRESULT WINAPI IWineD3DQueryImpl_GetData(IWineD3DQuery* iface, void* pData, DWOR
}
}
DWORD
WINAPI
IWineD3DQueryImpl_GetDataSize
(
IWineD3DQuery
*
iface
){
static
DWORD
WINAPI
IWineD3DQueryImpl_GetDataSize
(
IWineD3DQuery
*
iface
){
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
int
dataSize
=
0
;
int
dataSize
=
0
;
FIXME
(
"(%p) : stub
\n
"
,
This
);
FIXME
(
"(%p) : stub
\n
"
,
This
);
...
@@ -304,13 +304,13 @@ DWORD WINAPI IWineD3DQueryImpl_GetDataSize(IWineD3DQuery* iface){
...
@@ -304,13 +304,13 @@ DWORD WINAPI IWineD3DQueryImpl_GetDataSize(IWineD3DQuery* iface){
}
}
WINED3DQUERYTYPE
WINAPI
IWineD3DQueryImpl_GetType
(
IWineD3DQuery
*
iface
){
static
WINED3DQUERYTYPE
WINAPI
IWineD3DQueryImpl_GetType
(
IWineD3DQuery
*
iface
){
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
return
This
->
type
;
return
This
->
type
;
}
}
HRESULT
WINAPI
IWineD3DQueryImpl_Issue
(
IWineD3DQuery
*
iface
,
DWORD
dwIssueFlags
){
static
HRESULT
WINAPI
IWineD3DQueryImpl_Issue
(
IWineD3DQuery
*
iface
,
DWORD
dwIssueFlags
){
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
IWineD3DQueryImpl
*
This
=
(
IWineD3DQueryImpl
*
)
iface
;
FIXME
(
"(%p) : stub
\n
"
,
This
);
FIXME
(
"(%p) : stub
\n
"
,
This
);
return
WINED3D_OK
;
/* can be WINED3DERR_INVALIDCALL. */
return
WINED3D_OK
;
/* can be WINED3DERR_INVALIDCALL. */
...
...
dlls/wined3d/stateblock.c
View file @
e9cbc66e
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
/**********************************************************
/**********************************************************
* IWineD3DStateBlockImpl IUnknown parts follows
* IWineD3DStateBlockImpl IUnknown parts follows
**********************************************************/
**********************************************************/
HRESULT
WINAPI
IWineD3DStateBlockImpl_QueryInterface
(
IWineD3DStateBlock
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DStateBlockImpl_QueryInterface
(
IWineD3DStateBlock
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -44,7 +44,7 @@ HRESULT WINAPI IWineD3DStateBlockImpl_QueryInterface(IWineD3DStateBlock *iface,R
...
@@ -44,7 +44,7 @@ HRESULT WINAPI IWineD3DStateBlockImpl_QueryInterface(IWineD3DStateBlock *iface,R
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DStateBlockImpl_AddRef
(
IWineD3DStateBlock
*
iface
)
{
static
ULONG
WINAPI
IWineD3DStateBlockImpl_AddRef
(
IWineD3DStateBlock
*
iface
)
{
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
...
@@ -52,7 +52,7 @@ ULONG WINAPI IWineD3DStateBlockImpl_AddRef(IWineD3DStateBlock *iface) {
...
@@ -52,7 +52,7 @@ ULONG WINAPI IWineD3DStateBlockImpl_AddRef(IWineD3DStateBlock *iface) {
return
refCount
;
return
refCount
;
}
}
ULONG
WINAPI
IWineD3DStateBlockImpl_Release
(
IWineD3DStateBlock
*
iface
)
{
static
ULONG
WINAPI
IWineD3DStateBlockImpl_Release
(
IWineD3DStateBlock
*
iface
)
{
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
@@ -108,14 +108,14 @@ ULONG WINAPI IWineD3DStateBlockImpl_Release(IWineD3DStateBlock *iface) {
...
@@ -108,14 +108,14 @@ ULONG WINAPI IWineD3DStateBlockImpl_Release(IWineD3DStateBlock *iface) {
/**********************************************************
/**********************************************************
* IWineD3DStateBlockImpl parts follows
* IWineD3DStateBlockImpl parts follows
**********************************************************/
**********************************************************/
HRESULT
WINAPI
IWineD3DStateBlockImpl_GetParent
(
IWineD3DStateBlock
*
iface
,
IUnknown
**
pParent
)
{
static
HRESULT
WINAPI
IWineD3DStateBlockImpl_GetParent
(
IWineD3DStateBlock
*
iface
,
IUnknown
**
pParent
)
{
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IUnknown_AddRef
(
This
->
parent
);
IUnknown_AddRef
(
This
->
parent
);
*
pParent
=
This
->
parent
;
*
pParent
=
This
->
parent
;
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DStateBlockImpl_GetDevice
(
IWineD3DStateBlock
*
iface
,
IWineD3DDevice
**
ppDevice
){
static
HRESULT
WINAPI
IWineD3DStateBlockImpl_GetDevice
(
IWineD3DStateBlock
*
iface
,
IWineD3DDevice
**
ppDevice
){
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
...
@@ -125,7 +125,7 @@ HRESULT WINAPI IWineD3DStateBlockImpl_GetDevice(IWineD3DStateBlock *iface, IWine
...
@@ -125,7 +125,7 @@ HRESULT WINAPI IWineD3DStateBlockImpl_GetDevice(IWineD3DStateBlock *iface, IWine
}
}
HRESULT
WINAPI
IWineD3DStateBlockImpl_Capture
(
IWineD3DStateBlock
*
iface
){
static
HRESULT
WINAPI
IWineD3DStateBlockImpl_Capture
(
IWineD3DStateBlock
*
iface
){
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
targetStateBlock
=
This
->
wineD3DDevice
->
stateBlock
;
IWineD3DStateBlockImpl
*
targetStateBlock
=
This
->
wineD3DDevice
->
stateBlock
;
...
@@ -412,7 +412,7 @@ HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface){
...
@@ -412,7 +412,7 @@ HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface){
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DStateBlockImpl_Apply
(
IWineD3DStateBlock
*
iface
){
static
HRESULT
WINAPI
IWineD3DStateBlockImpl_Apply
(
IWineD3DStateBlock
*
iface
){
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DDevice
*
pDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
IWineD3DDevice
*
pDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
...
@@ -606,7 +606,7 @@ should really perform a delta so that only the changes get updated*/
...
@@ -606,7 +606,7 @@ should really perform a delta so that only the changes get updated*/
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DStateBlockImpl_InitStartupStateBlock
(
IWineD3DStateBlock
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DStateBlockImpl_InitStartupStateBlock
(
IWineD3DStateBlock
*
iface
)
{
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DStateBlockImpl
*
This
=
(
IWineD3DStateBlockImpl
*
)
iface
;
IWineD3DDevice
*
device
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
IWineD3DDevice
*
device
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
IWineD3DDeviceImpl
*
ThisDevice
=
(
IWineD3DDeviceImpl
*
)
device
;
IWineD3DDeviceImpl
*
ThisDevice
=
(
IWineD3DDeviceImpl
*
)
device
;
...
...
dlls/wined3d/surface.c
View file @
e9cbc66e
...
@@ -282,7 +282,7 @@ const void *WINAPI IWineD3DSurfaceImpl_GetData(IWineD3DSurface *iface) {
...
@@ -282,7 +282,7 @@ const void *WINAPI IWineD3DSurfaceImpl_GetData(IWineD3DSurface *iface) {
return
(
CONST
void
*
)(
This
->
resource
.
allocatedMemory
);
return
(
CONST
void
*
)(
This
->
resource
.
allocatedMemory
);
}
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_LockRect
(
IWineD3DSurface
*
iface
,
WINED3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_LockRect
(
IWineD3DSurface
*
iface
,
WINED3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
IWineD3DSwapChainImpl
*
swapchain
=
NULL
;
IWineD3DSwapChainImpl
*
swapchain
=
NULL
;
...
@@ -690,7 +690,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED3DLOCKE
...
@@ -690,7 +690,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED3DLOCKE
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_UnlockRect
(
IWineD3DSurface
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_UnlockRect
(
IWineD3DSurface
*
iface
)
{
GLint
skipBytes
=
0
;
GLint
skipBytes
=
0
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
...
@@ -1408,7 +1408,7 @@ HRESULT d3dfmt_convert_surface(BYTE *src, BYTE *dst, unsigned long len, CONVERT_
...
@@ -1408,7 +1408,7 @@ HRESULT d3dfmt_convert_surface(BYTE *src, BYTE *dst, unsigned long len, CONVERT_
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_LoadTexture
(
IWineD3DSurface
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_LoadTexture
(
IWineD3DSurface
*
iface
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
if
(
This
->
Flags
&
SFLAG_INTEXTURE
)
{
if
(
This
->
Flags
&
SFLAG_INTEXTURE
)
{
...
@@ -1917,7 +1917,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SetPBufferState(IWineD3DSurface *iface, BOOL
...
@@ -1917,7 +1917,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SetPBufferState(IWineD3DSurface *iface, BOOL
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_Flip
(
IWineD3DSurface
*
iface
,
IWineD3DSurface
*
override
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_Flip
(
IWineD3DSurface
*
iface
,
IWineD3DSurface
*
override
,
DWORD
Flags
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DDevice
*
D3D
=
(
IWineD3DDevice
*
)
This
->
resource
.
wineD3DDevice
;
IWineD3DDevice
*
D3D
=
(
IWineD3DDevice
*
)
This
->
resource
.
wineD3DDevice
;
TRACE
(
"(%p)->(%p,%lx)
\n
"
,
This
,
override
,
Flags
);
TRACE
(
"(%p)->(%p,%lx)
\n
"
,
This
,
override
,
Flags
);
...
@@ -1938,7 +1938,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_Flip(IWineD3DSurface *iface, IWineD3DSurface
...
@@ -1938,7 +1938,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_Flip(IWineD3DSurface *iface, IWineD3DSurface
}
}
/* Not called from the VTable */
/* Not called from the VTable */
HRESULT
WINAPI
IWineD3DSurfaceImpl_BltOverride
(
IWineD3DSurfaceImpl
*
This
,
RECT
*
DestRect
,
IWineD3DSurface
*
SrcSurface
,
RECT
*
SrcRect
,
DWORD
Flags
,
DDBLTFX
*
DDBltFx
)
{
static
HRESULT
IWineD3DSurfaceImpl_BltOverride
(
IWineD3DSurfaceImpl
*
This
,
RECT
*
DestRect
,
IWineD3DSurface
*
SrcSurface
,
RECT
*
SrcRect
,
DWORD
Flags
,
DDBLTFX
*
DDBltFx
)
{
D3DRECT
rect
;
D3DRECT
rect
;
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
IWineD3DSwapChainImpl
*
swapchain
=
NULL
;
IWineD3DSwapChainImpl
*
swapchain
=
NULL
;
...
@@ -2419,7 +2419,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
...
@@ -2419,7 +2419,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
return
WINED3DERR_INVALIDCALL
;
return
WINED3DERR_INVALIDCALL
;
}
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_Blt
(
IWineD3DSurface
*
iface
,
RECT
*
DestRect
,
IWineD3DSurface
*
SrcSurface
,
RECT
*
SrcRect
,
DWORD
Flags
,
DDBLTFX
*
DDBltFx
)
{
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_Blt
(
IWineD3DSurface
*
iface
,
RECT
*
DestRect
,
IWineD3DSurface
*
SrcSurface
,
RECT
*
SrcRect
,
DWORD
Flags
,
DDBLTFX
*
DDBltFx
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
Src
=
(
IWineD3DSurfaceImpl
*
)
SrcSurface
;
IWineD3DSurfaceImpl
*
Src
=
(
IWineD3DSurfaceImpl
*
)
SrcSurface
;
TRACE
(
"(%p)->(%p,%p,%p,%lx,%p)
\n
"
,
This
,
DestRect
,
SrcSurface
,
SrcRect
,
Flags
,
DDBltFx
);
TRACE
(
"(%p)->(%p,%p,%p,%lx,%p)
\n
"
,
This
,
DestRect
,
SrcSurface
,
SrcRect
,
Flags
,
DDBltFx
);
...
@@ -2684,7 +2684,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SetColorKey(IWineD3DSurface *iface, DWORD Fla
...
@@ -2684,7 +2684,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SetColorKey(IWineD3DSurface *iface, DWORD Fla
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_PrivateSetup
(
IWineD3DSurface
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_PrivateSetup
(
IWineD3DSurface
*
iface
)
{
/** Check against the maximum texture sizes supported by the video card **/
/** Check against the maximum texture sizes supported by the video card **/
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
...
...
dlls/wined3d/surface_gdi.c
View file @
e9cbc66e
...
@@ -127,7 +127,7 @@ x11_copy_to_screen(IWineD3DSurfaceImpl *This,
...
@@ -127,7 +127,7 @@ x11_copy_to_screen(IWineD3DSurfaceImpl *This,
* wrong in the parent library. Write an informative warning
* wrong in the parent library. Write an informative warning
*
*
*****************************************************************************/
*****************************************************************************/
void
WINAPI
static
void
WINAPI
IWineGDISurfaceImpl_PreLoad
(
IWineD3DSurface
*
iface
)
IWineGDISurfaceImpl_PreLoad
(
IWineD3DSurface
*
iface
)
{
{
ERR
(
"(%p): PreLoad is not supported on X11 surfaces!
\n
"
,
iface
);
ERR
(
"(%p): PreLoad is not supported on X11 surfaces!
\n
"
,
iface
);
...
@@ -150,7 +150,7 @@ IWineGDISurfaceImpl_PreLoad(IWineD3DSurface *iface)
...
@@ -150,7 +150,7 @@ IWineGDISurfaceImpl_PreLoad(IWineD3DSurface *iface)
* WINED3DERR_INVALIDCALL on errors
* WINED3DERR_INVALIDCALL on errors
*
*
*****************************************************************************/
*****************************************************************************/
HRESULT
WINAPI
static
HRESULT
WINAPI
IWineGDISurfaceImpl_LockRect
(
IWineD3DSurface
*
iface
,
IWineGDISurfaceImpl_LockRect
(
IWineD3DSurface
*
iface
,
WINED3DLOCKED_RECT
*
pLockedRect
,
WINED3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
CONST
RECT
*
pRect
,
...
@@ -233,7 +233,7 @@ IWineGDISurfaceImpl_LockRect(IWineD3DSurface *iface,
...
@@ -233,7 +233,7 @@ IWineGDISurfaceImpl_LockRect(IWineD3DSurface *iface,
* WINED3DERR_INVALIDCALL on failure
* WINED3DERR_INVALIDCALL on failure
*
*
*****************************************************************************/
*****************************************************************************/
HRESULT
WINAPI
static
HRESULT
WINAPI
IWineGDISurfaceImpl_UnlockRect
(
IWineD3DSurface
*
iface
)
IWineGDISurfaceImpl_UnlockRect
(
IWineD3DSurface
*
iface
)
{
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
...
@@ -291,7 +291,7 @@ IWineGDISurfaceImpl_UnlockRect(IWineD3DSurface *iface)
...
@@ -291,7 +291,7 @@ IWineGDISurfaceImpl_UnlockRect(IWineD3DSurface *iface)
* WINED3D_OK on success
* WINED3D_OK on success
*
*
*****************************************************************************/
*****************************************************************************/
HRESULT
WINAPI
static
HRESULT
WINAPI
IWineGDISurfaceImpl_Flip
(
IWineD3DSurface
*
iface
,
IWineGDISurfaceImpl_Flip
(
IWineD3DSurface
*
iface
,
IWineD3DSurface
*
override
,
IWineD3DSurface
*
override
,
DWORD
Flags
)
DWORD
Flags
)
...
...
dlls/wined3d/swapchain.c
View file @
e9cbc66e
...
@@ -55,14 +55,14 @@ WINE_DECLARE_DEBUG_CHANNEL(d3d_fps);
...
@@ -55,14 +55,14 @@ WINE_DECLARE_DEBUG_CHANNEL(d3d_fps);
/* IDirect3DSwapChain IUnknown parts follow: */
/* IDirect3DSwapChain IUnknown parts follow: */
ULONG
WINAPI
IWineD3DSwapChainImpl_AddRef
(
IWineD3DSwapChain
*
iface
)
{
static
ULONG
WINAPI
IWineD3DSwapChainImpl_AddRef
(
IWineD3DSwapChain
*
iface
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
DWORD
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
DWORD
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
refCount
-
1
);
return
refCount
;
return
refCount
;
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_QueryInterface
(
IWineD3DSwapChain
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_QueryInterface
(
IWineD3DSwapChain
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -82,7 +82,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_QueryInterface(IWineD3DSwapChain *iface, RE
...
@@ -82,7 +82,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_QueryInterface(IWineD3DSwapChain *iface, RE
}
}
ULONG
WINAPI
IWineD3DSwapChainImpl_Release
(
IWineD3DSwapChain
*
iface
)
{
static
ULONG
WINAPI
IWineD3DSwapChainImpl_Release
(
IWineD3DSwapChain
*
iface
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
DWORD
refCount
;
DWORD
refCount
;
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
...
@@ -124,7 +124,7 @@ ULONG WINAPI IWineD3DSwapChainImpl_Release(IWineD3DSwapChain *iface) {
...
@@ -124,7 +124,7 @@ ULONG WINAPI IWineD3DSwapChainImpl_Release(IWineD3DSwapChain *iface) {
return
refCount
;
return
refCount
;
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetParent
(
IWineD3DSwapChain
*
iface
,
IUnknown
**
ppParent
){
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetParent
(
IWineD3DSwapChain
*
iface
,
IUnknown
**
ppParent
){
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
*
ppParent
=
This
->
parent
;
*
ppParent
=
This
->
parent
;
IUnknown_AddRef
(
*
ppParent
);
IUnknown_AddRef
(
*
ppParent
);
...
@@ -133,7 +133,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetParent(IWineD3DSwapChain *iface, IUnknow
...
@@ -133,7 +133,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetParent(IWineD3DSwapChain *iface, IUnknow
}
}
/*IWineD3DSwapChain parts follow: */
/*IWineD3DSwapChain parts follow: */
HRESULT
WINAPI
IWineD3DSwapChainImpl_Present
(
IWineD3DSwapChain
*
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
{
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_Present
(
IWineD3DSwapChain
*
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
ENTER_GL
();
ENTER_GL
();
...
@@ -336,7 +336,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CONST REC
...
@@ -336,7 +336,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CONST REC
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetFrontBufferData
(
IWineD3DSwapChain
*
iface
,
IWineD3DSurface
*
pDestSurface
)
{
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetFrontBufferData
(
IWineD3DSwapChain
*
iface
,
IWineD3DSurface
*
pDestSurface
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
WINED3DFORMAT
d3dformat
;
WINED3DFORMAT
d3dformat
;
UINT
width
;
UINT
width
;
...
@@ -369,7 +369,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetFrontBufferData(IWineD3DSwapChain *iface
...
@@ -369,7 +369,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetFrontBufferData(IWineD3DSwapChain *iface
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetBackBuffer
(
IWineD3DSwapChain
*
iface
,
UINT
iBackBuffer
,
WINED3DBACKBUFFER_TYPE
Type
,
IWineD3DSurface
**
ppBackBuffer
)
{
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetBackBuffer
(
IWineD3DSwapChain
*
iface
,
UINT
iBackBuffer
,
WINED3DBACKBUFFER_TYPE
Type
,
IWineD3DSurface
**
ppBackBuffer
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
...
@@ -391,7 +391,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetBackBuffer(IWineD3DSwapChain *iface, UIN
...
@@ -391,7 +391,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetBackBuffer(IWineD3DSwapChain *iface, UIN
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetRasterStatus
(
IWineD3DSwapChain
*
iface
,
WINED3DRASTER_STATUS
*
pRasterStatus
)
{
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetRasterStatus
(
IWineD3DSwapChain
*
iface
,
WINED3DRASTER_STATUS
*
pRasterStatus
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
static
BOOL
showFixmes
=
TRUE
;
static
BOOL
showFixmes
=
TRUE
;
pRasterStatus
->
InVBlank
=
TRUE
;
pRasterStatus
->
InVBlank
=
TRUE
;
...
@@ -404,7 +404,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetRasterStatus(IWineD3DSwapChain *iface, W
...
@@ -404,7 +404,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetRasterStatus(IWineD3DSwapChain *iface, W
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetDisplayMode
(
IWineD3DSwapChain
*
iface
,
WINED3DDISPLAYMODE
*
pMode
)
{
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetDisplayMode
(
IWineD3DSwapChain
*
iface
,
WINED3DDISPLAYMODE
*
pMode
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
HDC
hdc
;
HDC
hdc
;
int
bpp
=
0
;
int
bpp
=
0
;
...
@@ -432,7 +432,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetDisplayMode(IWineD3DSwapChain *iface, WI
...
@@ -432,7 +432,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetDisplayMode(IWineD3DSwapChain *iface, WI
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetDevice
(
IWineD3DSwapChain
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetDevice
(
IWineD3DSwapChain
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
*
ppDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
*
ppDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
...
@@ -444,7 +444,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetDevice(IWineD3DSwapChain *iface, IWineD3
...
@@ -444,7 +444,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetDevice(IWineD3DSwapChain *iface, IWineD3
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetPresentParameters
(
IWineD3DSwapChain
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
)
{
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetPresentParameters
(
IWineD3DSwapChain
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
*
pPresentationParameters
->
BackBufferWidth
=
This
->
presentParms
.
BackBufferWidth
;
*
pPresentationParameters
->
BackBufferWidth
=
This
->
presentParms
.
BackBufferWidth
;
...
@@ -463,7 +463,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetPresentParameters(IWineD3DSwapChain *ifa
...
@@ -463,7 +463,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_GetPresentParameters(IWineD3DSwapChain *ifa
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_SetGammaRamp
(
IWineD3DSwapChain
*
iface
,
DWORD
Flags
,
CONST
WINED3DGAMMARAMP
*
pRamp
){
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_SetGammaRamp
(
IWineD3DSwapChain
*
iface
,
DWORD
Flags
,
CONST
WINED3DGAMMARAMP
*
pRamp
){
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
HDC
hDC
;
HDC
hDC
;
...
@@ -475,7 +475,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_SetGammaRamp(IWineD3DSwapChain *iface, DWOR
...
@@ -475,7 +475,7 @@ HRESULT WINAPI IWineD3DSwapChainImpl_SetGammaRamp(IWineD3DSwapChain *iface, DWOR
}
}
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetGammaRamp
(
IWineD3DSwapChain
*
iface
,
WINED3DGAMMARAMP
*
pRamp
){
static
HRESULT
WINAPI
IWineD3DSwapChainImpl_GetGammaRamp
(
IWineD3DSwapChain
*
iface
,
WINED3DGAMMARAMP
*
pRamp
){
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
HDC
hDC
;
HDC
hDC
;
...
...
dlls/wined3d/texture.c
View file @
e9cbc66e
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_texture);
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_texture);
/* *******************************************
/* *******************************************
IWineD3DTexture IUnknown parts follow
IWineD3DTexture IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DTextureImpl_QueryInterface
(
IWineD3DTexture
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DTextureImpl_QueryInterface
(
IWineD3DTexture
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -46,13 +46,13 @@ HRESULT WINAPI IWineD3DTextureImpl_QueryInterface(IWineD3DTexture *iface, REFIID
...
@@ -46,13 +46,13 @@ HRESULT WINAPI IWineD3DTextureImpl_QueryInterface(IWineD3DTexture *iface, REFIID
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DTextureImpl_AddRef
(
IWineD3DTexture
*
iface
)
{
static
ULONG
WINAPI
IWineD3DTextureImpl_AddRef
(
IWineD3DTexture
*
iface
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
}
}
ULONG
WINAPI
IWineD3DTextureImpl_Release
(
IWineD3DTexture
*
iface
)
{
static
ULONG
WINAPI
IWineD3DTextureImpl_Release
(
IWineD3DTexture
*
iface
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
...
@@ -86,31 +86,31 @@ ULONG WINAPI IWineD3DTextureImpl_Release(IWineD3DTexture *iface) {
...
@@ -86,31 +86,31 @@ ULONG WINAPI IWineD3DTextureImpl_Release(IWineD3DTexture *iface) {
/* ****************************************************
/* ****************************************************
IWineD3DTexture IWineD3DResource parts follow
IWineD3DTexture IWineD3DResource parts follow
**************************************************** */
**************************************************** */
HRESULT
WINAPI
IWineD3DTextureImpl_GetDevice
(
IWineD3DTexture
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_GetDevice
(
IWineD3DTexture
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_SetPrivateData
(
IWineD3DTexture
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_SetPrivateData
(
IWineD3DTexture
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_GetPrivateData
(
IWineD3DTexture
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_GetPrivateData
(
IWineD3DTexture
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_FreePrivateData
(
IWineD3DTexture
*
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_FreePrivateData
(
IWineD3DTexture
*
iface
,
REFGUID
refguid
)
{
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
}
}
DWORD
WINAPI
IWineD3DTextureImpl_SetPriority
(
IWineD3DTexture
*
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IWineD3DTextureImpl_SetPriority
(
IWineD3DTexture
*
iface
,
DWORD
PriorityNew
)
{
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
}
DWORD
WINAPI
IWineD3DTextureImpl_GetPriority
(
IWineD3DTexture
*
iface
)
{
static
DWORD
WINAPI
IWineD3DTextureImpl_GetPriority
(
IWineD3DTexture
*
iface
)
{
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
}
}
void
WINAPI
IWineD3DTextureImpl_PreLoad
(
IWineD3DTexture
*
iface
)
{
static
void
WINAPI
IWineD3DTextureImpl_PreLoad
(
IWineD3DTexture
*
iface
)
{
/* Override the IWineD3DResource PreLoad method */
/* Override the IWineD3DResource PreLoad method */
unsigned
int
i
;
unsigned
int
i
;
...
@@ -142,70 +142,70 @@ void WINAPI IWineD3DTextureImpl_PreLoad(IWineD3DTexture *iface) {
...
@@ -142,70 +142,70 @@ void WINAPI IWineD3DTextureImpl_PreLoad(IWineD3DTexture *iface) {
return
;
return
;
}
}
WINED3DRESOURCETYPE
WINAPI
IWineD3DTextureImpl_GetType
(
IWineD3DTexture
*
iface
)
{
static
WINED3DRESOURCETYPE
WINAPI
IWineD3DTextureImpl_GetType
(
IWineD3DTexture
*
iface
)
{
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_GetParent
(
IWineD3DTexture
*
iface
,
IUnknown
**
pParent
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_GetParent
(
IWineD3DTexture
*
iface
,
IUnknown
**
pParent
)
{
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
}
}
/* ******************************************************
/* ******************************************************
IWineD3DTexture IWineD3DBaseTexture parts follow
IWineD3DTexture IWineD3DBaseTexture parts follow
****************************************************** */
****************************************************** */
DWORD
WINAPI
IWineD3DTextureImpl_SetLOD
(
IWineD3DTexture
*
iface
,
DWORD
LODNew
)
{
static
DWORD
WINAPI
IWineD3DTextureImpl_SetLOD
(
IWineD3DTexture
*
iface
,
DWORD
LODNew
)
{
return
IWineD3DBaseTextureImpl_SetLOD
((
IWineD3DBaseTexture
*
)
iface
,
LODNew
);
return
IWineD3DBaseTextureImpl_SetLOD
((
IWineD3DBaseTexture
*
)
iface
,
LODNew
);
}
}
DWORD
WINAPI
IWineD3DTextureImpl_GetLOD
(
IWineD3DTexture
*
iface
)
{
static
DWORD
WINAPI
IWineD3DTextureImpl_GetLOD
(
IWineD3DTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetLOD
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetLOD
((
IWineD3DBaseTexture
*
)
iface
);
}
}
DWORD
WINAPI
IWineD3DTextureImpl_GetLevelCount
(
IWineD3DTexture
*
iface
)
{
static
DWORD
WINAPI
IWineD3DTextureImpl_GetLevelCount
(
IWineD3DTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetLevelCount
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetLevelCount
((
IWineD3DBaseTexture
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_SetAutoGenFilterType
(
IWineD3DTexture
*
iface
,
WINED3DTEXTUREFILTERTYPE
FilterType
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_SetAutoGenFilterType
(
IWineD3DTexture
*
iface
,
WINED3DTEXTUREFILTERTYPE
FilterType
)
{
return
IWineD3DBaseTextureImpl_SetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
,
FilterType
);
return
IWineD3DBaseTextureImpl_SetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
,
FilterType
);
}
}
WINED3DTEXTUREFILTERTYPE
WINAPI
IWineD3DTextureImpl_GetAutoGenFilterType
(
IWineD3DTexture
*
iface
)
{
static
WINED3DTEXTUREFILTERTYPE
WINAPI
IWineD3DTextureImpl_GetAutoGenFilterType
(
IWineD3DTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
);
}
}
void
WINAPI
IWineD3DTextureImpl_GenerateMipSubLevels
(
IWineD3DTexture
*
iface
)
{
static
void
WINAPI
IWineD3DTextureImpl_GenerateMipSubLevels
(
IWineD3DTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GenerateMipSubLevels
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GenerateMipSubLevels
((
IWineD3DBaseTexture
*
)
iface
);
}
}
/* Internal function, No d3d mapping */
/* Internal function, No d3d mapping */
BOOL
WINAPI
IWineD3DTextureImpl_SetDirty
(
IWineD3DTexture
*
iface
,
BOOL
dirty
)
{
static
BOOL
WINAPI
IWineD3DTextureImpl_SetDirty
(
IWineD3DTexture
*
iface
,
BOOL
dirty
)
{
return
IWineD3DBaseTextureImpl_SetDirty
((
IWineD3DBaseTexture
*
)
iface
,
dirty
);
return
IWineD3DBaseTextureImpl_SetDirty
((
IWineD3DBaseTexture
*
)
iface
,
dirty
);
}
}
BOOL
WINAPI
IWineD3DTextureImpl_GetDirty
(
IWineD3DTexture
*
iface
)
{
static
BOOL
WINAPI
IWineD3DTextureImpl_GetDirty
(
IWineD3DTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetDirty
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetDirty
((
IWineD3DBaseTexture
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_BindTexture
(
IWineD3DTexture
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_BindTexture
(
IWineD3DTexture
*
iface
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
return
IWineD3DBaseTextureImpl_BindTexture
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_BindTexture
((
IWineD3DBaseTexture
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_UnBindTexture
(
IWineD3DTexture
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_UnBindTexture
(
IWineD3DTexture
*
iface
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
return
IWineD3DBaseTextureImpl_UnBindTexture
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_UnBindTexture
((
IWineD3DBaseTexture
*
)
iface
);
}
}
UINT
WINAPI
IWineD3DTextureImpl_GetTextureDimensions
(
IWineD3DTexture
*
iface
)
{
static
UINT
WINAPI
IWineD3DTextureImpl_GetTextureDimensions
(
IWineD3DTexture
*
iface
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
return
GL_TEXTURE_2D
;
return
GL_TEXTURE_2D
;
}
}
void
WINAPI
IWineD3DTextureImpl_ApplyStateChanges
(
IWineD3DTexture
*
iface
,
static
void
WINAPI
IWineD3DTextureImpl_ApplyStateChanges
(
IWineD3DTexture
*
iface
,
const
DWORD
textureStates
[
WINED3D_HIGHEST_TEXTURE_STATE
+
1
],
const
DWORD
textureStates
[
WINED3D_HIGHEST_TEXTURE_STATE
+
1
],
const
DWORD
samplerStates
[
WINED3D_HIGHEST_SAMPLER_STATE
+
1
])
{
const
DWORD
samplerStates
[
WINED3D_HIGHEST_SAMPLER_STATE
+
1
])
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
...
@@ -246,7 +246,7 @@ void WINAPI IWineD3DTextureImpl_ApplyStateChanges(IWineD3DTexture *iface,
...
@@ -246,7 +246,7 @@ void WINAPI IWineD3DTextureImpl_ApplyStateChanges(IWineD3DTexture *iface,
/* *******************************************
/* *******************************************
IWineD3DTexture IWineD3DTexture parts follow
IWineD3DTexture IWineD3DTexture parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DTextureImpl_GetLevelDesc
(
IWineD3DTexture
*
iface
,
UINT
Level
,
WINED3DSURFACE_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_GetLevelDesc
(
IWineD3DTexture
*
iface
,
UINT
Level
,
WINED3DSURFACE_DESC
*
pDesc
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
if
(
Level
<
This
->
baseTexture
.
levels
)
{
if
(
Level
<
This
->
baseTexture
.
levels
)
{
...
@@ -257,7 +257,7 @@ HRESULT WINAPI IWineD3DTextureImpl_GetLevelDesc(IWineD3DTexture *iface, UINT Lev
...
@@ -257,7 +257,7 @@ HRESULT WINAPI IWineD3DTextureImpl_GetLevelDesc(IWineD3DTexture *iface, UINT Lev
return
WINED3DERR_INVALIDCALL
;
return
WINED3DERR_INVALIDCALL
;
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_GetSurfaceLevel
(
IWineD3DTexture
*
iface
,
UINT
Level
,
IWineD3DSurface
**
ppSurfaceLevel
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_GetSurfaceLevel
(
IWineD3DTexture
*
iface
,
UINT
Level
,
IWineD3DSurface
**
ppSurfaceLevel
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
...
@@ -274,7 +274,7 @@ HRESULT WINAPI IWineD3DTextureImpl_GetSurfaceLevel(IWineD3DTexture *iface, UINT
...
@@ -274,7 +274,7 @@ HRESULT WINAPI IWineD3DTextureImpl_GetSurfaceLevel(IWineD3DTexture *iface, UINT
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_LockRect
(
IWineD3DTexture
*
iface
,
UINT
Level
,
WINED3DLOCKED_RECT
*
pLockedRect
,
static
HRESULT
WINAPI
IWineD3DTextureImpl_LockRect
(
IWineD3DTexture
*
iface
,
UINT
Level
,
WINED3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
...
@@ -291,7 +291,7 @@ HRESULT WINAPI IWineD3DTextureImpl_LockRect(IWineD3DTexture *iface, UINT Level,
...
@@ -291,7 +291,7 @@ HRESULT WINAPI IWineD3DTextureImpl_LockRect(IWineD3DTexture *iface, UINT Level,
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_UnlockRect
(
IWineD3DTexture
*
iface
,
UINT
Level
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_UnlockRect
(
IWineD3DTexture
*
iface
,
UINT
Level
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
...
@@ -306,7 +306,7 @@ HRESULT WINAPI IWineD3DTextureImpl_UnlockRect(IWineD3DTexture *iface, UINT Level
...
@@ -306,7 +306,7 @@ HRESULT WINAPI IWineD3DTextureImpl_UnlockRect(IWineD3DTexture *iface, UINT Level
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DTextureImpl_AddDirtyRect
(
IWineD3DTexture
*
iface
,
CONST
RECT
*
pDirtyRect
)
{
static
HRESULT
WINAPI
IWineD3DTextureImpl_AddDirtyRect
(
IWineD3DTexture
*
iface
,
CONST
RECT
*
pDirtyRect
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
This
->
baseTexture
.
dirty
=
TRUE
;
This
->
baseTexture
.
dirty
=
TRUE
;
TRACE
(
"(%p) : dirtyfication of surface Level (0)
\n
"
,
This
);
TRACE
(
"(%p) : dirtyfication of surface Level (0)
\n
"
,
This
);
...
...
dlls/wined3d/vertexbuffer.c
View file @
e9cbc66e
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
/* *******************************************
/* *******************************************
IWineD3DVertexBuffer IUnknown parts follow
IWineD3DVertexBuffer IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DVertexBufferImpl_QueryInterface
(
IWineD3DVertexBuffer
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DVertexBufferImpl_QueryInterface
(
IWineD3DVertexBuffer
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -45,14 +45,14 @@ HRESULT WINAPI IWineD3DVertexBufferImpl_QueryInterface(IWineD3DVertexBuffer *ifa
...
@@ -45,14 +45,14 @@ HRESULT WINAPI IWineD3DVertexBufferImpl_QueryInterface(IWineD3DVertexBuffer *ifa
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DVertexBufferImpl_AddRef
(
IWineD3DVertexBuffer
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVertexBufferImpl_AddRef
(
IWineD3DVertexBuffer
*
iface
)
{
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
ref
-
1
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
ref
-
1
);
return
ref
;
return
ref
;
}
}
ULONG
WINAPI
IWineD3DVertexBufferImpl_Release
(
IWineD3DVertexBuffer
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVertexBufferImpl_Release
(
IWineD3DVertexBuffer
*
iface
)
{
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
ref
+
1
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
ref
+
1
);
...
@@ -66,58 +66,58 @@ ULONG WINAPI IWineD3DVertexBufferImpl_Release(IWineD3DVertexBuffer *iface) {
...
@@ -66,58 +66,58 @@ ULONG WINAPI IWineD3DVertexBufferImpl_Release(IWineD3DVertexBuffer *iface) {
/* ****************************************************
/* ****************************************************
IWineD3DVertexBuffer IWineD3DResource parts follow
IWineD3DVertexBuffer IWineD3DResource parts follow
**************************************************** */
**************************************************** */
HRESULT
WINAPI
IWineD3DVertexBufferImpl_GetDevice
(
IWineD3DVertexBuffer
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
static
HRESULT
WINAPI
IWineD3DVertexBufferImpl_GetDevice
(
IWineD3DVertexBuffer
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
}
}
HRESULT
WINAPI
IWineD3DVertexBufferImpl_SetPrivateData
(
IWineD3DVertexBuffer
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DVertexBufferImpl_SetPrivateData
(
IWineD3DVertexBuffer
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
}
HRESULT
WINAPI
IWineD3DVertexBufferImpl_GetPrivateData
(
IWineD3DVertexBuffer
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IWineD3DVertexBufferImpl_GetPrivateData
(
IWineD3DVertexBuffer
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
}
HRESULT
WINAPI
IWineD3DVertexBufferImpl_FreePrivateData
(
IWineD3DVertexBuffer
*
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IWineD3DVertexBufferImpl_FreePrivateData
(
IWineD3DVertexBuffer
*
iface
,
REFGUID
refguid
)
{
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
}
}
DWORD
WINAPI
IWineD3DVertexBufferImpl_SetPriority
(
IWineD3DVertexBuffer
*
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IWineD3DVertexBufferImpl_SetPriority
(
IWineD3DVertexBuffer
*
iface
,
DWORD
PriorityNew
)
{
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
}
DWORD
WINAPI
IWineD3DVertexBufferImpl_GetPriority
(
IWineD3DVertexBuffer
*
iface
)
{
static
DWORD
WINAPI
IWineD3DVertexBufferImpl_GetPriority
(
IWineD3DVertexBuffer
*
iface
)
{
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
}
}
void
WINAPI
IWineD3DVertexBufferImpl_PreLoad
(
IWineD3DVertexBuffer
*
iface
)
{
static
void
WINAPI
IWineD3DVertexBufferImpl_PreLoad
(
IWineD3DVertexBuffer
*
iface
)
{
return
IWineD3DResourceImpl_PreLoad
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_PreLoad
((
IWineD3DResource
*
)
iface
);
}
}
WINED3DRESOURCETYPE
WINAPI
IWineD3DVertexBufferImpl_GetType
(
IWineD3DVertexBuffer
*
iface
)
{
static
WINED3DRESOURCETYPE
WINAPI
IWineD3DVertexBufferImpl_GetType
(
IWineD3DVertexBuffer
*
iface
)
{
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DVertexBufferImpl_GetParent
(
IWineD3DVertexBuffer
*
iface
,
IUnknown
**
pParent
)
{
static
HRESULT
WINAPI
IWineD3DVertexBufferImpl_GetParent
(
IWineD3DVertexBuffer
*
iface
,
IUnknown
**
pParent
)
{
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
}
}
/* ******************************************************
/* ******************************************************
IWineD3DVertexBuffer IWineD3DVertexBuffer parts follow
IWineD3DVertexBuffer IWineD3DVertexBuffer parts follow
****************************************************** */
****************************************************** */
HRESULT
WINAPI
IWineD3DVertexBufferImpl_Lock
(
IWineD3DVertexBuffer
*
iface
,
UINT
OffsetToLock
,
UINT
SizeToLock
,
BYTE
**
ppbData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DVertexBufferImpl_Lock
(
IWineD3DVertexBuffer
*
iface
,
UINT
OffsetToLock
,
UINT
SizeToLock
,
BYTE
**
ppbData
,
DWORD
Flags
)
{
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
TRACE
(
"(%p) : returning memory of %p (base:%p,offset:%u)
\n
"
,
This
,
This
->
resource
.
allocatedMemory
+
OffsetToLock
,
This
->
resource
.
allocatedMemory
,
OffsetToLock
);
TRACE
(
"(%p) : returning memory of %p (base:%p,offset:%u)
\n
"
,
This
,
This
->
resource
.
allocatedMemory
+
OffsetToLock
,
This
->
resource
.
allocatedMemory
,
OffsetToLock
);
/* TODO: check Flags compatibility with This->currentDesc.Usage (see MSDN) */
/* TODO: check Flags compatibility with This->currentDesc.Usage (see MSDN) */
*
ppbData
=
This
->
resource
.
allocatedMemory
+
OffsetToLock
;
*
ppbData
=
This
->
resource
.
allocatedMemory
+
OffsetToLock
;
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVertexBufferImpl_Unlock
(
IWineD3DVertexBuffer
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DVertexBufferImpl_Unlock
(
IWineD3DVertexBuffer
*
iface
)
{
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
TRACE
(
"(%p) : stub
\n
"
,
This
);
TRACE
(
"(%p) : stub
\n
"
,
This
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVertexBufferImpl_GetDesc
(
IWineD3DVertexBuffer
*
iface
,
WINED3DVERTEXBUFFER_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IWineD3DVertexBufferImpl_GetDesc
(
IWineD3DVertexBuffer
*
iface
,
WINED3DVERTEXBUFFER_DESC
*
pDesc
)
{
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
IWineD3DVertexBufferImpl
*
This
=
(
IWineD3DVertexBufferImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
...
...
dlls/wined3d/vertexdeclaration.c
View file @
e9cbc66e
...
@@ -394,7 +394,7 @@ static HRESULT IWineD3DVertexDeclarationImpl_ParseDeclaration9(IWineD3DVertexDec
...
@@ -394,7 +394,7 @@ static HRESULT IWineD3DVertexDeclarationImpl_ParseDeclaration9(IWineD3DVertexDec
/* *******************************************
/* *******************************************
IWineD3DVertexDeclaration IUnknown parts follow
IWineD3DVertexDeclaration IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_QueryInterface
(
IWineD3DVertexDeclaration
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_QueryInterface
(
IWineD3DVertexDeclaration
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -409,13 +409,13 @@ HRESULT WINAPI IWineD3DVertexDeclarationImpl_QueryInterface(IWineD3DVertexDeclar
...
@@ -409,13 +409,13 @@ HRESULT WINAPI IWineD3DVertexDeclarationImpl_QueryInterface(IWineD3DVertexDeclar
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DVertexDeclarationImpl_AddRef
(
IWineD3DVertexDeclaration
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVertexDeclarationImpl_AddRef
(
IWineD3DVertexDeclaration
*
iface
)
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
}
ULONG
WINAPI
IWineD3DVertexDeclarationImpl_Release
(
IWineD3DVertexDeclaration
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVertexDeclarationImpl_Release
(
IWineD3DVertexDeclaration
*
iface
)
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
...
@@ -434,7 +434,7 @@ ULONG WINAPI IWineD3DVertexDeclarationImpl_Release(IWineD3DVertexDeclaration *if
...
@@ -434,7 +434,7 @@ ULONG WINAPI IWineD3DVertexDeclarationImpl_Release(IWineD3DVertexDeclaration *if
IWineD3DVertexDeclaration parts follow
IWineD3DVertexDeclaration parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_GetParent
(
IWineD3DVertexDeclaration
*
iface
,
IUnknown
**
parent
){
static
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_GetParent
(
IWineD3DVertexDeclaration
*
iface
,
IUnknown
**
parent
){
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
*
parent
=
This
->
parent
;
*
parent
=
This
->
parent
;
...
@@ -443,7 +443,7 @@ HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetParent(IWineD3DVertexDeclaration
...
@@ -443,7 +443,7 @@ HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetParent(IWineD3DVertexDeclaration
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_GetDevice
(
IWineD3DVertexDeclaration
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
static
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_GetDevice
(
IWineD3DVertexDeclaration
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
TRACE
(
"(%p) : returning %p
\n
"
,
This
,
This
->
wineD3DDevice
);
TRACE
(
"(%p) : returning %p
\n
"
,
This
,
This
->
wineD3DDevice
);
...
@@ -479,7 +479,7 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDeclaration8(IWineD3DVert
...
@@ -479,7 +479,7 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDeclaration8(IWineD3DVert
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_GetDeclaration9
(
IWineD3DVertexDeclaration
*
iface
,
D3DVERTEXELEMENT9
*
pData
,
DWORD
*
pNumElements
)
{
static
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_GetDeclaration9
(
IWineD3DVertexDeclaration
*
iface
,
D3DVERTEXELEMENT9
*
pData
,
DWORD
*
pNumElements
)
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
TRACE
(
"(This %p, pData %p, pNumElements %p)
\n
"
,
This
,
pData
,
pNumElements
);
TRACE
(
"(This %p, pData %p, pNumElements %p)
\n
"
,
This
,
pData
,
pNumElements
);
...
@@ -498,7 +498,7 @@ HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDeclaration9(IWineD3DVertexDecla
...
@@ -498,7 +498,7 @@ HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDeclaration9(IWineD3DVertexDecla
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_GetDeclaration
(
IWineD3DVertexDeclaration
*
iface
,
VOID
*
pData
,
DWORD
*
pSize
)
{
static
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_GetDeclaration
(
IWineD3DVertexDeclaration
*
iface
,
VOID
*
pData
,
DWORD
*
pSize
)
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
HRESULT
hr
=
WINED3D_OK
;
HRESULT
hr
=
WINED3D_OK
;
...
@@ -517,7 +517,7 @@ HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDeclaration(IWineD3DVertexDeclar
...
@@ -517,7 +517,7 @@ HRESULT WINAPI IWineD3DVertexDeclarationImpl_GetDeclaration(IWineD3DVertexDeclar
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_SetDeclaration
(
IWineD3DVertexDeclaration
*
iface
,
VOID
*
pDecl
)
{
static
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_SetDeclaration
(
IWineD3DVertexDeclaration
*
iface
,
VOID
*
pDecl
)
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
HRESULT
hr
=
WINED3D_OK
;
HRESULT
hr
=
WINED3D_OK
;
...
...
dlls/wined3d/vertexshader.c
View file @
e9cbc66e
...
@@ -1417,7 +1417,7 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_GetConstantB(IWineD3DVertexShader *iface
...
@@ -1417,7 +1417,7 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_GetConstantB(IWineD3DVertexShader *iface
/* *******************************************
/* *******************************************
IWineD3DVertexShader IUnknown parts follow
IWineD3DVertexShader IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DVertexShaderImpl_QueryInterface
(
IWineD3DVertexShader
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DVertexShaderImpl_QueryInterface
(
IWineD3DVertexShader
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -1433,13 +1433,13 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_QueryInterface(IWineD3DVertexShader *ifa
...
@@ -1433,13 +1433,13 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_QueryInterface(IWineD3DVertexShader *ifa
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DVertexShaderImpl_AddRef
(
IWineD3DVertexShader
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVertexShaderImpl_AddRef
(
IWineD3DVertexShader
*
iface
)
{
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
}
ULONG
WINAPI
IWineD3DVertexShaderImpl_Release
(
IWineD3DVertexShader
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVertexShaderImpl_Release
(
IWineD3DVertexShader
*
iface
)
{
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
ref
);
...
@@ -1461,7 +1461,7 @@ ULONG WINAPI IWineD3DVertexShaderImpl_Release(IWineD3DVertexShader *iface) {
...
@@ -1461,7 +1461,7 @@ ULONG WINAPI IWineD3DVertexShaderImpl_Release(IWineD3DVertexShader *iface) {
IWineD3DVertexShader IWineD3DVertexShader parts follow
IWineD3DVertexShader IWineD3DVertexShader parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DVertexShaderImpl_GetParent
(
IWineD3DVertexShader
*
iface
,
IUnknown
**
parent
){
static
HRESULT
WINAPI
IWineD3DVertexShaderImpl_GetParent
(
IWineD3DVertexShader
*
iface
,
IUnknown
**
parent
){
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
*
parent
=
This
->
parent
;
*
parent
=
This
->
parent
;
...
@@ -1470,7 +1470,7 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_GetParent(IWineD3DVertexShader *iface, I
...
@@ -1470,7 +1470,7 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_GetParent(IWineD3DVertexShader *iface, I
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVertexShaderImpl_GetDevice
(
IWineD3DVertexShader
*
iface
,
IWineD3DDevice
**
pDevice
){
static
HRESULT
WINAPI
IWineD3DVertexShaderImpl_GetDevice
(
IWineD3DVertexShader
*
iface
,
IWineD3DDevice
**
pDevice
){
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
IWineD3DDevice_AddRef
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
);
IWineD3DDevice_AddRef
((
IWineD3DDevice
*
)
This
->
wineD3DDevice
);
*
pDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
*
pDevice
=
(
IWineD3DDevice
*
)
This
->
wineD3DDevice
;
...
@@ -1478,7 +1478,7 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_GetDevice(IWineD3DVertexShader* iface, I
...
@@ -1478,7 +1478,7 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_GetDevice(IWineD3DVertexShader* iface, I
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVertexShaderImpl_GetFunction
(
IWineD3DVertexShader
*
impl
,
VOID
*
pData
,
UINT
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IWineD3DVertexShaderImpl_GetFunction
(
IWineD3DVertexShader
*
impl
,
VOID
*
pData
,
UINT
*
pSizeOfData
)
{
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
impl
;
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
impl
;
TRACE
(
"(%p) : pData(%p), pSizeOfData(%p)
\n
"
,
This
,
pData
,
pSizeOfData
);
TRACE
(
"(%p) : pData(%p), pSizeOfData(%p)
\n
"
,
This
,
pData
,
pSizeOfData
);
...
@@ -1503,7 +1503,7 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_GetFunction(IWineD3DVertexShader* impl,
...
@@ -1503,7 +1503,7 @@ HRESULT WINAPI IWineD3DVertexShaderImpl_GetFunction(IWineD3DVertexShader* impl,
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVertexShaderImpl_SetFunction
(
IWineD3DVertexShader
*
iface
,
CONST
DWORD
*
pFunction
)
{
static
HRESULT
WINAPI
IWineD3DVertexShaderImpl_SetFunction
(
IWineD3DVertexShader
*
iface
,
CONST
DWORD
*
pFunction
)
{
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
iface
;
const
DWORD
*
pToken
=
pFunction
;
const
DWORD
*
pToken
=
pFunction
;
const
SHADER_OPCODE
*
curOpcode
=
NULL
;
const
SHADER_OPCODE
*
curOpcode
=
NULL
;
...
...
dlls/wined3d/volume.c
View file @
e9cbc66e
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
/* *******************************************
/* *******************************************
IWineD3DVolume IUnknown parts follow
IWineD3DVolume IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DVolumeImpl_QueryInterface
(
IWineD3DVolume
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DVolumeImpl_QueryInterface
(
IWineD3DVolume
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -44,13 +44,13 @@ HRESULT WINAPI IWineD3DVolumeImpl_QueryInterface(IWineD3DVolume *iface, REFIID r
...
@@ -44,13 +44,13 @@ HRESULT WINAPI IWineD3DVolumeImpl_QueryInterface(IWineD3DVolume *iface, REFIID r
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DVolumeImpl_AddRef
(
IWineD3DVolume
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVolumeImpl_AddRef
(
IWineD3DVolume
*
iface
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
}
}
ULONG
WINAPI
IWineD3DVolumeImpl_Release
(
IWineD3DVolume
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVolumeImpl_Release
(
IWineD3DVolume
*
iface
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
ULONG
ref
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
TRACE
(
"(%p) : Releasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
...
@@ -65,46 +65,46 @@ ULONG WINAPI IWineD3DVolumeImpl_Release(IWineD3DVolume *iface) {
...
@@ -65,46 +65,46 @@ ULONG WINAPI IWineD3DVolumeImpl_Release(IWineD3DVolume *iface) {
/* ****************************************************
/* ****************************************************
IWineD3DVolume IWineD3DResource parts follow
IWineD3DVolume IWineD3DResource parts follow
**************************************************** */
**************************************************** */
HRESULT
WINAPI
IWineD3DVolumeImpl_GetParent
(
IWineD3DVolume
*
iface
,
IUnknown
**
pParent
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_GetParent
(
IWineD3DVolume
*
iface
,
IUnknown
**
pParent
)
{
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_GetDevice
(
IWineD3DVolume
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_GetDevice
(
IWineD3DVolume
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_SetPrivateData
(
IWineD3DVolume
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_SetPrivateData
(
IWineD3DVolume
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_GetPrivateData
(
IWineD3DVolume
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_GetPrivateData
(
IWineD3DVolume
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_FreePrivateData
(
IWineD3DVolume
*
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_FreePrivateData
(
IWineD3DVolume
*
iface
,
REFGUID
refguid
)
{
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
}
}
DWORD
WINAPI
IWineD3DVolumeImpl_SetPriority
(
IWineD3DVolume
*
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IWineD3DVolumeImpl_SetPriority
(
IWineD3DVolume
*
iface
,
DWORD
PriorityNew
)
{
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
}
DWORD
WINAPI
IWineD3DVolumeImpl_GetPriority
(
IWineD3DVolume
*
iface
)
{
static
DWORD
WINAPI
IWineD3DVolumeImpl_GetPriority
(
IWineD3DVolume
*
iface
)
{
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
}
}
void
WINAPI
IWineD3DVolumeImpl_PreLoad
(
IWineD3DVolume
*
iface
)
{
static
void
WINAPI
IWineD3DVolumeImpl_PreLoad
(
IWineD3DVolume
*
iface
)
{
return
IWineD3DResourceImpl_PreLoad
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_PreLoad
((
IWineD3DResource
*
)
iface
);
}
}
WINED3DRESOURCETYPE
WINAPI
IWineD3DVolumeImpl_GetType
(
IWineD3DVolume
*
iface
)
{
static
WINED3DRESOURCETYPE
WINAPI
IWineD3DVolumeImpl_GetType
(
IWineD3DVolume
*
iface
)
{
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
}
}
/* *******************************************
/* *******************************************
IWineD3DVolume parts follow
IWineD3DVolume parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DVolumeImpl_GetContainerParent
(
IWineD3DVolume
*
iface
,
IUnknown
**
ppContainerParent
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_GetContainerParent
(
IWineD3DVolume
*
iface
,
IUnknown
**
ppContainerParent
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
TRACE
(
"(%p) : ppContainerParent %p
\n
"
,
This
,
ppContainerParent
);
TRACE
(
"(%p) : ppContainerParent %p
\n
"
,
This
,
ppContainerParent
);
...
@@ -127,7 +127,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_GetContainerParent(IWineD3DVolume *iface, IUnk
...
@@ -127,7 +127,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_GetContainerParent(IWineD3DVolume *iface, IUnk
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_GetContainer
(
IWineD3DVolume
*
iface
,
REFIID
riid
,
void
**
ppContainer
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_GetContainer
(
IWineD3DVolume
*
iface
,
REFIID
riid
,
void
**
ppContainer
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
TRACE
(
"(This %p, riid %s, ppContainer %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppContainer
);
TRACE
(
"(This %p, riid %s, ppContainer %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppContainer
);
...
@@ -145,7 +145,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_GetContainer(IWineD3DVolume *iface, REFIID rii
...
@@ -145,7 +145,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_GetContainer(IWineD3DVolume *iface, REFIID rii
return
IUnknown_QueryInterface
(
This
->
container
,
riid
,
ppContainer
);
return
IUnknown_QueryInterface
(
This
->
container
,
riid
,
ppContainer
);
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_GetDesc
(
IWineD3DVolume
*
iface
,
WINED3DVOLUME_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_GetDesc
(
IWineD3DVolume
*
iface
,
WINED3DVOLUME_DESC
*
pDesc
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
TRACE
(
"(%p) : copying into %p
\n
"
,
This
,
pDesc
);
TRACE
(
"(%p) : copying into %p
\n
"
,
This
,
pDesc
);
...
@@ -160,7 +160,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_GetDesc(IWineD3DVolume *iface, WINED3DVOLUME_D
...
@@ -160,7 +160,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_GetDesc(IWineD3DVolume *iface, WINED3DVOLUME_D
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_LockBox
(
IWineD3DVolume
*
iface
,
WINED3DLOCKED_BOX
*
pLockedVolume
,
CONST
WINED3DBOX
*
pBox
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_LockBox
(
IWineD3DVolume
*
iface
,
WINED3DLOCKED_BOX
*
pLockedVolume
,
CONST
WINED3DBOX
*
pBox
,
DWORD
Flags
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
FIXME
(
"(%p) : pBox=%p stub
\n
"
,
This
,
pBox
);
FIXME
(
"(%p) : pBox=%p stub
\n
"
,
This
,
pBox
);
...
@@ -221,7 +221,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_LockBox(IWineD3DVolume *iface, WINED3DLOCKED_B
...
@@ -221,7 +221,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_LockBox(IWineD3DVolume *iface, WINED3DLOCKED_B
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_UnlockBox
(
IWineD3DVolume
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_UnlockBox
(
IWineD3DVolume
*
iface
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
if
(
FALSE
==
This
->
locked
)
{
if
(
FALSE
==
This
->
locked
)
{
ERR
(
"trying to lock unlocked volume@%p
\n
"
,
This
);
ERR
(
"trying to lock unlocked volume@%p
\n
"
,
This
);
...
@@ -235,7 +235,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_UnlockBox(IWineD3DVolume *iface) {
...
@@ -235,7 +235,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_UnlockBox(IWineD3DVolume *iface) {
/* Internal use functions follow : */
/* Internal use functions follow : */
HRESULT
WINAPI
IWineD3DVolumeImpl_CleanDirtyBox
(
IWineD3DVolume
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_CleanDirtyBox
(
IWineD3DVolume
*
iface
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
This
->
dirty
=
FALSE
;
This
->
dirty
=
FALSE
;
This
->
lockedBox
.
Left
=
This
->
currentDesc
.
Width
;
This
->
lockedBox
.
Left
=
This
->
currentDesc
.
Width
;
...
@@ -247,7 +247,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_CleanDirtyBox(IWineD3DVolume *iface) {
...
@@ -247,7 +247,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_CleanDirtyBox(IWineD3DVolume *iface) {
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_AddDirtyBox
(
IWineD3DVolume
*
iface
,
CONST
WINED3DBOX
*
pDirtyBox
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_AddDirtyBox
(
IWineD3DVolume
*
iface
,
CONST
WINED3DBOX
*
pDirtyBox
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
This
->
dirty
=
TRUE
;
This
->
dirty
=
TRUE
;
if
(
NULL
!=
pDirtyBox
)
{
if
(
NULL
!=
pDirtyBox
)
{
...
@@ -268,7 +268,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_AddDirtyBox(IWineD3DVolume *iface, CONST WINED
...
@@ -268,7 +268,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_AddDirtyBox(IWineD3DVolume *iface, CONST WINED
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_SetContainer
(
IWineD3DVolume
*
iface
,
IWineD3DBase
*
container
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_SetContainer
(
IWineD3DVolume
*
iface
,
IWineD3DBase
*
container
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
TRACE
(
"This %p, container %p
\n
"
,
This
,
container
);
TRACE
(
"This %p, container %p
\n
"
,
This
,
container
);
...
@@ -281,7 +281,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_SetContainer(IWineD3DVolume *iface, IWineD3DBa
...
@@ -281,7 +281,7 @@ HRESULT WINAPI IWineD3DVolumeImpl_SetContainer(IWineD3DVolume *iface, IWineD3DBa
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVolumeImpl_LoadTexture
(
IWineD3DVolume
*
iface
,
GLenum
gl_level
)
{
static
HRESULT
WINAPI
IWineD3DVolumeImpl_LoadTexture
(
IWineD3DVolume
*
iface
,
GLenum
gl_level
)
{
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DVolumeImpl
*
This
=
(
IWineD3DVolumeImpl
*
)
iface
;
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
...
...
dlls/wined3d/volumetexture.c
View file @
e9cbc66e
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d);
/* *******************************************
/* *******************************************
IWineD3DTexture IUnknown parts follow
IWineD3DTexture IUnknown parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_QueryInterface
(
IWineD3DVolumeTexture
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_QueryInterface
(
IWineD3DVolumeTexture
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
@@ -46,13 +46,13 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_QueryInterface(IWineD3DVolumeTexture *i
...
@@ -46,13 +46,13 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_QueryInterface(IWineD3DVolumeTexture *i
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
ULONG
WINAPI
IWineD3DVolumeTextureImpl_AddRef
(
IWineD3DVolumeTexture
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVolumeTextureImpl_AddRef
(
IWineD3DVolumeTexture
*
iface
)
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
TRACE
(
"(%p) : AddRef increasing from %ld
\n
"
,
This
,
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
}
}
ULONG
WINAPI
IWineD3DVolumeTextureImpl_Release
(
IWineD3DVolumeTexture
*
iface
)
{
static
ULONG
WINAPI
IWineD3DVolumeTextureImpl_Release
(
IWineD3DVolumeTexture
*
iface
)
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
ULONG
ref
;
ULONG
ref
;
int
i
;
int
i
;
...
@@ -85,31 +85,31 @@ ULONG WINAPI IWineD3DVolumeTextureImpl_Release(IWineD3DVolumeTexture *iface) {
...
@@ -85,31 +85,31 @@ ULONG WINAPI IWineD3DVolumeTextureImpl_Release(IWineD3DVolumeTexture *iface) {
/* ****************************************************
/* ****************************************************
IWineD3DVolumeTexture IWineD3DResource parts follow
IWineD3DVolumeTexture IWineD3DResource parts follow
**************************************************** */
**************************************************** */
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetDevice
(
IWineD3DVolumeTexture
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetDevice
(
IWineD3DVolumeTexture
*
iface
,
IWineD3DDevice
**
ppDevice
)
{
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
return
IWineD3DResourceImpl_GetDevice
((
IWineD3DResource
*
)
iface
,
ppDevice
);
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_SetPrivateData
(
IWineD3DVolumeTexture
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_SetPrivateData
(
IWineD3DVolumeTexture
*
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
return
IWineD3DResourceImpl_SetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetPrivateData
(
IWineD3DVolumeTexture
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetPrivateData
(
IWineD3DVolumeTexture
*
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
return
IWineD3DResourceImpl_GetPrivateData
((
IWineD3DResource
*
)
iface
,
refguid
,
pData
,
pSizeOfData
);
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_FreePrivateData
(
IWineD3DVolumeTexture
*
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_FreePrivateData
(
IWineD3DVolumeTexture
*
iface
,
REFGUID
refguid
)
{
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
return
IWineD3DResourceImpl_FreePrivateData
((
IWineD3DResource
*
)
iface
,
refguid
);
}
}
DWORD
WINAPI
IWineD3DVolumeTextureImpl_SetPriority
(
IWineD3DVolumeTexture
*
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_SetPriority
(
IWineD3DVolumeTexture
*
iface
,
DWORD
PriorityNew
)
{
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
return
IWineD3DResourceImpl_SetPriority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
}
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetPriority
(
IWineD3DVolumeTexture
*
iface
)
{
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetPriority
(
IWineD3DVolumeTexture
*
iface
)
{
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetPriority
((
IWineD3DResource
*
)
iface
);
}
}
void
WINAPI
IWineD3DVolumeTextureImpl_PreLoad
(
IWineD3DVolumeTexture
*
iface
)
{
static
void
WINAPI
IWineD3DVolumeTextureImpl_PreLoad
(
IWineD3DVolumeTexture
*
iface
)
{
/* Overrider the IWineD3DResource Preload method */
/* Overrider the IWineD3DResource Preload method */
UINT
i
;
UINT
i
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
...
@@ -133,69 +133,69 @@ void WINAPI IWineD3DVolumeTextureImpl_PreLoad(IWineD3DVolumeTexture *iface) {
...
@@ -133,69 +133,69 @@ void WINAPI IWineD3DVolumeTextureImpl_PreLoad(IWineD3DVolumeTexture *iface) {
return
;
return
;
}
}
WINED3DRESOURCETYPE
WINAPI
IWineD3DVolumeTextureImpl_GetType
(
IWineD3DVolumeTexture
*
iface
)
{
static
WINED3DRESOURCETYPE
WINAPI
IWineD3DVolumeTextureImpl_GetType
(
IWineD3DVolumeTexture
*
iface
)
{
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
return
IWineD3DResourceImpl_GetType
((
IWineD3DResource
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetParent
(
IWineD3DVolumeTexture
*
iface
,
IUnknown
**
pParent
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetParent
(
IWineD3DVolumeTexture
*
iface
,
IUnknown
**
pParent
)
{
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
return
IWineD3DResourceImpl_GetParent
((
IWineD3DResource
*
)
iface
,
pParent
);
}
}
/* ******************************************************
/* ******************************************************
IWineD3DVolumeTexture IWineD3DBaseTexture parts follow
IWineD3DVolumeTexture IWineD3DBaseTexture parts follow
****************************************************** */
****************************************************** */
DWORD
WINAPI
IWineD3DVolumeTextureImpl_SetLOD
(
IWineD3DVolumeTexture
*
iface
,
DWORD
LODNew
)
{
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_SetLOD
(
IWineD3DVolumeTexture
*
iface
,
DWORD
LODNew
)
{
return
IWineD3DBaseTextureImpl_SetLOD
((
IWineD3DBaseTexture
*
)
iface
,
LODNew
);
return
IWineD3DBaseTextureImpl_SetLOD
((
IWineD3DBaseTexture
*
)
iface
,
LODNew
);
}
}
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetLOD
(
IWineD3DVolumeTexture
*
iface
)
{
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetLOD
(
IWineD3DVolumeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetLOD
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetLOD
((
IWineD3DBaseTexture
*
)
iface
);
}
}
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetLevelCount
(
IWineD3DVolumeTexture
*
iface
)
{
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetLevelCount
(
IWineD3DVolumeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetLevelCount
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetLevelCount
((
IWineD3DBaseTexture
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_SetAutoGenFilterType
(
IWineD3DVolumeTexture
*
iface
,
WINED3DTEXTUREFILTERTYPE
FilterType
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_SetAutoGenFilterType
(
IWineD3DVolumeTexture
*
iface
,
WINED3DTEXTUREFILTERTYPE
FilterType
)
{
return
IWineD3DBaseTextureImpl_SetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
,
FilterType
);
return
IWineD3DBaseTextureImpl_SetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
,
FilterType
);
}
}
WINED3DTEXTUREFILTERTYPE
WINAPI
IWineD3DVolumeTextureImpl_GetAutoGenFilterType
(
IWineD3DVolumeTexture
*
iface
)
{
static
WINED3DTEXTUREFILTERTYPE
WINAPI
IWineD3DVolumeTextureImpl_GetAutoGenFilterType
(
IWineD3DVolumeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetAutoGenFilterType
((
IWineD3DBaseTexture
*
)
iface
);
}
}
void
WINAPI
IWineD3DVolumeTextureImpl_GenerateMipSubLevels
(
IWineD3DVolumeTexture
*
iface
)
{
static
void
WINAPI
IWineD3DVolumeTextureImpl_GenerateMipSubLevels
(
IWineD3DVolumeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GenerateMipSubLevels
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GenerateMipSubLevels
((
IWineD3DBaseTexture
*
)
iface
);
}
}
/* Internal function, No d3d mapping */
/* Internal function, No d3d mapping */
BOOL
WINAPI
IWineD3DVolumeTextureImpl_SetDirty
(
IWineD3DVolumeTexture
*
iface
,
BOOL
dirty
)
{
static
BOOL
WINAPI
IWineD3DVolumeTextureImpl_SetDirty
(
IWineD3DVolumeTexture
*
iface
,
BOOL
dirty
)
{
return
IWineD3DBaseTextureImpl_SetDirty
((
IWineD3DBaseTexture
*
)
iface
,
dirty
);
return
IWineD3DBaseTextureImpl_SetDirty
((
IWineD3DBaseTexture
*
)
iface
,
dirty
);
}
}
BOOL
WINAPI
IWineD3DVolumeTextureImpl_GetDirty
(
IWineD3DVolumeTexture
*
iface
)
{
static
BOOL
WINAPI
IWineD3DVolumeTextureImpl_GetDirty
(
IWineD3DVolumeTexture
*
iface
)
{
return
IWineD3DBaseTextureImpl_GetDirty
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_GetDirty
((
IWineD3DBaseTexture
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_BindTexture
(
IWineD3DVolumeTexture
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_BindTexture
(
IWineD3DVolumeTexture
*
iface
)
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
return
IWineD3DBaseTextureImpl_BindTexture
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_BindTexture
((
IWineD3DBaseTexture
*
)
iface
);
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_UnBindTexture
(
IWineD3DVolumeTexture
*
iface
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_UnBindTexture
(
IWineD3DVolumeTexture
*
iface
)
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
TRACE
(
"(%p) : relay to BaseTexture
\n
"
,
This
);
return
IWineD3DBaseTextureImpl_UnBindTexture
((
IWineD3DBaseTexture
*
)
iface
);
return
IWineD3DBaseTextureImpl_UnBindTexture
((
IWineD3DBaseTexture
*
)
iface
);
}
}
UINT
WINAPI
IWineD3DVolumeTextureImpl_GetTextureDimensions
(
IWineD3DVolumeTexture
*
iface
)
{
static
UINT
WINAPI
IWineD3DVolumeTextureImpl_GetTextureDimensions
(
IWineD3DVolumeTexture
*
iface
)
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
return
GL_TEXTURE_3D
;
return
GL_TEXTURE_3D
;
}
}
void
WINAPI
IWineD3DVolumeTextureImpl_ApplyStateChanges
(
IWineD3DVolumeTexture
*
iface
,
static
void
WINAPI
IWineD3DVolumeTextureImpl_ApplyStateChanges
(
IWineD3DVolumeTexture
*
iface
,
const
DWORD
textureStates
[
WINED3D_HIGHEST_TEXTURE_STATE
+
1
],
const
DWORD
textureStates
[
WINED3D_HIGHEST_TEXTURE_STATE
+
1
],
const
DWORD
samplerStates
[
WINED3D_HIGHEST_SAMPLER_STATE
+
1
])
{
const
DWORD
samplerStates
[
WINED3D_HIGHEST_SAMPLER_STATE
+
1
])
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
...
@@ -207,7 +207,7 @@ void WINAPI IWineD3DVolumeTextureImpl_ApplyStateChanges(IWineD3DVolumeTexture *i
...
@@ -207,7 +207,7 @@ void WINAPI IWineD3DVolumeTextureImpl_ApplyStateChanges(IWineD3DVolumeTexture *i
/* *******************************************
/* *******************************************
IWineD3DVolumeTexture IWineD3DVolumeTexture parts follow
IWineD3DVolumeTexture IWineD3DVolumeTexture parts follow
******************************************* */
******************************************* */
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetLevelDesc
(
IWineD3DVolumeTexture
*
iface
,
UINT
Level
,
WINED3DVOLUME_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetLevelDesc
(
IWineD3DVolumeTexture
*
iface
,
UINT
Level
,
WINED3DVOLUME_DESC
*
pDesc
)
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
if
(
Level
<
This
->
baseTexture
.
levels
)
{
if
(
Level
<
This
->
baseTexture
.
levels
)
{
TRACE
(
"(%p) Level (%d)
\n
"
,
This
,
Level
);
TRACE
(
"(%p) Level (%d)
\n
"
,
This
,
Level
);
...
@@ -217,7 +217,7 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_GetLevelDesc(IWineD3DVolumeTexture *ifa
...
@@ -217,7 +217,7 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_GetLevelDesc(IWineD3DVolumeTexture *ifa
}
}
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetVolumeLevel
(
IWineD3DVolumeTexture
*
iface
,
UINT
Level
,
IWineD3DVolume
**
ppVolumeLevel
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetVolumeLevel
(
IWineD3DVolumeTexture
*
iface
,
UINT
Level
,
IWineD3DVolume
**
ppVolumeLevel
)
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
if
(
Level
<
This
->
baseTexture
.
levels
)
{
if
(
Level
<
This
->
baseTexture
.
levels
)
{
*
ppVolumeLevel
=
(
IWineD3DVolume
*
)
This
->
volumes
[
Level
];
*
ppVolumeLevel
=
(
IWineD3DVolume
*
)
This
->
volumes
[
Level
];
...
@@ -230,7 +230,7 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_GetVolumeLevel(IWineD3DVolumeTexture *i
...
@@ -230,7 +230,7 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_GetVolumeLevel(IWineD3DVolumeTexture *i
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_LockBox
(
IWineD3DVolumeTexture
*
iface
,
UINT
Level
,
WINED3DLOCKED_BOX
*
pLockedVolume
,
CONST
WINED3DBOX
*
pBox
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_LockBox
(
IWineD3DVolumeTexture
*
iface
,
UINT
Level
,
WINED3DLOCKED_BOX
*
pLockedVolume
,
CONST
WINED3DBOX
*
pBox
,
DWORD
Flags
)
{
HRESULT
hr
;
HRESULT
hr
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
...
@@ -245,7 +245,7 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_LockBox(IWineD3DVolumeTexture *iface, U
...
@@ -245,7 +245,7 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_LockBox(IWineD3DVolumeTexture *iface, U
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_UnlockBox
(
IWineD3DVolumeTexture
*
iface
,
UINT
Level
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_UnlockBox
(
IWineD3DVolumeTexture
*
iface
,
UINT
Level
)
{
HRESULT
hr
;
HRESULT
hr
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
...
@@ -260,7 +260,7 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_UnlockBox(IWineD3DVolumeTexture *iface,
...
@@ -260,7 +260,7 @@ HRESULT WINAPI IWineD3DVolumeTextureImpl_UnlockBox(IWineD3DVolumeTexture *iface,
return
hr
;
return
hr
;
}
}
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_AddDirtyBox
(
IWineD3DVolumeTexture
*
iface
,
CONST
WINED3DBOX
*
pDirtyBox
)
{
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_AddDirtyBox
(
IWineD3DVolumeTexture
*
iface
,
CONST
WINED3DBOX
*
pDirtyBox
)
{
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
IWineD3DVolumeTextureImpl
*
This
=
(
IWineD3DVolumeTextureImpl
*
)
iface
;
This
->
baseTexture
.
dirty
=
TRUE
;
This
->
baseTexture
.
dirty
=
TRUE
;
TRACE
(
"(%p) : dirtyfication of volume Level (0)
\n
"
,
This
);
TRACE
(
"(%p) : dirtyfication of volume Level (0)
\n
"
,
This
);
...
...
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