Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
397cc3f4
Commit
397cc3f4
authored
May 28, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
May 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Avoid LPDIRECT3DRMTEXTURE3.
parent
50a38645
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
42 deletions
+31
-42
d3drm.c
dlls/d3drm/d3drm.c
+9
-13
frame.c
dlls/d3drm/frame.c
+7
-15
meshbuilder.c
dlls/d3drm/meshbuilder.c
+3
-3
d3drm.h
include/d3drm.h
+3
-2
d3drmobj.h
include/d3drmobj.h
+9
-9
No files found.
dlls/d3drm/d3drm.c
View file @
397cc3f4
...
...
@@ -1103,25 +1103,21 @@ static HRESULT WINAPI IDirect3DRM3Impl_CreateUserVisual(IDirect3DRM3* iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_LoadTexture
(
IDirect3DRM3
*
iface
,
const
char
*
filenam
e
,
LPDIRECT3DRMTEXTURE3
*
T
exture
)
static
HRESULT
WINAPI
IDirect3DRM3Impl_LoadTexture
(
IDirect3DRM3
*
ifac
e
,
const
char
*
filename
,
IDirect3DRMTexture3
**
t
exture
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM3
(
iface
);
FIXME
(
"(%p/%p)->(%s,%p): stub
\n
"
,
iface
,
This
,
filename
,
Texture
);
FIXME
(
"iface %p, filename %s, texture %p stub!
\n
"
,
iface
,
debugstr_a
(
filename
),
texture
);
return
Direct3DRMTexture_create
(
&
IID_IDirect3DRMTexture3
,
(
IUnknown
**
)
T
exture
);
return
Direct3DRMTexture_create
(
&
IID_IDirect3DRMTexture3
,
(
IUnknown
**
)
t
exture
);
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_LoadTextureFromResource
(
IDirect3DRM3
*
iface
,
HMODULE
mod
,
LPCSTR
strName
,
LPCSTR
strType
,
LPDIRECT3DRMTEXTURE3
*
Texture
)
static
HRESULT
WINAPI
IDirect3DRM3Impl_LoadTextureFromResource
(
IDirect3DRM3
*
iface
,
HMODULE
module
,
const
char
*
resource_name
,
const
char
*
resource_type
,
IDirect3DRMTexture3
**
texture
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM3
(
iface
);
FIXME
(
"(%p/%p)->(%p,%p,%p,%p): stub
\n
"
,
iface
,
This
,
mod
,
strName
,
strType
,
Texture
);
FIXME
(
"iface %p, module %p, resource_name %s, resource_type %s, texture %p stub!
\n
"
,
iface
,
module
,
debugstr_a
(
resource_name
),
debugstr_a
(
resource_type
),
texture
);
return
Direct3DRMTexture_create
(
&
IID_IDirect3DRMTexture3
,
(
IUnknown
**
)
T
exture
);
return
Direct3DRMTexture_create
(
&
IID_IDirect3DRMTexture3
,
(
IUnknown
**
)
t
exture
);
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_SetSearchPath
(
IDirect3DRM3
*
iface
,
LPCSTR
path
)
...
...
dlls/d3drm/frame.c
View file @
397cc3f4
...
...
@@ -1826,12 +1826,9 @@ static D3DRMSORTMODE WINAPI IDirect3DRMFrame3Impl_GetSortMode(IDirect3DRMFrame3*
return
D3DRMSORT_FROMPARENT
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_GetTexture
(
IDirect3DRMFrame3
*
iface
,
LPDIRECT3DRMTEXTURE3
*
tex
)
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_GetTexture
(
IDirect3DRMFrame3
*
iface
,
IDirect3DRMTexture3
**
texture
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame3
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
tex
);
FIXME
(
"iface %p, texture %p stub!
\n
"
,
iface
,
texture
);
return
E_NOTIMPL
;
}
...
...
@@ -2101,12 +2098,10 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_SetSceneBackgroundDepth(IDirect3DRMF
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_SetSceneBackgroundImage
(
IDirect3DRMFrame3
*
iface
,
LPDIRECT3DRMTEXTURE3
texture
)
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_SetSceneBackgroundImage
(
IDirect3DRMFrame3
*
iface
,
IDirect3DRMTexture3
*
texture
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame3
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
texture
);
FIXME
(
"iface %p, texture %p stub!
\n
"
,
iface
,
texture
);
return
E_NOTIMPL
;
}
...
...
@@ -2225,12 +2220,9 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_SetSortMode(IDirect3DRMFrame3* iface
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_SetTexture
(
IDirect3DRMFrame3
*
iface
,
LPDIRECT3DRMTEXTURE3
texture
)
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_SetTexture
(
IDirect3DRMFrame3
*
iface
,
IDirect3DRMTexture3
*
texture
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame3
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
texture
);
FIXME
(
"iface %p, texture %p stub!
\n
"
,
iface
,
texture
);
return
E_NOTIMPL
;
}
...
...
dlls/d3drm/meshbuilder.c
View file @
397cc3f4
...
...
@@ -662,7 +662,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder2Impl_SetTexture(IDirect3DRMMeshBuil
IDirect3DRMTexture
*
texture
)
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
LPDIRECT3DRMTEXTURE3
texture3
=
NULL
;
IDirect3DRMTexture3
*
texture3
=
NULL
;
HRESULT
hr
=
D3DRM_OK
;
if
(
texture
)
...
...
@@ -1815,8 +1815,8 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_SetColor(IDirect3DRMMeshBuilde
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder3Impl_SetTexture
(
IDirect3DRMMeshBuilder3
*
iface
,
LPDIRECT3DRMTEXTURE3
texture
)
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder3Impl_SetTexture
(
IDirect3DRMMeshBuilder3
*
iface
,
IDirect3DRMTexture3
*
texture
)
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder3
(
iface
);
...
...
include/d3drm.h
View file @
397cc3f4
...
...
@@ -369,8 +369,9 @@ DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
su
,
D3DVALUE
sv
,
IDirect3DRMWrap
**
wrap
)
PURE
;
STDMETHOD
(
CreateUserVisual
)(
THIS_
D3DRMUSERVISUALCALLBACK
,
LPVOID
pArg
,
LPDIRECT3DRMUSERVISUAL
*
)
PURE
;
STDMETHOD
(
LoadTexture
)(
THIS_
const
char
*
,
LPDIRECT3DRMTEXTURE3
*
)
PURE
;
STDMETHOD
(
LoadTextureFromResource
)(
THIS_
HMODULE
hModule
,
LPCSTR
/* LPCTSTR */
strName
,
LPCSTR
/* LPCTSTR */
strType
,
LPDIRECT3DRMTEXTURE3
*
)
PURE
;
STDMETHOD
(
LoadTexture
)(
THIS_
const
char
*
filename
,
IDirect3DRMTexture3
**
texture
)
PURE
;
STDMETHOD
(
LoadTextureFromResource
)(
THIS_
HMODULE
module
,
const
char
*
resource_name
,
const
char
*
resource_type
,
IDirect3DRMTexture3
**
texture
)
PURE
;
STDMETHOD
(
SetSearchPath
)(
THIS_
LPCSTR
)
PURE
;
STDMETHOD
(
AddSearchPath
)(
THIS_
LPCSTR
)
PURE
;
STDMETHOD
(
GetSearchPath
)(
THIS_
DWORD
*
size_return
,
LPSTR
path_return
)
PURE
;
...
...
include/d3drmobj.h
View file @
397cc3f4
...
...
@@ -163,12 +163,12 @@ typedef void (__cdecl *D3DRMDEVICE3UPDATECALLBACK)(struct IDirect3DRMDevice3 *de
typedef
int
(
__cdecl
*
D3DRMUSERVISUALCALLBACK
)(
struct
IDirect3DRMUserVisual
*
visual
,
void
*
ctx
,
D3DRMUSERVISUALREASON
reason
,
struct
IDirect3DRMDevice
*
device
,
struct
IDirect3DRMViewport
*
viewport
);
typedef
HRESULT
(
__cdecl
*
D3DRMLOADTEXTURECALLBACK
)(
char
*
tex_name
,
void
*
arg
,
struct
IDirect3DRMTexture
**
texture
);
typedef
HRESULT
(
__cdecl
*
D3DRMLOADTEXTURE3CALLBACK
)(
char
*
tex_name
,
void
*
arg
,
LPDIRECT3DRMTEXTURE3
*
);
typedef
HRESULT
(
__cdecl
*
D3DRMLOADTEXTURE3CALLBACK
)(
char
*
tex_name
,
void
*
arg
,
struct
IDirect3DRMTexture3
**
texture
);
typedef
void
(
__cdecl
*
D3DRMLOADCALLBACK
)(
struct
IDirect3DRMObject
*
object
,
REFIID
objectguid
,
void
*
arg
);
typedef
HRESULT
(
__cdecl
*
D3DRMDOWNSAMPLECALLBACK
)(
struct
IDirect3DRMTexture3
*
texture
,
void
*
ctx
,
IDirectDrawSurface
*
src_surface
,
IDirectDrawSurface
*
dst_surface
);
typedef
HRESULT
(
__cdecl
*
D3DRMVALIDATIONCALLBACK
)(
LPDIRECT3DRMTEXTURE3
lpDirect3DRMTexture
,
LPVOID
pArg
,
DWORD
dwFlags
,
DWORD
dwcRects
,
LPRECT
pR
ects
);
typedef
HRESULT
(
__cdecl
*
D3DRMVALIDATIONCALLBACK
)(
struct
IDirect3DRMTexture3
*
texture
,
void
*
ctx
,
DWORD
flags
,
DWORD
rect_count
,
RECT
*
r
ects
);
typedef
struct
_D3DRMPICKDESC
{
...
...
@@ -1628,7 +1628,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame3,IDirect3DRMVisual)
STDMETHOD
(
GetRotation
)(
THIS_
IDirect3DRMFrame3
*
reference
,
D3DVECTOR
*
axis
,
D3DVALUE
*
return_theta
)
PURE
;
STDMETHOD
(
GetScene
)(
THIS_
IDirect3DRMFrame3
**
scene
)
PURE
;
STDMETHOD_
(
D3DRMSORTMODE
,
GetSortMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
LPDIRECT3DRMTEXTURE3
*
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
struct
IDirect3DRMTexture3
**
texture
)
PURE
;
STDMETHOD
(
GetTransform
)(
THIS_
IDirect3DRMFrame3
*
reference
,
D3DRMMATRIX4D
matrix
)
PURE
;
STDMETHOD
(
GetVelocity
)(
THIS_
IDirect3DRMFrame3
*
reference
,
D3DVECTOR
*
return_velocity
,
BOOL
with_rotation
)
PURE
;
STDMETHOD
(
GetOrientation
)(
THIS_
IDirect3DRMFrame3
*
reference
,
D3DVECTOR
*
dir
,
D3DVECTOR
*
up
)
PURE
;
...
...
@@ -1653,7 +1653,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame3,IDirect3DRMVisual)
STDMETHOD
(
SetSceneBackground
)(
THIS_
D3DCOLOR
)
PURE
;
STDMETHOD
(
SetSceneBackgroundRGB
)(
THIS_
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
)
PURE
;
STDMETHOD
(
SetSceneBackgroundDepth
)(
THIS_
IDirectDrawSurface
*
surface
)
PURE
;
STDMETHOD
(
SetSceneBackgroundImage
)(
THIS_
LPDIRECT3DRMTEXTURE3
)
PURE
;
STDMETHOD
(
SetSceneBackgroundImage
)(
THIS_
struct
IDirect3DRMTexture3
*
texture
)
PURE
;
STDMETHOD
(
SetSceneFogEnable
)(
THIS_
BOOL
)
PURE
;
STDMETHOD
(
SetSceneFogColor
)(
THIS_
D3DCOLOR
)
PURE
;
STDMETHOD
(
SetSceneFogMode
)(
THIS_
D3DRMFOGMODE
)
PURE
;
...
...
@@ -1668,7 +1668,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame3,IDirect3DRMVisual)
STDMETHOD
(
SetRotation
)(
THIS_
IDirect3DRMFrame3
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
D3DVALUE
theta
)
PURE
;
STDMETHOD
(
SetSortMode
)(
THIS_
D3DRMSORTMODE
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
LPDIRECT3DRMTEXTURE3
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
struct
IDirect3DRMTexture3
*
texture
)
PURE
;
STDMETHOD
(
SetVelocity
)(
THIS_
IDirect3DRMFrame3
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
BOOL
with_rotation
)
PURE
;
STDMETHOD
(
SetZbufferMode
)(
THIS_
D3DRMZBUFFERMODE
)
PURE
;
...
...
@@ -2395,7 +2395,7 @@ DECLARE_INTERFACE_(IDirect3DRMFace2,IDirect3DRMObject)
STDMETHOD
(
AddVertexAndNormalIndexed
)(
THIS_
DWORD
vertex
,
DWORD
normal
)
PURE
;
STDMETHOD
(
SetColorRGB
)(
THIS_
D3DVALUE
,
D3DVALUE
,
D3DVALUE
)
PURE
;
STDMETHOD
(
SetColor
)(
THIS_
D3DCOLOR
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
LPDIRECT3DRMTEXTURE3
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
struct
IDirect3DRMTexture3
*
texture
)
PURE
;
STDMETHOD
(
SetTextureCoordinates
)(
THIS_
DWORD
vertex
,
D3DVALUE
u
,
D3DVALUE
v
)
PURE
;
STDMETHOD
(
SetMaterial
)(
THIS_
LPDIRECT3DRMMATERIAL2
)
PURE
;
STDMETHOD
(
SetTextureTopology
)(
THIS_
BOOL
wrap_u
,
BOOL
wrap_v
)
PURE
;
...
...
@@ -2404,7 +2404,7 @@ DECLARE_INTERFACE_(IDirect3DRMFace2,IDirect3DRMObject)
STDMETHOD
(
GetTextureCoordinates
)(
THIS_
DWORD
vertex
,
D3DVALUE
*
u
,
D3DVALUE
*
v
)
PURE
;
STDMETHOD
(
GetTextureTopology
)(
THIS_
BOOL
*
wrap_u
,
BOOL
*
wrap_v
)
PURE
;
STDMETHOD
(
GetNormal
)(
THIS_
D3DVECTOR
*
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
LPDIRECT3DRMTEXTURE3
*
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
struct
IDirect3DRMTexture3
**
texture
)
PURE
;
STDMETHOD
(
GetMaterial
)(
THIS_
LPDIRECT3DRMMATERIAL2
*
)
PURE
;
STDMETHOD_
(
int
,
GetVertexCount
)(
THIS
)
PURE
;
STDMETHOD_
(
int
,
GetVertexIndex
)(
THIS_
DWORD
which
)
PURE
;
...
...
@@ -2869,7 +2869,7 @@ DECLARE_INTERFACE_(IDirect3DRMMeshBuilder3,IDirect3DRMVisual)
STDMETHOD
(
ReserveSpace
)(
THIS_
DWORD
vertex_Count
,
DWORD
normal_count
,
DWORD
face_count
)
PURE
;
STDMETHOD
(
SetColorRGB
)(
THIS_
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
)
PURE
;
STDMETHOD
(
SetColor
)(
THIS_
D3DCOLOR
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
LPDIRECT3DRMTEXTURE3
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
struct
IDirect3DRMTexture3
*
texture
)
PURE
;
STDMETHOD
(
SetMaterial
)(
THIS_
LPDIRECT3DRMMATERIAL2
)
PURE
;
STDMETHOD
(
SetTextureTopology
)(
THIS_
BOOL
wrap_u
,
BOOL
wrap_v
)
PURE
;
STDMETHOD
(
SetQuality
)(
THIS_
D3DRMRENDERQUALITY
)
PURE
;
...
...
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