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
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
151 additions
and
185 deletions
+151
-185
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
+40
-40
No files found.
dlls/d3drm/d3drm.c
View file @
c050cdb3
...
...
@@ -137,13 +137,12 @@ static HRESULT WINAPI IDirect3DRMImpl_CreateObject(IDirect3DRM* iface, REFCLSID
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
(
"(%p/%p)->(%p,%p)
\n
"
,
iface
,
This
,
parent_frame
,
frame
);
TRACE
(
"iface %p, parent_frame %p, frame %p.
\n
"
,
iface
,
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
)
...
...
@@ -300,11 +299,14 @@ static HRESULT WINAPI IDirect3DRMImpl_CreateViewport(IDirect3DRM *iface, IDirect
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
(
"(%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
);
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
"
,
iface
,
type
,
frame
,
ox
,
oy
,
oz
,
dx
,
dy
,
dz
,
ux
,
uy
,
uz
,
ou
,
ov
,
su
,
sv
,
w
rap
);
return
E_NOTIMPL
;
}
...
...
@@ -407,20 +409,26 @@ static HRESULT WINAPI IDirect3DRMImpl_EnumerateObjects(IDirect3DRM* iface, D3DRM
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
);
LPDIRECT3DRMFRAME3
pParentF
rame3
=
NULL
;
IDirect3DRMImpl
*
d3drm
=
impl_from_IDirect3DRM
(
iface
);
IDirect3DRMFrame3
*
parent_f
rame3
=
NULL
;
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
)
hr
=
IDirect3DRMFrame_QueryInterface
(
p
ParentFrame
,
&
IID_IDirect3DRMFrame3
,
(
void
**
)
&
pParentF
rame3
);
if
(
p
arent_f
rame
)
hr
=
IDirect3DRMFrame_QueryInterface
(
p
arent_frame
,
&
IID_IDirect3DRMFrame3
,
(
void
**
)
&
parent_f
rame3
);
if
(
SUCCEEDED
(
hr
))
hr
=
IDirect3DRM3_Load
(
&
This
->
IDirect3DRM3_iface
,
pObjSource
,
pObjID
,
ppGUIDs
,
nb_GUIDs
,
LOFlags
,
LoadProc
,
pArgLP
,
LoadTextureProc
,
pArgLTP
,
pParentFrame3
);
if
(
pParentFrame3
)
IDirect3DRMFrame3_Release
(
pParentFrame3
);
hr
=
IDirect3DRM3_Load
(
&
d3drm
->
IDirect3DRM3_iface
,
source
,
object_id
,
iids
,
iid_count
,
flags
,
load_cb
,
load_ctx
,
load_tex_cb
,
load_tex_ctx
,
parent_frame3
);
if
(
parent_frame3
)
IDirect3DRMFrame3_Release
(
parent_frame3
);
return
hr
;
}
...
...
@@ -507,8 +515,8 @@ static HRESULT WINAPI IDirect3DRM2Impl_CreateObject(IDirect3DRM2* iface, REFCLSI
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateFrame
(
IDirect3DRM2
*
iface
,
LPDIRECT3DRMFRAME
parent_fram
e
,
LPDIRECT3DRMFRAME2
*
frame
)
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateFrame
(
IDirect3DRM2
*
ifac
e
,
IDirect3DRMFrame
*
parent_frame
,
IDirect3DRMFrame2
**
frame
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
...
...
@@ -680,18 +688,14 @@ static HRESULT WINAPI IDirect3DRM2Impl_CreateViewport(IDirect3DRM2 *iface, IDire
return
Direct3DRMViewport_create
(
&
IID_IDirect3DRMViewport
,
(
IUnknown
**
)
viewport
);
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateWrap
(
IDirect3DRM2
*
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
IDirect3DRM2Impl_CreateWrap
(
IDirect3DRM2
*
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_IDirect3DRM2
(
iface
);
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
,
ppWrap
);
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
"
,
iface
,
type
,
frame
,
ox
,
oy
,
oz
,
dx
,
dy
,
dz
,
ux
,
uy
,
uz
,
ou
,
ov
,
su
,
sv
,
wrap
);
return
E_NOTIMPL
;
}
...
...
@@ -802,25 +806,26 @@ static HRESULT WINAPI IDirect3DRM2Impl_EnumerateObjects(IDirect3DRM2* iface, D3D
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_Load
(
IDirect3DRM2
*
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
IDirect3DRM2Impl_Load
(
IDirect3DRM2
*
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_IDirect3DRM2
(
iface
);
LPDIRECT3DRMFRAME3
pParentF
rame3
=
NULL
;
IDirect3DRMImpl
*
d3drm
=
impl_from_IDirect3DRM2
(
iface
);
IDirect3DRMFrame3
*
parent_f
rame3
=
NULL
;
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
)
hr
=
IDirect3DRMFrame_QueryInterface
(
p
ParentFrame
,
&
IID_IDirect3DRMFrame3
,
(
void
**
)
&
pParentF
rame3
);
if
(
p
arent_f
rame
)
hr
=
IDirect3DRMFrame_QueryInterface
(
p
arent_frame
,
&
IID_IDirect3DRMFrame3
,
(
void
**
)
&
parent_f
rame3
);
if
(
SUCCEEDED
(
hr
))
hr
=
IDirect3DRM3_Load
(
&
This
->
IDirect3DRM3_iface
,
pObjSource
,
pObjID
,
ppGUIDs
,
nb_GUIDs
,
LOFlags
,
LoadProc
,
pArgLP
,
LoadTextureProc
,
pArgLTP
,
pParentFrame3
);
if
(
pParentFrame3
)
IDirect3DRMFrame3_Release
(
pParentFrame3
);
hr
=
IDirect3DRM3_Load
(
&
d3drm
->
IDirect3DRM3_iface
,
source
,
object_id
,
iids
,
iid_count
,
flags
,
load_cb
,
load_ctx
,
load_tex_cb
,
load_tex_ctx
,
parent_frame3
);
if
(
parent_frame3
)
IDirect3DRMFrame3_Release
(
parent_frame3
);
return
hr
;
}
...
...
dlls/d3drm/frame.c
View file @
c050cdb3
...
...
@@ -62,7 +62,7 @@ typedef struct {
IDirect3DRMFrameArray
IDirect3DRMFrameArray_iface
;
LONG
ref
;
ULONG
size
;
LPDIRECT3DRMFRAME
*
frames
;
IDirect3DRMFrame
**
frames
;
}
IDirect3DRMFrameArrayImpl
;
typedef
struct
{
...
...
@@ -161,7 +161,8 @@ static DWORD WINAPI IDirect3DRMFrameArrayImpl_GetSize(IDirect3DRMFrameArray* ifa
}
/*** 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
;
...
...
@@ -591,8 +592,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetClassName(IDirect3DRMFrame2* ifac
}
/*** IDirect3DRMFrame methods ***/
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_AddChild
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
child
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_AddChild
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
child
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMFrame3
*
frame
;
...
...
@@ -723,8 +723,7 @@ static D3DRMMATERIALMODE WINAPI IDirect3DRMFrame2Impl_GetMaterialMode(IDirect3DR
return
D3DRMMATERIAL_FROMPARENT
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetParent
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
*
frame
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetParent
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
**
frame
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
...
...
@@ -735,7 +734,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetParent(IDirect3DRMFrame2* iface,
if
(
This
->
parent
)
{
*
frame
=
(
LPDIRECT3DRMFRAME
)
&
This
->
parent
->
IDirect3DRMFrame2_iface
;
*
frame
=
(
IDirect3DRMFrame
*
)
&
This
->
parent
->
IDirect3DRMFrame2_iface
;
IDirect3DRMFrame_AddRef
(
*
frame
);
}
else
...
...
@@ -766,12 +765,9 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_GetRotation(IDirect3DRMFrame2 *iface
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetScene
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
*
frame
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_GetScene
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
**
scene
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
scene
);
return
E_NOTIMPL
;
}
...
...
@@ -894,14 +890,10 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_Load(IDirect3DRMFrame2* iface, LPVOI
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_LookAt
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
target
,
LPDIRECT3DRMFRAME
reference
,
D3DRMFRAMECONSTRAINT
constraint
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_LookAt
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
target
,
IDirect3DRMFrame
*
reference
,
D3DRMFRAMECONSTRAINT
constraint
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"(%p/%p)->(%p,%p,%u): stub
\n
"
,
iface
,
This
,
target
,
reference
,
constraint
);
FIXME
(
"iface %p, target %p, reference %p, constraint %#x stub!
\n
"
,
iface
,
target
,
reference
,
constraint
);
return
E_NOTIMPL
;
}
...
...
@@ -915,8 +907,7 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_Move(IDirect3DRMFrame2* iface, D3DVA
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_DeleteChild
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
frame
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_DeleteChild
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
frame
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
IDirect3DRMFrame3
*
child
;
...
...
@@ -1141,38 +1132,28 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_SetMaterialMode(IDirect3DRMFrame2* i
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetOrientation
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetOrientation
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
reference
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"(%p/%p)->(%p,%f,%f,%f,%f,%f,%f): stub
\n
"
,
iface
,
This
,
reference
,
dx
,
dy
,
dz
,
ux
,
uy
,
uz
);
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
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetPosition
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetPosition
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"(%p/%p)->(%p,%f,%f,%f): stub
\n
"
,
iface
,
This
,
reference
,
x
,
y
,
z
);
FIXME
(
"iface %p, reference %p, x %.8e, y %.8e, z %.8e stub!
\n
"
,
iface
,
reference
,
x
,
y
,
z
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetRotation
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
D3DVALUE
theta
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetRotation
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
D3DVALUE
theta
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"(%p/%p)->(%p,%f,%f,%f,%f): stub
\n
"
,
iface
,
This
,
reference
,
x
,
y
,
z
,
theta
);
FIXME
(
"iface %p, reference %p, x %.8e, y %.8e, z %.8e, theta %.8e stub!
\n
"
,
iface
,
reference
,
x
,
y
,
z
,
theta
);
return
E_NOTIMPL
;
}
...
...
@@ -1207,14 +1188,11 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_SetTextureTopology(IDirect3DRMFrame2
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetVelocity
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
BOOL
with_rotation
)
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_SetVelocity
(
IDirect3DRMFrame2
*
iface
,
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
BOOL
with_rotation
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"(%p/%p)->(%p,%f,%f,%f,%d): stub
\n
"
,
iface
,
This
,
reference
,
x
,
y
,
z
,
with_rotation
);
FIXME
(
"iface %p, reference %p, x %.8e, y %.8e, z %.8e, with_rotation %#x stub!
\n
"
,
iface
,
reference
,
x
,
y
,
z
,
with_rotation
);
return
E_NOTIMPL
;
}
...
...
@@ -1744,8 +1722,7 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_GetChildren(IDirect3DRMFrame3* iface
if
(
This
->
nb_children
)
{
ULONG
i
;
obj
->
frames
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_children
*
sizeof
(
LPDIRECT3DRMFRAME
));
if
(
!
obj
->
frames
)
if
(
!
(
obj
->
frames
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_children
*
sizeof
(
*
obj
->
frames
))))
return
E_OUTOFMEMORY
;
for
(
i
=
0
;
i
<
This
->
nb_children
;
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
return
This
->
type
;
}
static
HRESULT
WINAPI
IDirect3DRMLightImpl_SetEnableFrame
(
IDirect3DRMLight
*
iface
,
LPDIRECT3DRMFRAME
frame
)
static
HRESULT
WINAPI
IDirect3DRMLightImpl_SetEnableFrame
(
IDirect3DRMLight
*
iface
,
IDirect3DRMFrame
*
frame
)
{
IDirect3DRMLightImpl
*
This
=
impl_from_IDirect3DRMLight
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
frame
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMLightImpl_GetEnableFrame
(
IDirect3DRMLight
*
iface
,
LPDIRECT3DRMFRAME
*
frame
)
static
HRESULT
WINAPI
IDirect3DRMLightImpl_GetEnableFrame
(
IDirect3DRMLight
*
iface
,
IDirect3DRMFrame
**
frame
)
{
IDirect3DRMLightImpl
*
This
=
impl_from_IDirect3DRMLight
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
frame
);
return
E_NOTIMPL
;
}
...
...
dlls/d3drm/meshbuilder.c
View file @
c050cdb3
...
...
@@ -603,12 +603,9 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder2Impl_AddMeshBuilder(IDirect3DRMMesh
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder2Impl_AddFrame
(
IDirect3DRMMeshBuilder2
*
iface
,
LPDIRECT3DRMFRAME
pFrame
)
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder2Impl_AddFrame
(
IDirect3DRMMeshBuilder2
*
iface
,
IDirect3DRMFrame
*
frame
)
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
pFrame
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
frame
);
return
E_NOTIMPL
;
}
...
...
dlls/d3drm/tests/d3drm.c
View file @
c050cdb3
...
...
@@ -670,10 +670,10 @@ static void test_Frame(void)
{
HRESULT
hr
;
IDirect3DRM
*
d3drm
;
LPDIRECT3DRMFRAME
pFrameC
;
LPDIRECT3DRMFRAME
pFrameP1
;
LPDIRECT3DRMFRAME
pFrameP2
;
LPDIRECT3DRMFRAME
pFrameTmp
;
IDirect3DRMFrame
*
pFrameC
;
IDirect3DRMFrame
*
pFrameP1
;
IDirect3DRMFrame
*
pFrameP2
;
IDirect3DRMFrame
*
pFrameTmp
;
LPDIRECT3DRMFRAMEARRAY
pArray
;
LPDIRECT3DRMMESHBUILDER
pMeshBuilder
;
LPDIRECT3DRMVISUAL
pVisual1
;
...
...
@@ -1007,7 +1007,7 @@ static void test_Viewport(void)
HRESULT
hr
;
IDirect3DRM
*
d3drm
;
IDirect3DRMDevice
*
device
;
LPDIRECT3DRMFRAME
pF
rame
;
IDirect3DRMFrame
*
f
rame
;
IDirect3DRMViewport
*
viewport
;
GUID
driver
;
HWND
window
;
...
...
@@ -1031,10 +1031,10 @@ static void test_Viewport(void)
hr
=
IDirect3DRM3_CreateDeviceFromClipper
(
d3drm
,
pClipper
,
&
driver
,
rc
.
right
,
rc
.
bottom
,
&
device
);
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
);
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
);
hr
=
IDirect3DRMViewport_GetClassName
(
viewport
,
NULL
,
cname
);
...
...
@@ -1051,7 +1051,7 @@ static void test_Viewport(void)
ok
(
!
strcmp
(
cname
,
"Viewport"
),
"Expected cname to be
\"
Viewport
\"
, but got
\"
%s
\"\n
"
,
cname
);
IDirect3DRMViewport_Release
(
viewport
);
IDirect3DRMFrame_Release
(
pF
rame
);
IDirect3DRMFrame_Release
(
f
rame
);
IDirect3DRMDevice_Release
(
device
);
IDirectDrawClipper_Release
(
pClipper
);
...
...
@@ -1310,7 +1310,7 @@ static void test_frame_transform(void)
{
HRESULT
hr
;
IDirect3DRM
*
d3drm
;
LPDIRECT3DRMFRAME
frame
;
IDirect3DRMFrame
*
frame
;
D3DRMMATRIX4D
matrix
;
hr
=
pDirect3DRMCreate
(
&
d3drm
);
...
...
dlls/d3drm/viewport.c
View file @
c050cdb3
...
...
@@ -205,12 +205,9 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_Clear(IDirect3DRMViewport* iface)
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_Render
(
IDirect3DRMViewport
*
iface
,
LPDIRECT3DRMFRAME
frame
)
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_Render
(
IDirect3DRMViewport
*
iface
,
IDirect3DRMFrame
*
frame
)
{
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
FIXME
(
"iface %p, frame %p stub!
\n
"
,
iface
,
frame
);
return
D3DRM_OK
;
}
...
...
@@ -251,12 +248,9 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_SetUniformScaling(IDirect3DRMViewp
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_SetCamera
(
IDirect3DRMViewport
*
iface
,
LPDIRECT3DRMFRAME
frame
)
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_SetCamera
(
IDirect3DRMViewport
*
iface
,
IDirect3DRMFrame
*
camera
)
{
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
FIXME
(
"iface %p, camera %p stub!
\n
"
,
iface
,
camera
);
return
E_NOTIMPL
;
}
...
...
@@ -322,12 +316,9 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_SetPlane(IDirect3DRMViewport* ifac
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_GetCamera
(
IDirect3DRMViewport
*
iface
,
LPDIRECT3DRMFRAME
*
frame
)
static
HRESULT
WINAPI
IDirect3DRMViewportImpl_GetCamera
(
IDirect3DRMViewport
*
iface
,
IDirect3DRMFrame
**
camera
)
{
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
frame
);
FIXME
(
"iface %p, camera %p stub!
\n
"
,
iface
,
camera
);
return
E_NOTIMPL
;
}
...
...
include/d3drm.h
View file @
c050cdb3
...
...
@@ -58,7 +58,7 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DRM methods ***/
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
(
CreateMeshBuilder
)(
THIS_
LPDIRECT3DRMMESHBUILDER
*
)
PURE
;
STDMETHOD
(
CreateFace
)(
THIS_
LPDIRECT3DRMFACE
*
)
PURE
;
...
...
@@ -81,9 +81,9 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
D3DVALUE
nx
,
D3DVALUE
ny
,
D3DVALUE
nz
,
LPDIRECT3DRMVISUAL
*
)
PURE
;
STDMETHOD
(
CreateViewport
)(
THIS_
IDirect3DRMDevice
*
device
,
IDirect3DRMFrame
*
camera
,
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
su
,
D3DVALUE
sv
,
LPDIRECT3DRMWRAP
*
)
PURE
;
D3DVALUE
su
,
D3DVALUE
sv
,
IDirect3DRMWrap
**
wrap
)
PURE
;
STDMETHOD
(
CreateUserVisual
)(
THIS_
D3DRMUSERVISUALCALLBACK
,
LPVOID
pArg
,
LPDIRECT3DRMUSERVISUAL
*
)
PURE
;
STDMETHOD
(
LoadTexture
)(
THIS_
const
char
*
,
LPDIRECT3DRMTEXTURE
*
)
PURE
;
STDMETHOD
(
LoadTextureFromResource
)(
THIS_
HRSRC
rs
,
LPDIRECT3DRMTEXTURE
*
)
PURE
;
...
...
@@ -95,8 +95,9 @@ DECLARE_INTERFACE_(IDirect3DRM,IUnknown)
STDMETHOD
(
GetDevices
)(
THIS_
LPDIRECT3DRMDEVICEARRAY
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
name
,
IDirect3DRMObject
**
object
)
PURE
;
STDMETHOD
(
EnumerateObjects
)(
THIS_
D3DRMOBJECTCALLBACK
,
LPVOID
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
,
LPVOID
,
LPIID
*
,
DWORD
,
D3DRMLOADOPTIONS
,
D3DRMLOADCALLBACK
,
LPVOID
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
,
LPDIRECT3DRMFRAME
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
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
)
PURE
;
STDMETHOD
(
Tick
)(
THIS_
D3DVALUE
)
PURE
;
};
#undef INTERFACE
...
...
@@ -194,7 +195,7 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DRM2 methods ***/
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
(
CreateMeshBuilder
)(
THIS_
LPDIRECT3DRMMESHBUILDER2
*
)
PURE
;
STDMETHOD
(
CreateFace
)(
THIS_
LPDIRECT3DRMFACE
*
)
PURE
;
...
...
@@ -217,9 +218,9 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
D3DVALUE
nx
,
D3DVALUE
ny
,
D3DVALUE
nz
,
LPDIRECT3DRMVISUAL
*
)
PURE
;
STDMETHOD
(
CreateViewport
)(
THIS_
IDirect3DRMDevice
*
device
,
IDirect3DRMFrame
*
camera
,
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
su
,
D3DVALUE
sv
,
LPDIRECT3DRMWRAP
*
)
PURE
;
D3DVALUE
su
,
D3DVALUE
sv
,
IDirect3DRMWrap
**
wrap
)
PURE
;
STDMETHOD
(
CreateUserVisual
)(
THIS_
D3DRMUSERVISUALCALLBACK
,
LPVOID
pArg
,
LPDIRECT3DRMUSERVISUAL
*
)
PURE
;
STDMETHOD
(
LoadTexture
)(
THIS_
const
char
*
,
LPDIRECT3DRMTEXTURE2
*
)
PURE
;
STDMETHOD
(
LoadTextureFromResource
)(
THIS_
HMODULE
hModule
,
LPCSTR
/* LPCTSTR */
strName
,
LPCSTR
/* LPCTSTR */
strType
,
LPDIRECT3DRMTEXTURE2
*
)
PURE
;
...
...
@@ -231,8 +232,9 @@ DECLARE_INTERFACE_(IDirect3DRM2,IUnknown)
STDMETHOD
(
GetDevices
)(
THIS_
LPDIRECT3DRMDEVICEARRAY
*
)
PURE
;
STDMETHOD
(
GetNamedObject
)(
THIS_
const
char
*
name
,
IDirect3DRMObject
**
object
)
PURE
;
STDMETHOD
(
EnumerateObjects
)(
THIS_
D3DRMOBJECTCALLBACK
,
LPVOID
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
,
LPVOID
,
LPIID
*
,
DWORD
,
D3DRMLOADOPTIONS
,
D3DRMLOADCALLBACK
,
LPVOID
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
,
LPDIRECT3DRMFRAME
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
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
)
PURE
;
STDMETHOD
(
Tick
)(
THIS_
D3DVALUE
)
PURE
;
STDMETHOD
(
CreateProgressiveMesh
)(
THIS_
LPDIRECT3DRMPROGRESSIVEMESH
*
)
PURE
;
};
...
...
include/d3drmobj.h
View file @
c050cdb3
...
...
@@ -155,7 +155,7 @@ typedef struct IDirect3DRMClippedVisual *LPDIRECT3DRMCLIPPEDVISUAL, **LPLPDIRE
******************************************************************** */
typedef
void
(
__cdecl
*
D3DRMOBJECTCALLBACK
)(
struct
IDirect3DRMObject
*
obj
,
void
*
arg
);
typedef
void
(
__cdecl
*
D3DRMFRAMEMOVECALLBACK
)(
LPDIRECT3DRMFRAME
obj
,
LPVOID
arg
,
D3DVALUE
delta
);
typedef
void
(
__cdecl
*
D3DRMFRAMEMOVECALLBACK
)(
struct
IDirect3DRMFrame
*
frame
,
void
*
ctx
,
D3DVALUE
delta
);
typedef
void
(
__cdecl
*
D3DRMFRAME3MOVECALLBACK
)(
LPDIRECT3DRMFRAME3
obj
,
LPVOID
arg
,
D3DVALUE
delta
);
typedef
void
(
__cdecl
*
D3DRMUPDATECALLBACK
)(
struct
IDirect3DRMDevice
*
device
,
void
*
ctx
,
int
count
,
D3DRECT
*
rects
);
typedef
void
(
__cdecl
*
D3DRMDEVICE3UPDATECALLBACK
)(
struct
IDirect3DRMDevice3
*
device
,
void
*
ctx
,
...
...
@@ -811,19 +811,19 @@ DECLARE_INTERFACE_(IDirect3DRMViewport,IDirect3DRMObject)
STDMETHOD
(
Init
)
(
THIS_
IDirect3DRMDevice
*
device
,
struct
IDirect3DRMFrame
*
camera
,
DWORD
x
,
DWORD
y
,
DWORD
width
,
DWORD
height
)
PURE
;
STDMETHOD
(
Clear
)(
THIS
)
PURE
;
STDMETHOD
(
Render
)(
THIS_
LPDIRECT3DRMFRAME
)
PURE
;
STDMETHOD
(
Render
)(
THIS_
struct
IDirect3DRMFrame
*
frame
)
PURE
;
STDMETHOD
(
SetFront
)(
THIS_
D3DVALUE
)
PURE
;
STDMETHOD
(
SetBack
)(
THIS_
D3DVALUE
)
PURE
;
STDMETHOD
(
SetField
)(
THIS_
D3DVALUE
)
PURE
;
STDMETHOD
(
SetUniformScaling
)(
THIS_
BOOL
)
PURE
;
STDMETHOD
(
SetCamera
)(
THIS_
LPDIRECT3DRMFRAME
)
PURE
;
STDMETHOD
(
SetCamera
)(
THIS_
struct
IDirect3DRMFrame
*
camera
)
PURE
;
STDMETHOD
(
SetProjection
)(
THIS_
D3DRMPROJECTIONTYPE
)
PURE
;
STDMETHOD
(
Transform
)(
THIS_
D3DRMVECTOR4D
*
d
,
D3DVECTOR
*
s
)
PURE
;
STDMETHOD
(
InverseTransform
)(
THIS_
D3DVECTOR
*
d
,
D3DRMVECTOR4D
*
s
)
PURE
;
STDMETHOD
(
Configure
)(
THIS_
LONG
x
,
LONG
y
,
DWORD
width
,
DWORD
height
)
PURE
;
STDMETHOD
(
ForceUpdate
)(
THIS_
DWORD
x1
,
DWORD
y1
,
DWORD
x2
,
DWORD
y2
)
PURE
;
STDMETHOD
(
SetPlane
)(
THIS_
D3DVALUE
left
,
D3DVALUE
right
,
D3DVALUE
bottom
,
D3DVALUE
top
)
PURE
;
STDMETHOD
(
GetCamera
)(
THIS_
LPDIRECT3DRMFRAME
*
)
PURE
;
STDMETHOD
(
GetCamera
)(
THIS_
struct
IDirect3DRMFrame
**
camera
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DRMDevice
**
device
)
PURE
;
STDMETHOD
(
GetPlane
)(
THIS_
D3DVALUE
*
left
,
D3DVALUE
*
right
,
D3DVALUE
*
bottom
,
D3DVALUE
*
top
)
PURE
;
STDMETHOD
(
Pick
)(
THIS_
LONG
x
,
LONG
y
,
LPDIRECT3DRMPICKEDARRAY
*
return_visuals
)
PURE
;
...
...
@@ -1096,7 +1096,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame,IDirect3DRMVisual)
STDMETHOD
(
GetName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
STDMETHOD
(
GetClassName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
/*** IDirect3DRMFrame methods ***/
STDMETHOD
(
AddChild
)(
THIS_
LPDIRECT3DRMFRAME
child
)
PURE
;
STDMETHOD
(
AddChild
)(
THIS_
IDirect3DRMFrame
*
child
)
PURE
;
STDMETHOD
(
AddLight
)(
THIS_
LPDIRECT3DRMLIGHT
)
PURE
;
STDMETHOD
(
AddMoveCallback
)(
THIS_
D3DRMFRAMEMOVECALLBACK
,
VOID
*
arg
)
PURE
;
STDMETHOD
(
AddTransform
)(
THIS_
D3DRMCOMBINETYPE
,
D3DRMMATRIX4D
)
PURE
;
...
...
@@ -1108,10 +1108,10 @@ DECLARE_INTERFACE_(IDirect3DRMFrame,IDirect3DRMVisual)
STDMETHOD_
(
D3DCOLOR
,
GetColor
)(
THIS
)
PURE
;
STDMETHOD
(
GetLights
)(
THIS_
LPDIRECT3DRMLIGHTARRAY
*
lights
)
PURE
;
STDMETHOD_
(
D3DRMMATERIALMODE
,
GetMaterialMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetParent
)(
THIS_
LPDIRECT3DRMFRAME
*
)
PURE
;
STDMETHOD
(
GetParent
)(
THIS_
IDirect3DRMFrame
**
parent
)
PURE
;
STDMETHOD
(
GetPosition
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
return_position
)
PURE
;
STDMETHOD
(
GetRotation
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
axis
,
D3DVALUE
*
return_theta
)
PURE
;
STDMETHOD
(
GetScene
)(
THIS_
LPDIRECT3DRMFRAME
*
)
PURE
;
STDMETHOD
(
GetScene
)(
THIS_
IDirect3DRMFrame
**
scene
)
PURE
;
STDMETHOD_
(
D3DRMSORTMODE
,
GetSortMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
LPDIRECT3DRMTEXTURE
*
)
PURE
;
STDMETHOD
(
GetTransform
)(
THIS_
D3DRMMATRIX4D
return_matrix
)
PURE
;
...
...
@@ -1122,9 +1122,10 @@ DECLARE_INTERFACE_(IDirect3DRMFrame,IDirect3DRMVisual)
STDMETHOD
(
InverseTransform
)(
THIS_
D3DVECTOR
*
d
,
D3DVECTOR
*
s
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
filename
,
LPVOID
name
,
D3DRMLOADOPTIONS
loadflags
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
pArg
)
PURE
;
STDMETHOD
(
LookAt
)(
THIS_
LPDIRECT3DRMFRAME
target
,
LPDIRECT3DRMFRAME
reference
,
D3DRMFRAMECONSTRAINT
)
PURE
;
STDMETHOD
(
LookAt
)(
THIS_
IDirect3DRMFrame
*
target
,
IDirect3DRMFrame
*
reference
,
D3DRMFRAMECONSTRAINT
constraint
)
PURE
;
STDMETHOD
(
Move
)(
THIS_
D3DVALUE
delta
)
PURE
;
STDMETHOD
(
DeleteChild
)(
THIS_
LPDIRECT3DRMFRAME
)
PURE
;
STDMETHOD
(
DeleteChild
)(
THIS_
IDirect3DRMFrame
*
child
)
PURE
;
STDMETHOD
(
DeleteLight
)(
THIS_
LPDIRECT3DRMLIGHT
)
PURE
;
STDMETHOD
(
DeleteMoveCallback
)(
THIS_
D3DRMFRAMEMOVECALLBACK
,
VOID
*
arg
)
PURE
;
STDMETHOD
(
DeleteVisual
)(
THIS_
LPDIRECT3DRMVISUAL
)
PURE
;
...
...
@@ -1146,14 +1147,15 @@ DECLARE_INTERFACE_(IDirect3DRMFrame,IDirect3DRMVisual)
STDMETHOD
(
SetColorRGB
)(
THIS_
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
)
PURE
;
STDMETHOD_
(
D3DRMZBUFFERMODE
,
GetZbufferMode
)(
THIS
)
PURE
;
STDMETHOD
(
SetMaterialMode
)(
THIS_
D3DRMMATERIALMODE
)
PURE
;
STDMETHOD
(
SetOrientation
)(
THIS_
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
)
PURE
;
STDMETHOD
(
SetPosition
)(
THIS_
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
PURE
;
STDMETHOD
(
SetRotation
)(
THIS_
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
D3DVALUE
theta
)
PURE
;
STDMETHOD
(
SetOrientation
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
)
PURE
;
STDMETHOD
(
SetPosition
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
PURE
;
STDMETHOD
(
SetRotation
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
D3DVALUE
theta
)
PURE
;
STDMETHOD
(
SetSortMode
)(
THIS_
D3DRMSORTMODE
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
LPDIRECT3DRMTEXTURE
)
PURE
;
STDMETHOD
(
SetTextureTopology
)(
THIS_
BOOL
wrap_u
,
BOOL
wrap_v
)
PURE
;
STDMETHOD
(
SetVelocity
)(
THIS_
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
BOOL
with_rotation
)
PURE
;
STDMETHOD
(
SetVelocity
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
BOOL
with_rotation
)
PURE
;
STDMETHOD
(
SetZbufferMode
)(
THIS_
D3DRMZBUFFERMODE
)
PURE
;
STDMETHOD
(
Transform
)(
THIS_
D3DVECTOR
*
d
,
D3DVECTOR
*
s
)
PURE
;
};
...
...
@@ -1327,7 +1329,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame2,IDirect3DRMFrame)
STDMETHOD
(
GetName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
STDMETHOD
(
GetClassName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
/*** IDirect3DRMFrame methods ***/
STDMETHOD
(
AddChild
)(
THIS_
LPDIRECT3DRMFRAME
child
)
PURE
;
STDMETHOD
(
AddChild
)(
THIS_
IDirect3DRMFrame
*
child
)
PURE
;
STDMETHOD
(
AddLight
)(
THIS_
LPDIRECT3DRMLIGHT
)
PURE
;
STDMETHOD
(
AddMoveCallback
)(
THIS_
D3DRMFRAMEMOVECALLBACK
,
VOID
*
arg
)
PURE
;
STDMETHOD
(
AddTransform
)(
THIS_
D3DRMCOMBINETYPE
,
D3DRMMATRIX4D
)
PURE
;
...
...
@@ -1339,10 +1341,10 @@ DECLARE_INTERFACE_(IDirect3DRMFrame2,IDirect3DRMFrame)
STDMETHOD_
(
D3DCOLOR
,
GetColor
)(
THIS
)
PURE
;
STDMETHOD
(
GetLights
)(
THIS_
LPDIRECT3DRMLIGHTARRAY
*
lights
)
PURE
;
STDMETHOD_
(
D3DRMMATERIALMODE
,
GetMaterialMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetParent
)(
THIS_
LPDIRECT3DRMFRAME
*
)
PURE
;
STDMETHOD
(
GetParent
)(
THIS_
IDirect3DRMFrame
**
parent
)
PURE
;
STDMETHOD
(
GetPosition
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
return_position
)
PURE
;
STDMETHOD
(
GetRotation
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVECTOR
*
axis
,
D3DVALUE
*
return_theta
)
PURE
;
STDMETHOD
(
GetScene
)(
THIS_
LPDIRECT3DRMFRAME
*
)
PURE
;
STDMETHOD
(
GetScene
)(
THIS_
IDirect3DRMFrame
**
scene
)
PURE
;
STDMETHOD_
(
D3DRMSORTMODE
,
GetSortMode
)(
THIS
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
LPDIRECT3DRMTEXTURE
*
)
PURE
;
STDMETHOD
(
GetTransform
)(
THIS_
D3DRMMATRIX4D
return_matrix
)
PURE
;
...
...
@@ -1353,9 +1355,10 @@ DECLARE_INTERFACE_(IDirect3DRMFrame2,IDirect3DRMFrame)
STDMETHOD
(
InverseTransform
)(
THIS_
D3DVECTOR
*
d
,
D3DVECTOR
*
s
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
filename
,
LPVOID
name
,
D3DRMLOADOPTIONS
loadflags
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
pArg
)
PURE
;
STDMETHOD
(
LookAt
)(
THIS_
LPDIRECT3DRMFRAME
target
,
LPDIRECT3DRMFRAME
reference
,
D3DRMFRAMECONSTRAINT
)
PURE
;
STDMETHOD
(
LookAt
)(
THIS_
IDirect3DRMFrame
*
target
,
IDirect3DRMFrame
*
reference
,
D3DRMFRAMECONSTRAINT
constraint
)
PURE
;
STDMETHOD
(
Move
)(
THIS_
D3DVALUE
delta
)
PURE
;
STDMETHOD
(
DeleteChild
)(
THIS_
LPDIRECT3DRMFRAME
)
PURE
;
STDMETHOD
(
DeleteChild
)(
THIS_
IDirect3DRMFrame
*
child
)
PURE
;
STDMETHOD
(
DeleteLight
)(
THIS_
LPDIRECT3DRMLIGHT
)
PURE
;
STDMETHOD
(
DeleteMoveCallback
)(
THIS_
D3DRMFRAMEMOVECALLBACK
,
VOID
*
arg
)
PURE
;
STDMETHOD
(
DeleteVisual
)(
THIS_
LPDIRECT3DRMVISUAL
)
PURE
;
...
...
@@ -1377,14 +1380,15 @@ DECLARE_INTERFACE_(IDirect3DRMFrame2,IDirect3DRMFrame)
STDMETHOD
(
SetColorRGB
)(
THIS_
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
)
PURE
;
STDMETHOD_
(
D3DRMZBUFFERMODE
,
GetZbufferMode
)(
THIS
)
PURE
;
STDMETHOD
(
SetMaterialMode
)(
THIS_
D3DRMMATERIALMODE
)
PURE
;
STDMETHOD
(
SetOrientation
)(
THIS_
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
)
PURE
;
STDMETHOD
(
SetPosition
)(
THIS_
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
PURE
;
STDMETHOD
(
SetRotation
)(
THIS_
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
D3DVALUE
theta
)
PURE
;
STDMETHOD
(
SetOrientation
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
)
PURE
;
STDMETHOD
(
SetPosition
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
PURE
;
STDMETHOD
(
SetRotation
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
D3DVALUE
theta
)
PURE
;
STDMETHOD
(
SetSortMode
)(
THIS_
D3DRMSORTMODE
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
LPDIRECT3DRMTEXTURE
)
PURE
;
STDMETHOD
(
SetTextureTopology
)(
THIS_
BOOL
wrap_u
,
BOOL
wrap_v
)
PURE
;
STDMETHOD
(
SetVelocity
)(
THIS_
LPDIRECT3DRMFRAME
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
BOOL
with_rotation
)
PURE
;
STDMETHOD
(
SetVelocity
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
,
BOOL
with_rotation
)
PURE
;
STDMETHOD
(
SetZbufferMode
)(
THIS_
D3DRMZBUFFERMODE
)
PURE
;
STDMETHOD
(
Transform
)(
THIS_
D3DVECTOR
*
d
,
D3DVECTOR
*
s
)
PURE
;
/*** IDirect3DRMFrame2 methods ***/
...
...
@@ -1400,7 +1404,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrame2,IDirect3DRMFrame)
STDMETHOD
(
SetAxes
)(
THIS_
D3DVALUE
dx
,
D3DVALUE
dy
,
D3DVALUE
dz
,
D3DVALUE
ux
,
D3DVALUE
uy
,
D3DVALUE
uz
);
STDMETHOD
(
SetInheritAxes
)(
THIS_
BOOL
inherit_from_parent
);
STDMETHOD
(
SetMaterial
)(
THIS_
LPDIRECT3DRMMATERIAL
)
PURE
;
STDMETHOD
(
SetQuaternion
)(
THIS_
LPDIRECT3DRMFRAME
reference
,
D3DRMQUATERNION
*
q
)
PURE
;
STDMETHOD
(
SetQuaternion
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DRMQUATERNION
*
q
)
PURE
;
STDMETHOD
(
RayPick
)(
THIS_
IDirect3DRMFrame
*
reference
,
D3DRMRAY
*
ray
,
DWORD
flags
,
struct
IDirect3DRMPicked2Array
**
return_visuals
)
PURE
;
STDMETHOD
(
Save
)(
THIS_
LPCSTR
filename
,
D3DRMXOFFORMAT
d3dFormat
,
D3DRMSAVEOPTIONS
d3dSaveFlags
);
...
...
@@ -2506,7 +2510,7 @@ DECLARE_INTERFACE_(IDirect3DRMMeshBuilder,IDirect3DRMVisual)
STDMETHOD_
(
D3DRMCOLORSOURCE
,
GetColorSource
)(
THIS
)
PURE
;
STDMETHOD
(
AddMesh
)(
THIS_
LPDIRECT3DRMMESH
)
PURE
;
STDMETHOD
(
AddMeshBuilder
)(
THIS_
LPDIRECT3DRMMESHBUILDER
)
PURE
;
STDMETHOD
(
AddFrame
)(
THIS_
LPDIRECT3DRMFRAME
)
PURE
;
STDMETHOD
(
AddFrame
)(
THIS_
IDirect3DRMFrame
*
frame
)
PURE
;
STDMETHOD
(
AddFace
)(
THIS_
LPDIRECT3DRMFACE
)
PURE
;
STDMETHOD
(
AddFaces
)(
THIS_
DWORD
vcount
,
D3DVECTOR
*
vertices
,
DWORD
ncount
,
D3DVECTOR
*
normals
,
DWORD
*
data
,
LPDIRECT3DRMFACEARRAY
*
)
PURE
;
...
...
@@ -2677,7 +2681,7 @@ DECLARE_INTERFACE_(IDirect3DRMMeshBuilder2,IDirect3DRMMeshBuilder)
STDMETHOD_
(
D3DRMCOLORSOURCE
,
GetColorSource
)(
THIS
)
PURE
;
STDMETHOD
(
AddMesh
)(
THIS_
LPDIRECT3DRMMESH
)
PURE
;
STDMETHOD
(
AddMeshBuilder
)(
THIS_
LPDIRECT3DRMMESHBUILDER
)
PURE
;
STDMETHOD
(
AddFrame
)(
THIS_
LPDIRECT3DRMFRAME
)
PURE
;
STDMETHOD
(
AddFrame
)(
THIS_
IDirect3DRMFrame
*
frame
)
PURE
;
STDMETHOD
(
AddFace
)(
THIS_
LPDIRECT3DRMFACE
)
PURE
;
STDMETHOD
(
AddFaces
)(
THIS_
DWORD
vcount
,
D3DVECTOR
*
vertices
,
DWORD
ncount
,
D3DVECTOR
*
normals
,
DWORD
*
data
,
LPDIRECT3DRMFACEARRAY
*
)
PURE
;
...
...
@@ -3100,8 +3104,8 @@ DECLARE_INTERFACE_(IDirect3DRMLight,IDirect3DRMObject)
STDMETHOD_
(
D3DVALUE
,
GetQuadraticAttenuation
)(
THIS
)
PURE
;
STDMETHOD_
(
D3DCOLOR
,
GetColor
)(
THIS
)
PURE
;
STDMETHOD_
(
D3DRMLIGHTTYPE
,
GetType
)(
THIS
)
PURE
;
STDMETHOD
(
SetEnableFrame
)(
THIS_
LPDIRECT3DRMFRAME
)
PURE
;
STDMETHOD
(
GetEnableFrame
)(
THIS_
LPDIRECT3DRMFRAME
*
)
PURE
;
STDMETHOD
(
SetEnableFrame
)(
THIS_
IDirect3DRMFrame
*
frame
)
PURE
;
STDMETHOD
(
GetEnableFrame
)(
THIS_
IDirect3DRMFrame
**
frame
)
PURE
;
};
#undef INTERFACE
...
...
@@ -3567,14 +3571,9 @@ DECLARE_INTERFACE_(IDirect3DRMWrap, IDirect3DRMObject)
STDMETHOD
(
GetName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
STDMETHOD
(
GetClassName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
/*** IDirect3DRMWrap methods ***/
STDMETHOD
(
Init
)
(
THIS_
D3DRMWRAPTYPE
,
LPDIRECT3DRMFRAME
ref
,
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
)
PURE
;
STDMETHOD
(
Init
)(
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
su
,
D3DVALUE
sv
)
PURE
;
STDMETHOD
(
Apply
)(
THIS_
IDirect3DRMObject
*
object
)
PURE
;
STDMETHOD
(
ApplyRelative
)(
THIS_
IDirect3DRMFrame
*
frame
,
IDirect3DRMObject
*
object
)
PURE
;
};
...
...
@@ -3795,7 +3794,7 @@ DECLARE_INTERFACE_(IDirect3DRMAnimation, IDirect3DRMObject)
STDMETHOD
(
AddPositionKey
)(
THIS_
D3DVALUE
time
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
PURE
;
STDMETHOD
(
AddScaleKey
)(
THIS_
D3DVALUE
time
,
D3DVALUE
x
,
D3DVALUE
y
,
D3DVALUE
z
)
PURE
;
STDMETHOD
(
DeleteKey
)(
THIS_
D3DVALUE
time
)
PURE
;
STDMETHOD
(
SetFrame
)(
THIS_
LPDIRECT3DRMFRAME
frame
)
PURE
;
STDMETHOD
(
SetFrame
)(
THIS_
IDirect3DRMFrame
*
frame
)
PURE
;
STDMETHOD
(
SetTime
)(
THIS_
D3DVALUE
time
)
PURE
;
STDMETHOD_
(
D3DRMANIMATIONOPTIONS
,
GetOptions
)(
THIS
)
PURE
;
};
...
...
@@ -3964,7 +3963,8 @@ DECLARE_INTERFACE_(IDirect3DRMAnimationSet, IDirect3DRMObject)
STDMETHOD
(
GetClassName
)(
THIS_
LPDWORD
lpdwSize
,
LPSTR
lpName
)
PURE
;
/*** IDirect3DRMAnimationSet methods ***/
STDMETHOD
(
AddAnimation
)(
THIS_
LPDIRECT3DRMANIMATION
aid
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
LPVOID
filename
,
LPVOID
name
,
D3DRMLOADOPTIONS
loadflags
,
D3DRMLOADTEXTURECALLBACK
,
LPVOID
lpArg
,
LPDIRECT3DRMFRAME
parent
)
PURE
;
STDMETHOD
(
Load
)(
THIS_
void
*
filename
,
void
*
name
,
D3DRMLOADOPTIONS
flags
,
D3DRMLOADTEXTURECALLBACK
cb
,
void
*
ctx
,
IDirect3DRMFrame
*
parent
)
PURE
;
STDMETHOD
(
DeleteAnimation
)(
THIS_
LPDIRECT3DRMANIMATION
aid
)
PURE
;
STDMETHOD
(
SetTime
)(
THIS_
D3DVALUE
time
)
PURE
;
};
...
...
@@ -4256,7 +4256,7 @@ DECLARE_INTERFACE_(IDirect3DRMFrameArray, IDirect3DRMArray)
/*** IDirect3DRMArray methods ***/
STDMETHOD_
(
DWORD
,
GetSize
)(
THIS
)
PURE
;
/*** IDirect3DRMFrameArray methods ***/
STDMETHOD
(
GetElement
)(
THIS_
DWORD
index
,
LPDIRECT3DRMFRAME
*
)
PURE
;
STDMETHOD
(
GetElement
)(
THIS_
DWORD
index
,
IDirect3DRMFrame
**
element
)
PURE
;
};
#undef INTERFACE
...
...
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