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
08cfdc11
Commit
08cfdc11
authored
Jun 04, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Jun 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement IDirect3DRMMeshBuilderX_SetColor and IDirect3DRMMeshBuilderX_SetColorRGB.
parent
2e3c0d86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
d3drm_private.h
dlls/d3drm/d3drm_private.h
+2
-0
light.c
dlls/d3drm/light.c
+0
-2
meshbuilder.c
dlls/d3drm/meshbuilder.c
+15
-8
No files found.
dlls/d3drm/d3drm_private.h
View file @
08cfdc11
...
...
@@ -24,6 +24,8 @@
#include "d3drm.h"
#include "dxfile.h"
#define D3DCOLOR_ARGB(a,r,g,b) ((D3DCOLOR)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff)))
HRESULT
Direct3DRM_create
(
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMDevice_create
(
REFIID
riid
,
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMFrame_create
(
REFIID
riid
,
IUnknown
*
parent_frame
,
IUnknown
**
ret_iface
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3drm/light.c
View file @
08cfdc11
...
...
@@ -29,8 +29,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3drm
);
#define D3DCOLOR_ARGB(a,r,g,b) ((D3DCOLOR)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff)))
typedef
struct
{
IDirect3DRMLight
IDirect3DRMLight_iface
;
LONG
ref
;
...
...
dlls/d3drm/meshbuilder.c
View file @
08cfdc11
...
...
@@ -74,6 +74,7 @@ typedef struct {
LPVOID
pFaceData
;
DWORD
nb_coords2d
;
Coords2d
*
pCoords2d
;
D3DCOLOR
color
;
IDirect3DRMMaterial2
*
material
;
}
IDirect3DRMMeshBuilderImpl
;
...
...
@@ -615,9 +616,9 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder2Impl_SetColorRGB(IDirect3DRMMeshBui
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
FIXME
(
"(%p)->(%f,%f,%f): stub
\n
"
,
This
,
red
,
green
,
blue
);
TRACE
(
"(%p)->(%f,%f,%f)
\n
"
,
This
,
red
,
green
,
blue
);
return
E_NOTIMPL
;
return
IDirect3DRMMeshBuilder3_SetColorRGB
(
&
This
->
IDirect3DRMMeshBuilder3_iface
,
red
,
green
,
blue
)
;
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder2Impl_SetColor
(
IDirect3DRMMeshBuilder2
*
iface
,
...
...
@@ -625,9 +626,9 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder2Impl_SetColor(IDirect3DRMMeshBuilde
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
FIXME
(
"(%p)->(%x): stub
\n
"
,
This
,
color
);
TRACE
(
"(%p)->(%x)
\n
"
,
This
,
color
);
return
E_NOTIMPL
;
return
IDirect3DRMMeshBuilder3_SetColor
(
&
This
->
IDirect3DRMMeshBuilder3_iface
,
color
)
;
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder2Impl_SetTexture
(
IDirect3DRMMeshBuilder2
*
iface
,
...
...
@@ -1702,9 +1703,13 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_SetColorRGB(IDirect3DRMMeshBui
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder3
(
iface
);
FIXME
(
"(%p)->(%f,%f,%f): stub
\n
"
,
This
,
red
,
green
,
blue
);
TRACE
(
"(%p)->(%f,%f,%f)
\n
"
,
This
,
red
,
green
,
blue
);
return
E_NOTIMPL
;
This
->
color
=
D3DCOLOR_ARGB
(
0xff
,
(
BYTE
)(
red
*
255
.
0
f
),
(
BYTE
)(
green
*
255
.
0
f
),
(
BYTE
)(
blue
*
255
.
0
f
));
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder3Impl_SetColor
(
IDirect3DRMMeshBuilder3
*
iface
,
...
...
@@ -1712,9 +1717,11 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_SetColor(IDirect3DRMMeshBuilde
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder3
(
iface
);
FIXME
(
"(%p)->(%x): stub
\n
"
,
This
,
color
);
TRACE
(
"(%p)->(%x)
\n
"
,
This
,
color
);
return
E_NOTIMPL
;
This
->
color
=
color
;
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder3Impl_SetTexture
(
IDirect3DRMMeshBuilder3
*
iface
,
...
...
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