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
c050cdb3
Commit
c050cdb3
authored
Apr 19, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Avoid LPDIRECT3DRMFRAME.
parent
24acd7c8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
111 additions
and
145 deletions
+111
-145
d3drm.c
dlls/d3drm/d3drm.c
+50
-45
frame.c
dlls/d3drm/frame.c
+28
-51
light.c
dlls/d3drm/light.c
+4
-10
meshbuilder.c
dlls/d3drm/meshbuilder.c
+2
-5
d3drm.c
dlls/d3drm/tests/d3drm.c
+9
-9
viewport.c
dlls/d3drm/viewport.c
+6
-15
d3drm.h
include/d3drm.h
+12
-10
d3drmobj.h
include/d3drmobj.h
+0
-0
No files found.
dlls/d3drm/d3drm.c
View file @
c050cdb3
...
@@ -137,13 +137,12 @@ static HRESULT WINAPI IDirect3DRMImpl_CreateObject(IDirect3DRM* iface, REFCLSID
...
@@ -137,13 +137,12 @@ static HRESULT WINAPI IDirect3DRMImpl_CreateObject(IDirect3DRM* iface, REFCLSID
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateFrame
(
IDirect3DRM
*
iface
,
LPDIRECT3DRMFRAME
parent_frame
,
LPDIRECT3DRMFRAME
*
frame
)
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateFrame
(
IDirect3DRM
*
iface
,
IDirect3DRMFrame
*
parent_frame
,
IDirect3DRMFrame
**
frame
)
{
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
TRACE
(
"iface %p, parent_frame %p, frame %p.
\n
"
,
iface
,
parent_frame
,
frame
);
TRACE
(
"(%p/%p)->(%p,%p)
\n
"
,
iface
,
This
,
parent_frame
,
frame
);
return
Direct3DRMFrame_create
(
&
IID_IDirect3DRMFrame
,
(
IUnknown
*
)
parent_frame
,
(
IUnknown
**
)
frame
);
return
Direct3DRMFrame_create
(
&
IID_IDirect3DRMFrame
,
(
IUnknown
*
)
parent_frame
,
(
IUnknown
**
)
frame
);
}
}
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateMesh
(
IDirect3DRM
*
iface
,
LPDIRECT3DRMMESH
*
ppMesh
)
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateMesh
(
IDirect3DRM
*
iface
,
LPDIRECT3DRMMESH
*
ppMesh
)
...
@@ -300,11 +299,14 @@ static HRESULT WINAPI IDirect3DRMImpl_CreateViewport(IDirect3DRM *iface, IDirect
...
@@ -300,11 +299,14 @@ static HRESULT WINAPI IDirect3DRMImpl_CreateViewport(IDirect3DRM *iface, IDirect
return
Direct3DRMViewport_create
(
&
IID_IDirect3DRMViewport
,
(
IUnknown
**
)
viewport
);
return
Direct3DRMViewport_create
(
&
IID_IDirect3DRMViewport
,
(
IUnknown
**
)
viewport
);
}
}
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateWrap
(
IDirect3DRM
*
iface
,
D3DRMWRAPTYPE
type
,
LPDIRECT3DRMFRAME
pFrame
,
D3DVALUE
ox
,
D3DVALUE
oy
,
D3DVALUE
oz
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
su
,
D3DVALUE
sv
,
LPDIRECT3DRMWRAP
*
ppWrap
)
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateWrap
(
IDirect3DRM
*
iface
,
D3DRMWRAPTYPE
type
,
IDirect3DRMFrame
*
frame
,
D3DVALUE
ox
,
D3DVALUE
oy
,
D3DVALUE
oz
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
su
,
D3DVALUE
sv
,
IDirect3DRMWrap
**
wrap
)
{
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
FIXME
(
"iface %p, type %#x, frame %p, ox %.8e, oy %.8e, oz %.8e, dx %.8e, dy %.8e, dz %.8e, "
"ux %.8e, uy %.8e, uz %.8e, ou %.8e, ov %.8e, su %.8e, sv %.8e, wrap %p stub!
\n
"
,
FIXME
(
"(%p/%p)->(%d,%p,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%p): stub
\n
"
,
iface
,
This
,
type
,
pFrame
,
ox
,
oy
,
oz
,
dx
,
dy
,
dz
,
ux
,
uy
,
uz
,
ou
,
ov
,
su
,
sv
,
ppW
rap
);
iface
,
type
,
frame
,
ox
,
oy
,
oz
,
dx
,
dy
,
dz
,
ux
,
uy
,
uz
,
ou
,
ov
,
su
,
sv
,
w
rap
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -407,20 +409,26 @@ static HRESULT WINAPI IDirect3DRMImpl_EnumerateObjects(IDirect3DRM* iface, D3DRM
...
@@ -407,20 +409,26 @@ static HRESULT WINAPI IDirect3DRMImpl_EnumerateObjects(IDirect3DRM* iface, D3DRM
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMImpl_Load
(
IDirect3DRM
*
iface
,
LPVOID
pObjSource
,
LPVOID
pObjID
,
LPIID
*
ppGUIDs
,
DWORD
nb_GUIDs
,
D3DRMLOADOPTIONS
LOFlags
,
D3DRMLOADCALLBACK
LoadProc
,
LPVOID
pArgLP
,
D3DRMLOADTEXTURECALLBACK
LoadTextureProc
,
LPVOID
pArgLTP
,
LPDIRECT3DRMFRAME
pParentFrame
)
static
HRESULT
WINAPI
IDirect3DRMImpl_Load
(
IDirect3DRM
*
iface
,
void
*
source
,
void
*
object_id
,
IID
**
iids
,
DWORD
iid_count
,
D3DRMLOADOPTIONS
flags
,
D3DRMLOADCALLBACK
load_cb
,
void
*
load_ctx
,
D3DRMLOADTEXTURECALLBACK
load_tex_cb
,
void
*
load_tex_ctx
,
IDirect3DRMFrame
*
parent_frame
)
{
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
IDirect3DRMImpl
*
d3drm
=
impl_from_IDirect3DRM
(
iface
);
LPDIRECT3DRMFRAME3
pParentF
rame3
=
NULL
;
IDirect3DRMFrame3
*
parent_f
rame3
=
NULL
;
HRESULT
hr
=
D3DRM_OK
;
HRESULT
hr
=
D3DRM_OK
;
TRACE
(
"(%p/%p)->(%p,%p,%p,%d,%d,%p,%p,%p,%p,%p)
\n
"
,
iface
,
This
,
pObjSource
,
pObjID
,
ppGUIDs
,
nb_GUIDs
,
LOFlags
,
LoadProc
,
pArgLP
,
LoadTextureProc
,
pArgLTP
,
pParentFrame
);
TRACE
(
"iface %p, source %p, object_id %p, iids %p, iid_count %u, flags %#x, "
"load_cb %p, load_ctx %p, load_tex_cb %p, load_tex_ctx %p, parent_frame %p.
\n
"
,
iface
,
source
,
object_id
,
iids
,
iid_count
,
flags
,
load_cb
,
load_ctx
,
load_tex_cb
,
load_tex_ctx
,
parent_frame
);
if
(
p
ParentF
rame
)
if
(
p
arent_f
rame
)
hr
=
IDirect3DRMFrame_QueryInterface
(
p
ParentFrame
,
&
IID_IDirect3DRMFrame3
,
(
void
**
)
&
pParentF
rame3
);
hr
=
IDirect3DRMFrame_QueryInterface
(
p
arent_frame
,
&
IID_IDirect3DRMFrame3
,
(
void
**
)
&
parent_f
rame3
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
hr
=
IDirect3DRM3_Load
(
&
This
->
IDirect3DRM3_iface
,
pObjSource
,
pObjID
,
ppGUIDs
,
nb_GUIDs
,
LOFlags
,
LoadProc
,
pArgLP
,
LoadTextureProc
,
pArgLTP
,
pParentFrame3
);
hr
=
IDirect3DRM3_Load
(
&
d3drm
->
IDirect3DRM3_iface
,
source
,
object_id
,
iids
,
iid_count
,
if
(
pParentFrame3
)
flags
,
load_cb
,
load_ctx
,
load_tex_cb
,
load_tex_ctx
,
parent_frame3
);
IDirect3DRMFrame3_Release
(
pParentFrame3
);
if
(
parent_frame3
)
IDirect3DRMFrame3_Release
(
parent_frame3
);
return
hr
;
return
hr
;
}
}
...
@@ -507,8 +515,8 @@ static HRESULT WINAPI IDirect3DRM2Impl_CreateObject(IDirect3DRM2* iface, REFCLSI
...
@@ -507,8 +515,8 @@ static HRESULT WINAPI IDirect3DRM2Impl_CreateObject(IDirect3DRM2* iface, REFCLSI
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateFrame
(
IDirect3DRM2
*
iface
,
LPDIRECT3DRMFRAME
parent_fram
e
,
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateFrame
(
IDirect3DRM2
*
ifac
e
,
LPDIRECT3DRMFRAME2
*
frame
)
IDirect3DRMFrame
*
parent_frame
,
IDirect3DRMFrame2
**
frame
)
{
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
...
@@ -680,18 +688,14 @@ static HRESULT WINAPI IDirect3DRM2Impl_CreateViewport(IDirect3DRM2 *iface, IDire
...
@@ -680,18 +688,14 @@ static HRESULT WINAPI IDirect3DRM2Impl_CreateViewport(IDirect3DRM2 *iface, IDire
return
Direct3DRMViewport_create
(
&
IID_IDirect3DRMViewport
,
(
IUnknown
**
)
viewport
);
return
Direct3DRMViewport_create
(
&
IID_IDirect3DRMViewport
,
(
IUnknown
**
)
viewport
);
}
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateWrap
(
IDirect3DRM2
*
iface
,
D3DRMWRAPTYPE
type
,
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateWrap
(
IDirect3DRM2
*
iface
,
D3DRMWRAPTYPE
type
,
IDirect3DRMFrame
*
frame
,
LPDIRECT3DRMFRAME
pFrame
,
D3DVALUE
ox
,
D3DVALUE
oy
,
D3DVALUE
oz
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ox
,
D3DVALUE
oy
,
D3DVALUE
oz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
su
,
D3DVALUE
sv
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
IDirect3DRMWrap
**
wrap
)
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
su
,
D3DVALUE
sv
,
LPDIRECT3DRMWRAP
*
ppWrap
)
{
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
FIXME
(
"iface %p, type %#x, frame %p, ox %.8e, oy %.8e, oz %.8e, dx %.8e, dy %.8e, dz %.8e, "
"ux %.8e, uy %.8e, uz %.8e, ou %.8e, ov %.8e, su %.8e, sv %.8e, wrap %p stub!
\n
"
,
FIXME
(
"(%p/%p)->(%d,%p,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%p): stub
\n
"
,
iface
,
This
,
type
,
iface
,
type
,
frame
,
ox
,
oy
,
oz
,
dx
,
dy
,
dz
,
ux
,
uy
,
uz
,
ou
,
ov
,
su
,
sv
,
wrap
);
pFrame
,
ox
,
oy
,
oz
,
dx
,
dy
,
dz
,
ux
,
uy
,
uz
,
ou
,
ov
,
su
,
sv
,
ppWrap
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -802,25 +806,26 @@ static HRESULT WINAPI IDirect3DRM2Impl_EnumerateObjects(IDirect3DRM2* iface, D3D
...
@@ -802,25 +806,26 @@ static HRESULT WINAPI IDirect3DRM2Impl_EnumerateObjects(IDirect3DRM2* iface, D3D
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_Load
(
IDirect3DRM2
*
iface
,
LPVOID
pObjSource
,
LPVOID
pObjID
,
static
HRESULT
WINAPI
IDirect3DRM2Impl_Load
(
IDirect3DRM2
*
iface
,
void
*
source
,
void
*
object_id
,
IID
**
iids
,
LPIID
*
ppGUIDs
,
DWORD
nb_GUIDs
,
DWORD
iid_count
,
D3DRMLOADOPTIONS
flags
,
D3DRMLOADCALLBACK
load_cb
,
void
*
load_ctx
,
D3DRMLOADOPTIONS
LOFlags
,
D3DRMLOADCALLBACK
LoadProc
,
D3DRMLOADTEXTURECALLBACK
load_tex_cb
,
void
*
load_tex_ctx
,
IDirect3DRMFrame
*
parent_frame
)
LPVOID
pArgLP
,
D3DRMLOADTEXTURECALLBACK
LoadTextureProc
,
LPVOID
pArgLTP
,
LPDIRECT3DRMFRAME
pParentFrame
)
{
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
IDirect3DRMImpl
*
d3drm
=
impl_from_IDirect3DRM2
(
iface
);
LPDIRECT3DRMFRAME3
pParentF
rame3
=
NULL
;
IDirect3DRMFrame3
*
parent_f
rame3
=
NULL
;
HRESULT
hr
=
D3DRM_OK
;
HRESULT
hr
=
D3DRM_OK
;
TRACE
(
"(%p/%p)->(%p,%p,%p,%d,%d,%p,%p,%p,%p,%p)
\n
"
,
iface
,
This
,
pObjSource
,
pObjID
,
TRACE
(
"iface %p, source %p, object_id %p, iids %p, iid_count %u, flags %#x, "
ppGUIDs
,
nb_GUIDs
,
LOFlags
,
LoadProc
,
pArgLP
,
LoadTextureProc
,
pArgLTP
,
pParentFrame
);
"load_cb %p, load_ctx %p, load_tex_cb %p, load_tex_ctx %p, parent_frame %p.
\n
"
,
iface
,
source
,
object_id
,
iids
,
iid_count
,
flags
,
load_cb
,
load_ctx
,
load_tex_cb
,
load_tex_ctx
,
parent_frame
);
if
(
p
ParentF
rame
)
if
(
p
arent_f
rame
)
hr
=
IDirect3DRMFrame_QueryInterface
(
p
ParentFrame
,
&
IID_IDirect3DRMFrame3
,
(
void
**
)
&
pParentF
rame3
);
hr
=
IDirect3DRMFrame_QueryInterface
(
p
arent_frame
,
&
IID_IDirect3DRMFrame3
,
(
void
**
)
&
parent_f
rame3
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
hr
=
IDirect3DRM3_Load
(
&
This
->
IDirect3DRM3_iface
,
pObjSource
,
pObjID
,
ppGUIDs
,
nb_GUIDs
,
LOFlags
,
LoadProc
,
pArgLP
,
LoadTextureProc
,
pArgLTP
,
pParentFrame3
);
hr
=
IDirect3DRM3_Load
(
&
d3drm
->
IDirect3DRM3_iface
,
source
,
object_id
,
iids
,
iid_count
,
if
(
pParentFrame3
)
flags
,
load_cb
,
load_ctx
,
load_tex_cb
,
load_tex_ctx
,
parent_frame3
);
IDirect3DRMFrame3_Release
(
pParentFrame3
);
if
(
parent_frame3
)
IDirect3DRMFrame3_Release
(
parent_frame3
);
return
hr
;
return
hr
;
}
}
...
...
dlls/d3drm/frame.c
View file @
c050cdb3
...
@@ -62,7 +62,7 @@ typedef struct {
...
@@ -62,7 +62,7 @@ typedef struct {
IDirect3DRMFrameArray
IDirect3DRMFrameArray_iface
;
IDirect3DRMFrameArray
IDirect3DRMFrameArray_iface
;
LONG
ref
;
LONG
ref
;
ULONG
size
;
ULONG
size
;
LPDIRECT3DRMFRAME
*
frames
;
IDirect3DRMFrame
**
frames
;
}
IDirect3DRMFrameArrayImpl
;
}
IDirect3DRMFrameArrayImpl
;
typedef
struct
{
typedef
struct
{
...
@@ -161,7 +161,8 @@ static DWORD WINAPI IDirect3DRMFrameArrayImpl_GetSize(IDirect3DRMFrameArray* ifa
...
@@ -161,7 +161,8 @@ static DWORD WINAPI IDirect3DRMFrameArrayImpl_GetSize(IDirect3DRMFrameArray* ifa
}
}
/*** IDirect3DRMFrameArray methods ***/
/*** IDirect3DRMFrameArray methods ***/
static
HRESULT
WINAPI
IDirect3DRMFrameArrayImpl_GetElement
(
IDirect3DRMFrameArray
*
iface
,
DWORD
index
,
LPDIRECT3DRMFRAME
*
frame
)
static
HRESULT
WINAPI
IDirect3DRMFrameArrayImpl_GetElement
(
IDirect3DRMFrameArray
*
iface
,
DWORD
index
,
IDirect3DRMFrame
**
frame
)
{
{
IDirect3DRMFrameArrayImpl
*
This
=
(
IDirect3DRMFrameArrayImpl
*
)
iface
;
IDirect3DRMFrameArrayImpl
*
This
=
(
IDirect3DRMFrameArrayImpl
*
)
iface
;
...
@@ -591,8 +592,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetClassName(IDirect3DRMFrame2* ifac
...
@@ -591,8 +592,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetClassName(IDirect3DRMFrame2* ifac
}
}
/*** IDirect3DRMFrame methods ***/
/*** IDirect3DRMFrame methods ***/
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_AddChild
(
IDirect3DRMFrame2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_AddChild
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
child
)
LPDIRECT3DRMFRAME
child
)
{
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMFrame3
*
frame
;
IDirect3DRMFrame3
*
frame
;
...
@@ -723,8 +723,7 @@ static D3DRMMATERIALMODE WINAPI IDirect3DRMFrame2Impl_GetMaterialMode(IDirect3DR
...
@@ -723,8 +723,7 @@ static D3DRMMATERIALMODE WINAPI IDirect3DRMFrame2Impl_GetMaterialMode(IDirect3DR
return
D3DRMMATERIAL_FROMPARENT
;
return
D3DRMMATERIAL_FROMPARENT
;
}
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetParent
(
IDirect3DRMFrame2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetParent
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
**
frame
)
LPDIRECT3DRMFRAME
*
frame
)
{
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
...
@@ -735,7 +734,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetParent(IDirect3DRMFrame2* iface,
...
@@ -735,7 +734,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetParent(IDirect3DRMFrame2* iface,
if
(
This
->
parent
)
if
(
This
->
parent
)
{
{
*
frame
=
(
LPDIRECT3DRMFRAME
)
&
This
->
parent
->
IDirect3DRMFrame2_iface
;
*
frame
=
(
IDirect3DRMFrame
*
)
&
This
->
parent
->
IDirect3DRMFrame2_iface
;
IDirect3DRMFrame_AddRef
(
*
frame
);
IDirect3DRMFrame_AddRef
(
*
frame
);
}
}
else
else
...
@@ -766,12 +765,9 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetRotation(IDirect3DRMFrame2 *iface
...
@@ -766,12 +765,9 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetRotation(IDirect3DRMFrame2 *iface
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetScene
(
IDirect3DRMFrame2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetScene
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
**
scene
)
LPDIRECT3DRMFRAME
*
frame
)
{
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
scene
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -894,14 +890,10 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_Load(IDirect3DRMFrame2* iface, LPVOI
...
@@ -894,14 +890,10 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_Load(IDirect3DRMFrame2* iface, LPVOI
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_LookAt
(
IDirect3DRMFrame2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_LookAt
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
target
,
LPDIRECT3DRMFRAME
target
,
IDirect3DRMFrame
*
reference
,
D3DRMFRAMECONSTRAINT
constraint
)
LPDIRECT3DRMFRAME
reference
,
D3DRMFRAMECONSTRAINT
constraint
)
{
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"iface %p, target %p, reference %p, constraint %#x stub!
\n
"
,
iface
,
target
,
reference
,
constraint
);
FIXME
(
"(%p/%p)->(%p,%p,%u): stub
\n
"
,
iface
,
This
,
target
,
reference
,
constraint
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -915,8 +907,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_Move(IDirect3DRMFrame2* iface, D3DVA
...
@@ -915,8 +907,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_Move(IDirect3DRMFrame2* iface, D3DVA
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_DeleteChild
(
IDirect3DRMFrame2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_DeleteChild
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
frame
)
LPDIRECT3DRMFRAME
frame
)
{
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMFrame3
*
child
;
IDirect3DRMFrame3
*
child
;
...
@@ -1141,38 +1132,28 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_SetMaterialMode(IDirect3DRMFrame2* i
...
@@ -1141,38 +1132,28 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_SetMaterialMode(IDirect3DRMFrame2* i
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetOrientation
(
IDirect3DRMFrame2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetOrientation
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
reference
,
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
)
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
)
{
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"iface %p, reference %p, dx %.8e, dy %.8e, dz %.8e, ux %.8e, uy %.8e, uz %.8e stub!
\n
"
,
iface
,
reference
,
dx
,
dy
,
dz
,
ux
,
uy
,
uz
);
FIXME
(
"(%p/%p)->(%p,%f,%f,%f,%f,%f,%f): stub
\n
"
,
iface
,
This
,
reference
,
dx
,
dy
,
dz
,
ux
,
uy
,
uz
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetPosition
(
IDirect3DRMFrame2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetPosition
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
reference
,
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
{
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"iface %p, reference %p, x %.8e, y %.8e, z %.8e stub!
\n
"
,
iface
,
reference
,
x
,
y
,
z
);
FIXME
(
"(%p/%p)->(%p,%f,%f,%f): stub
\n
"
,
iface
,
This
,
reference
,
x
,
y
,
z
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetRotation
(
IDirect3DRMFrame2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetRotation
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
reference
,
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
D3DVALUE
theta
)
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
D3DVALUE
theta
)
{
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"iface %p, reference %p, x %.8e, y %.8e, z %.8e, theta %.8e stub!
\n
"
,
iface
,
reference
,
x
,
y
,
z
,
theta
);
FIXME
(
"(%p/%p)->(%p,%f,%f,%f,%f): stub
\n
"
,
iface
,
This
,
reference
,
x
,
y
,
z
,
theta
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1207,14 +1188,11 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_SetTextureTopology(IDirect3DRMFrame2
...
@@ -1207,14 +1188,11 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_SetTextureTopology(IDirect3DRMFrame2
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetVelocity
(
IDirect3DRMFrame2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetVelocity
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
reference
,
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
BOOL
with_rotation
)
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
BOOL
with_rotation
)
{
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"iface %p, reference %p, x %.8e, y %.8e, z %.8e, with_rotation %#x stub!
\n
"
,
iface
,
reference
,
x
,
y
,
z
,
with_rotation
);
FIXME
(
"(%p/%p)->(%p,%f,%f,%f,%d): stub
\n
"
,
iface
,
This
,
reference
,
x
,
y
,
z
,
with_rotation
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1744,8 +1722,7 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_GetChildren(IDirect3DRMFrame3* iface
...
@@ -1744,8 +1722,7 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_GetChildren(IDirect3DRMFrame3* iface
if
(
This
->
nb_children
)
if
(
This
->
nb_children
)
{
{
ULONG
i
;
ULONG
i
;
obj
->
frames
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_children
*
sizeof
(
LPDIRECT3DRMFRAME
));
if
(
!
(
obj
->
frames
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_children
*
sizeof
(
*
obj
->
frames
))))
if
(
!
obj
->
frames
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
for
(
i
=
0
;
i
<
This
->
nb_children
;
i
++
)
for
(
i
=
0
;
i
<
This
->
nb_children
;
i
++
)
IDirect3DRMFrame3_QueryInterface
(
This
->
children
[
i
],
&
IID_IDirect3DRMFrame
,
(
void
**
)
&
obj
->
frames
[
i
]);
IDirect3DRMFrame3_QueryInterface
(
This
->
children
[
i
],
&
IID_IDirect3DRMFrame
,
(
void
**
)
&
obj
->
frames
[
i
]);
...
...
dlls/d3drm/light.c
View file @
c050cdb3
...
@@ -359,22 +359,16 @@ static D3DRMLIGHTTYPE WINAPI IDirect3DRMLightImpl_GetType(IDirect3DRMLight* ifac
...
@@ -359,22 +359,16 @@ static D3DRMLIGHTTYPE WINAPI IDirect3DRMLightImpl_GetType(IDirect3DRMLight* ifac
return
This
->
type
;
return
This
->
type
;
}
}
static
HRESULT
WINAPI
IDirect3DRMLightImpl_SetEnableFrame
(
IDirect3DRMLight
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMLightImpl_SetEnableFrame
(
IDirect3DRMLight
*
iface
,
IDirect3DRMFrame
*
frame
)
LPDIRECT3DRMFRAME
frame
)
{
{
IDirect3DRMLightImpl
*
This
=
impl_from_IDirect3DRMLight
(
iface
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
frame
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMLightImpl_GetEnableFrame
(
IDirect3DRMLight
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMLightImpl_GetEnableFrame
(
IDirect3DRMLight
*
iface
,
IDirect3DRMFrame
**
frame
)
LPDIRECT3DRMFRAME
*
frame
)
{
{
IDirect3DRMLightImpl
*
This
=
impl_from_IDirect3DRMLight
(
iface
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
frame
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
dlls/d3drm/meshbuilder.c
View file @
c050cdb3
...
@@ -603,12 +603,9 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder2Impl_AddMeshBuilder(IDirect3DRMMesh
...
@@ -603,12 +603,9 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder2Impl_AddMeshBuilder(IDirect3DRMMesh
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder2Impl_AddFrame
(
IDirect3DRMMeshBuilder2
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder2Impl_AddFrame
(
IDirect3DRMMeshBuilder2
*
iface
,
IDirect3DRMFrame
*
frame
)
LPDIRECT3DRMFRAME
pFrame
)
{
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
frame
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
pFrame
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
dlls/d3drm/tests/d3drm.c
View file @
c050cdb3
...
@@ -670,10 +670,10 @@ static void test_Frame(void)
...
@@ -670,10 +670,10 @@ static void test_Frame(void)
{
{
HRESULT
hr
;
HRESULT
hr
;
IDirect3DRM
*
d3drm
;
IDirect3DRM
*
d3drm
;
LPDIRECT3DRMFRAME
pFrameC
;
IDirect3DRMFrame
*
pFrameC
;
LPDIRECT3DRMFRAME
pFrameP1
;
IDirect3DRMFrame
*
pFrameP1
;
LPDIRECT3DRMFRAME
pFrameP2
;
IDirect3DRMFrame
*
pFrameP2
;
LPDIRECT3DRMFRAME
pFrameTmp
;
IDirect3DRMFrame
*
pFrameTmp
;
LPDIRECT3DRMFRAMEARRAY
pArray
;
LPDIRECT3DRMFRAMEARRAY
pArray
;
LPDIRECT3DRMMESHBUILDER
pMeshBuilder
;
LPDIRECT3DRMMESHBUILDER
pMeshBuilder
;
LPDIRECT3DRMVISUAL
pVisual1
;
LPDIRECT3DRMVISUAL
pVisual1
;
...
@@ -1007,7 +1007,7 @@ static void test_Viewport(void)
...
@@ -1007,7 +1007,7 @@ static void test_Viewport(void)
HRESULT
hr
;
HRESULT
hr
;
IDirect3DRM
*
d3drm
;
IDirect3DRM
*
d3drm
;
IDirect3DRMDevice
*
device
;
IDirect3DRMDevice
*
device
;
LPDIRECT3DRMFRAME
pF
rame
;
IDirect3DRMFrame
*
f
rame
;
IDirect3DRMViewport
*
viewport
;
IDirect3DRMViewport
*
viewport
;
GUID
driver
;
GUID
driver
;
HWND
window
;
HWND
window
;
...
@@ -1031,10 +1031,10 @@ static void test_Viewport(void)
...
@@ -1031,10 +1031,10 @@ static void test_Viewport(void)
hr
=
IDirect3DRM3_CreateDeviceFromClipper
(
d3drm
,
pClipper
,
&
driver
,
rc
.
right
,
rc
.
bottom
,
&
device
);
hr
=
IDirect3DRM3_CreateDeviceFromClipper
(
d3drm
,
pClipper
,
&
driver
,
rc
.
right
,
rc
.
bottom
,
&
device
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMDevice interface (hr = %x)
\n
"
,
hr
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMDevice interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRM_CreateFrame
(
d3drm
,
NULL
,
&
pF
rame
);
hr
=
IDirect3DRM_CreateFrame
(
d3drm
,
NULL
,
&
f
rame
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMFrame interface (hr = %x)
\n
"
,
hr
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMFrame interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRM_CreateViewport
(
d3drm
,
device
,
pF
rame
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
&
viewport
);
hr
=
IDirect3DRM_CreateViewport
(
d3drm
,
device
,
f
rame
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
&
viewport
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMViewport interface (hr = %x)
\n
"
,
hr
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMViewport interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRMViewport_GetClassName
(
viewport
,
NULL
,
cname
);
hr
=
IDirect3DRMViewport_GetClassName
(
viewport
,
NULL
,
cname
);
...
@@ -1051,7 +1051,7 @@ static void test_Viewport(void)
...
@@ -1051,7 +1051,7 @@ static void test_Viewport(void)
ok
(
!
strcmp
(
cname
,
"Viewport"
),
"Expected cname to be
\"
Viewport
\"
, but got
\"
%s
\"\n
"
,
cname
);
ok
(
!
strcmp
(
cname
,
"Viewport"
),
"Expected cname to be
\"
Viewport
\"
, but got
\"
%s
\"\n
"
,
cname
);
IDirect3DRMViewport_Release
(
viewport
);
IDirect3DRMViewport_Release
(
viewport
);
IDirect3DRMFrame_Release
(
pF
rame
);
IDirect3DRMFrame_Release
(
f
rame
);
IDirect3DRMDevice_Release
(
device
);
IDirect3DRMDevice_Release
(
device
);
IDirectDrawClipper_Release
(
pClipper
);
IDirectDrawClipper_Release
(
pClipper
);
...
@@ -1310,7 +1310,7 @@ static void test_frame_transform(void)
...
@@ -1310,7 +1310,7 @@ static void test_frame_transform(void)
{
{
HRESULT
hr
;
HRESULT
hr
;
IDirect3DRM
*
d3drm
;
IDirect3DRM
*
d3drm
;
LPDIRECT3DRMFRAME
frame
;
IDirect3DRMFrame
*
frame
;
D3DRMMATRIX4D
matrix
;
D3DRMMATRIX4D
matrix
;
hr
=
pDirect3DRMCreate
(
&
d3drm
);
hr
=
pDirect3DRMCreate
(
&
d3drm
);
...
...
dlls/d3drm/viewport.c
View file @
c050cdb3
...
@@ -205,12 +205,9 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_Clear(IDirect3DRMViewport* iface)
...
@@ -205,12 +205,9 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_Clear(IDirect3DRMViewport* iface)
return
D3DRM_OK
;
return
D3DRM_OK
;
}
}
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_Render
(
IDirect3DRMViewport
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_Render
(
IDirect3DRMViewport
*
iface
,
IDirect3DRMFrame
*
frame
)
LPDIRECT3DRMFRAME
frame
)
{
{
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport
(
iface
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
frame
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
return
D3DRM_OK
;
return
D3DRM_OK
;
}
}
...
@@ -251,12 +248,9 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_SetUniformScaling(IDirect3DRMViewp
...
@@ -251,12 +248,9 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_SetUniformScaling(IDirect3DRMViewp
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_SetCamera
(
IDirect3DRMViewport
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_SetCamera
(
IDirect3DRMViewport
*
iface
,
IDirect3DRMFrame
*
camera
)
LPDIRECT3DRMFRAME
frame
)
{
{
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport
(
iface
);
FIXME
(
"iface %p, camera %p stub!
\n
"
,
iface
,
camera
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -322,12 +316,9 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_SetPlane(IDirect3DRMViewport* ifac
...
@@ -322,12 +316,9 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_SetPlane(IDirect3DRMViewport* ifac
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_GetCamera
(
IDirect3DRMViewport
*
iface
,
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_GetCamera
(
IDirect3DRMViewport
*
iface
,
IDirect3DRMFrame
**
camera
)
LPDIRECT3DRMFRAME
*
frame
)
{
{
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport
(
iface
);
FIXME
(
"iface %p, camera %p stub!
\n
"
,
iface
,
camera
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
include/d3drm.h
View file @
c050cdb3
...
@@ -58,7 +58,7 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
...
@@ -58,7 +58,7 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DRM methods ***/
/*** IDirect3DRM methods ***/
STDMETHOD
(
CreateObject
)(
THIS_
REFCLSID
rclsid
,
LPUNKNOWN
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppvObj
)
PURE
;
STDMETHOD
(
CreateObject
)(
THIS_
REFCLSID
rclsid
,
LPUNKNOWN
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppvObj
)
PURE
;
STDMETHOD
(
CreateFrame
)(
THIS_
LPDIRECT3DRMFRAME
,
LPDIRECT3DRMFRAME
*
)
PURE
;
STDMETHOD
(
CreateFrame
)(
THIS_
IDirect3DRMFrame
*
parent
,
IDirect3DRMFrame
**
frame
)
PURE
;
STDMETHOD
(
CreateMesh
)(
THIS_
LPDIRECT3DRMMESH
*
)
PURE
;
STDMETHOD
(
CreateMesh
)(
THIS_
LPDIRECT3DRMMESH
*
)
PURE
;
STDMETHOD
(
CreateMeshBuilder
)(
THIS_
LPDIRECT3DRMMESHBUILDER
*
)
PURE
;
STDMETHOD
(
CreateMeshBuilder
)(
THIS_
LPDIRECT3DRMMESHBUILDER
*
)
PURE
;
STDMETHOD
(
CreateFace
)(
THIS_
LPDIRECT3DRMFACE
*
)
PURE
;
STDMETHOD
(
CreateFace
)(
THIS_
LPDIRECT3DRMFACE
*
)
PURE
;
...
@@ -81,9 +81,9 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
...
@@ -81,9 +81,9 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
D3DVALUE
nx
,
D3DVALUE
ny
,
D3DVALUE
nz
,
LPDIRECT3DRMVISUAL
*
)
PURE
;
D3DVALUE
nx
,
D3DVALUE
ny
,
D3DVALUE
nz
,
LPDIRECT3DRMVISUAL
*
)
PURE
;
STDMETHOD
(
CreateViewport
)(
THIS_
IDirect3DRMDevice
*
device
,
IDirect3DRMFrame
*
camera
,
STDMETHOD
(
CreateViewport
)(
THIS_
IDirect3DRMDevice
*
device
,
IDirect3DRMFrame
*
camera
,
DWORD
x
,
DWORD
y
,
DWORD
width
,
DWORD
height
,
IDirect3DRMViewport
**
viewport
)
PURE
;
DWORD
x
,
DWORD
y
,
DWORD
width
,
DWORD
height
,
IDirect3DRMViewport
**
viewport
)
PURE
;
STDMETHOD
(
CreateWrap
)(
THIS_
D3DRMWRAPTYPE
,
LPDIRECT3DRMFRAME
,
D3DVALUE
ox
,
D3DVALUE
oy
,
D3DVALUE
oz
,
STDMETHOD
(
CreateWrap
)(
THIS_
D3DRMWRAPTYPE
type
,
IDirect3DRMFrame
*
reference
,
D3DVALUE
ox
,
D3DVALUE
oy
,
D3DVALUE
oz
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
su
,
D3DVALUE
sv
,
LPDIRECT3DRMWRAP
*
)
PURE
;
D3DVALUE
su
,
D3DVALUE
sv
,
IDirect3DRMWrap
**
wrap
)
PURE
;
STDMETHOD
(
CreateUserVisual
)(
THIS_
D3DRMUSERVISUALCALLBACK
,
LPVOID
pArg
,
LPDIRECT3DRMUSERVISUAL
*
)
PURE
;
STDMETHOD
(
CreateUserVisual
)(
THIS_
D3DRMUSERVISUALCALLBACK
,
LPVOID
pArg
,
LPDIRECT3DRMUSERVISUAL
*
)
PURE
;
STDMETHOD
(
LoadTexture
)(
THIS_
const
char
*
,
LPDIRECT3DRMTEXTURE
*
)
PURE
;
STDMETHOD
(
LoadTexture
)(
THIS_
const
char
*
,
LPDIRECT3DRMTEXTURE
*
)
PURE
;
STDMETHOD
(
LoadTextureFromResource
)(
THIS_
HRSRC
rs
,
LPDIRECT3DRMTEXTURE
*
)
PURE
;
STDMETHOD
(
LoadTextureFromResource
)(
THIS_
HRSRC
rs
,
LPDIRECT3DRMTEXTURE
*
)
PURE
;
...
@@ -95,8 +95,9 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
...
@@ -95,8 +95,9 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
STDMETHOD
(
GetDevices
)(
THIS_
LPDIRECT3DRMDEVICEARRAY
*
)
PURE
;
STDMETHOD
(
GetDevices
)(
THIS_
LPDIRECT3DRMDEVICEARRAY
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
name
,
IDirect3DRMObject
**
object
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
name
,
IDirect3DRMObject
**
object
)
PURE
;
STDMETHOD
(
EnumerateObjects
)(
THIS_
D3DRMOBJECTCALLBACK
,
LPVOID
)
PURE
;
STDMETHOD
(
EnumerateObjects
)(
THIS_
D3DRMOBJECTCALLBACK
,
LPVOID
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
,
LPVOID
,
LPIID
*
,
DWORD
,
D3DRMLOADOPTIONS
,
D3DRMLOADCALLBACK
,
LPVOID
,
STDMETHOD
(
Load
)(
THIS_
void
*
source
,
void
*
object_id
,
IID
**
iids
,
DWORD
iid_count
,
D3DRMLOADOPTIONS
flags
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
,
LPDIRECT3DRMFRAME
)
PURE
;
D3DRMLOADCALLBACK
load_cb
,
void
*
load_ctx
,
D3DRMLOADTEXTURECALLBACK
load_tex_cb
,
void
*
load_tex_ctx
,
IDirect3DRMFrame
*
parent_frame
)
PURE
;
STDMETHOD
(
Tick
)(
THIS_
D3DVALUE
)
PURE
;
STDMETHOD
(
Tick
)(
THIS_
D3DVALUE
)
PURE
;
};
};
#undef INTERFACE
#undef INTERFACE
...
@@ -194,7 +195,7 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
...
@@ -194,7 +195,7 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DRM2 methods ***/
/*** IDirect3DRM2 methods ***/
STDMETHOD
(
CreateObject
)(
THIS_
REFCLSID
rclsid
,
LPUNKNOWN
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppvObj
)
PURE
;
STDMETHOD
(
CreateObject
)(
THIS_
REFCLSID
rclsid
,
LPUNKNOWN
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppvObj
)
PURE
;
STDMETHOD
(
CreateFrame
)(
THIS_
LPDIRECT3DRMFRAME
,
LPDIRECT3DRMFRAME2
*
)
PURE
;
STDMETHOD
(
CreateFrame
)(
THIS_
IDirect3DRMFrame
*
parent
,
IDirect3DRMFrame2
**
frame
)
PURE
;
STDMETHOD
(
CreateMesh
)(
THIS_
LPDIRECT3DRMMESH
*
)
PURE
;
STDMETHOD
(
CreateMesh
)(
THIS_
LPDIRECT3DRMMESH
*
)
PURE
;
STDMETHOD
(
CreateMeshBuilder
)(
THIS_
LPDIRECT3DRMMESHBUILDER2
*
)
PURE
;
STDMETHOD
(
CreateMeshBuilder
)(
THIS_
LPDIRECT3DRMMESHBUILDER2
*
)
PURE
;
STDMETHOD
(
CreateFace
)(
THIS_
LPDIRECT3DRMFACE
*
)
PURE
;
STDMETHOD
(
CreateFace
)(
THIS_
LPDIRECT3DRMFACE
*
)
PURE
;
...
@@ -217,9 +218,9 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
...
@@ -217,9 +218,9 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
D3DVALUE
nx
,
D3DVALUE
ny
,
D3DVALUE
nz
,
LPDIRECT3DRMVISUAL
*
)
PURE
;
D3DVALUE
nx
,
D3DVALUE
ny
,
D3DVALUE
nz
,
LPDIRECT3DRMVISUAL
*
)
PURE
;
STDMETHOD
(
CreateViewport
)(
THIS_
IDirect3DRMDevice
*
device
,
IDirect3DRMFrame
*
camera
,
STDMETHOD
(
CreateViewport
)(
THIS_
IDirect3DRMDevice
*
device
,
IDirect3DRMFrame
*
camera
,
DWORD
x
,
DWORD
y
,
DWORD
width
,
DWORD
height
,
IDirect3DRMViewport
**
viewport
)
PURE
;
DWORD
x
,
DWORD
y
,
DWORD
width
,
DWORD
height
,
IDirect3DRMViewport
**
viewport
)
PURE
;
STDMETHOD
(
CreateWrap
)(
THIS_
D3DRMWRAPTYPE
,
LPDIRECT3DRMFRAME
,
D3DVALUE
ox
,
D3DVALUE
oy
,
D3DVALUE
oz
,
STDMETHOD
(
CreateWrap
)(
THIS_
D3DRMWRAPTYPE
type
,
IDirect3DRMFrame
*
reference
,
D3DVALUE
ox
,
D3DVALUE
oy
,
D3DVALUE
oz
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
,
D3DVALUE
ou
,
D3DVALUE
ov
,
D3DVALUE
su
,
D3DVALUE
sv
,
LPDIRECT3DRMWRAP
*
)
PURE
;
D3DVALUE
su
,
D3DVALUE
sv
,
IDirect3DRMWrap
**
wrap
)
PURE
;
STDMETHOD
(
CreateUserVisual
)(
THIS_
D3DRMUSERVISUALCALLBACK
,
LPVOID
pArg
,
LPDIRECT3DRMUSERVISUAL
*
)
PURE
;
STDMETHOD
(
CreateUserVisual
)(
THIS_
D3DRMUSERVISUALCALLBACK
,
LPVOID
pArg
,
LPDIRECT3DRMUSERVISUAL
*
)
PURE
;
STDMETHOD
(
LoadTexture
)(
THIS_
const
char
*
,
LPDIRECT3DRMTEXTURE2
*
)
PURE
;
STDMETHOD
(
LoadTexture
)(
THIS_
const
char
*
,
LPDIRECT3DRMTEXTURE2
*
)
PURE
;
STDMETHOD
(
LoadTextureFromResource
)(
THIS_
HMODULE
hModule
,
LPCSTR
/* LPCTSTR */
strName
,
LPCSTR
/* LPCTSTR */
strType
,
LPDIRECT3DRMTEXTURE2
*
)
PURE
;
STDMETHOD
(
LoadTextureFromResource
)(
THIS_
HMODULE
hModule
,
LPCSTR
/* LPCTSTR */
strName
,
LPCSTR
/* LPCTSTR */
strType
,
LPDIRECT3DRMTEXTURE2
*
)
PURE
;
...
@@ -231,8 +232,9 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
...
@@ -231,8 +232,9 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
STDMETHOD
(
GetDevices
)(
THIS_
LPDIRECT3DRMDEVICEARRAY
*
)
PURE
;
STDMETHOD
(
GetDevices
)(
THIS_
LPDIRECT3DRMDEVICEARRAY
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
name
,
IDirect3DRMObject
**
object
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
name
,
IDirect3DRMObject
**
object
)
PURE
;
STDMETHOD
(
EnumerateObjects
)(
THIS_
D3DRMOBJECTCALLBACK
,
LPVOID
)
PURE
;
STDMETHOD
(
EnumerateObjects
)(
THIS_
D3DRMOBJECTCALLBACK
,
LPVOID
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
,
LPVOID
,
LPIID
*
,
DWORD
,
D3DRMLOADOPTIONS
,
D3DRMLOADCALLBACK
,
LPVOID
,
STDMETHOD
(
Load
)(
THIS_
void
*
source
,
void
*
object_id
,
IID
**
iids
,
DWORD
iid_count
,
D3DRMLOADOPTIONS
flags
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
,
LPDIRECT3DRMFRAME
)
PURE
;
D3DRMLOADCALLBACK
load_cb
,
void
*
load_ctx
,
D3DRMLOADTEXTURECALLBACK
load_tex_cb
,
void
*
load_tex_ctx
,
IDirect3DRMFrame
*
parent_frame
)
PURE
;
STDMETHOD
(
Tick
)(
THIS_
D3DVALUE
)
PURE
;
STDMETHOD
(
Tick
)(
THIS_
D3DVALUE
)
PURE
;
STDMETHOD
(
CreateProgressiveMesh
)(
THIS_
LPDIRECT3DRMPROGRESSIVEMESH
*
)
PURE
;
STDMETHOD
(
CreateProgressiveMesh
)(
THIS_
LPDIRECT3DRMPROGRESSIVEMESH
*
)
PURE
;
};
};
...
...
include/d3drmobj.h
View file @
c050cdb3
This diff is collapsed.
Click to expand it.
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