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
03b256b1
Commit
03b256b1
authored
Apr 17, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a parameter for surface type selection.
parent
3d29c5ad
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
device.c
dlls/d3d8/device.c
+1
-1
device.c
dlls/d3d9/device.c
+1
-1
device.c
dlls/wined3d/device.c
+1
-1
wined3d_interface.h
include/wine/wined3d_interface.h
+2
-2
wined3d_types.h
include/wine/wined3d_types.h
+7
-0
No files found.
dlls/d3d8/device.c
View file @
03b256b1
...
...
@@ -493,7 +493,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateSurface(LPDIRECT3DDEVICE8 iface, UINT
TRACE
(
"(%p) : w(%d) h(%d) fmt(%d) surf@%p
\n
"
,
This
,
Width
,
Height
,
Format
,
*
ppSurface
);
hrc
=
IWineD3DDevice_CreateSurface
(
This
->
WineD3DDevice
,
Width
,
Height
,
Format
,
Lockable
,
Discard
,
Level
,
&
object
->
wineD3DSurface
,
Type
,
Usage
,
(
WINED3DPOOL
)
Pool
,
MultiSample
,
MultisampleQuality
,
NULL
,(
IUnknown
*
)
object
);
hrc
=
IWineD3DDevice_CreateSurface
(
This
->
WineD3DDevice
,
Width
,
Height
,
Format
,
Lockable
,
Discard
,
Level
,
&
object
->
wineD3DSurface
,
Type
,
Usage
,
(
WINED3DPOOL
)
Pool
,
MultiSample
,
MultisampleQuality
,
NULL
,
SURFACE_OPENGL
,
(
IUnknown
*
)
object
);
if
(
hrc
!=
D3D_OK
||
NULL
==
object
->
wineD3DSurface
)
{
/* free up object */
FIXME
(
"(%p) call to IWineD3DDevice_CreateSurface failed
\n
"
,
This
);
...
...
dlls/d3d9/device.c
View file @
03b256b1
...
...
@@ -271,7 +271,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateSurface(LPDIRECT3DDEVICE9 iface, UINT
TRACE
(
"(%p) : w(%d) h(%d) fmt(%d) surf@%p
\n
"
,
This
,
Width
,
Height
,
Format
,
*
ppSurface
);
hrc
=
IWineD3DDevice_CreateSurface
(
This
->
WineD3DDevice
,
Width
,
Height
,
Format
,
Lockable
,
Discard
,
Level
,
&
object
->
wineD3DSurface
,
Type
,
Usage
,
(
WINED3DPOOL
)
Pool
,
MultiSample
,
MultisampleQuality
,
pSharedHandle
,(
IUnknown
*
)
object
);
hrc
=
IWineD3DDevice_CreateSurface
(
This
->
WineD3DDevice
,
Width
,
Height
,
Format
,
Lockable
,
Discard
,
Level
,
&
object
->
wineD3DSurface
,
Type
,
Usage
,
(
WINED3DPOOL
)
Pool
,
MultiSample
,
MultisampleQuality
,
pSharedHandle
,
SURFACE_OPENGL
,
(
IUnknown
*
)
object
);
if
(
hrc
!=
D3D_OK
||
NULL
==
object
->
wineD3DSurface
)
{
...
...
dlls/wined3d/device.c
View file @
03b256b1
...
...
@@ -632,7 +632,7 @@ If this flag is set, the contents of the depth stencil buffer will be invalid af
******************************** */
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateSurface
(
IWineD3DDevice
*
iface
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
WINED3DRESOURCETYPE
Type
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
WINED3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
{
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateSurface
(
IWineD3DDevice
*
iface
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
WINED3DRESOURCETYPE
Type
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
WINED3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
HANDLE
*
pSharedHandle
,
WINED3DSURFTYPE
Impl
,
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
object
;
/*NOTE: impl ref allowed since this is a create function */
unsigned
int
pow2Width
,
pow2Height
;
...
...
include/wine/wined3d_interface.h
View file @
03b256b1
...
...
@@ -356,7 +356,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
STDMETHOD
(
CreateVertexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
DWORD
FVF
,
WINED3DPOOL
Pool
,
struct
IWineD3DVertexBuffer
**
ppVertexBuffer
,
HANDLE
*
sharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateIndexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
struct
IWineD3DIndexBuffer
**
ppIndexBuffer
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateStateBlock
)(
THIS_
WINED3DSTATEBLOCKTYPE
Type
,
struct
IWineD3DStateBlock
**
ppStateBlock
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
struct
IWineD3DSurface
**
ppSurface
,
WINED3DRESOURCETYPE
Type
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
WINED3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
struct
IWineD3DSurface
**
ppSurface
,
WINED3DRESOURCETYPE
Type
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
WINED3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
HANDLE
*
pSharedHandle
,
WINED3DSURFTYPE
Impl
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
struct
IWineD3DTexture
**
ppTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
,
D3DCB_CREATESURFACEFN
pFn
)
PURE
;
STDMETHOD
(
CreateVolumeTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
struct
IWineD3DVolumeTexture
**
ppVolumeTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
,
D3DCB_CREATEVOLUMEFN
pFn
)
PURE
;
STDMETHOD
(
CreateVolume
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Depth
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
struct
IWineD3DVolume
**
ppVolumeTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
PURE
;
...
...
@@ -499,7 +499,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
#define IWineD3DDevice_CreateVertexBuffer(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f,g)
#define IWineD3DDevice_CreateIndexBuffer(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f,g)
#define IWineD3DDevice_CreateStateBlock(p,a,b,c) (p)->lpVtbl->CreateStateBlock(p,a,b,c)
#define IWineD3DDevice_CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n
) (p)->lpVtbl->CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n
)
#define IWineD3DDevice_CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n
,o) (p)->lpVtbl->CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o
)
#define IWineD3DDevice_CreateTexture(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h,i,j)
#define IWineD3DDevice_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i,j,k)
#define IWineD3DDevice_CreateVolume(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolume(p,a,b,c,d,e,f,g,h,i)
...
...
include/wine/wined3d_types.h
View file @
03b256b1
...
...
@@ -923,6 +923,13 @@ typedef enum _WINED3DDECLUSAGE {
#define WINED3DUSAGE_AUTOGENMIPMAP 0x00000400L
#define WINED3DUSAGE_DMAP 0x00004000L
typedef
enum
_WINED3DSURFTYPE
{
SURFACE_UNKNOWN
=
0
,
/* Default / Unknown surface type */
SURFACE_OPENGL
,
/* OpenGL surface: Renders using libGL, needed for 3D */
SURFACE_GDI
,
/* User surface. No 3D, DirectDraw rendering with GDI */
SURFACE_XRENDER
/* Future dreams: Use XRENDER / EXA / whatever stuff */
}
WINED3DSURFTYPE
;
#define WINED3DPRASTERCAPS_DITHER 0x00000001L
#define WINED3DPRASTERCAPS_ROP2 0x00000002L
#define WINED3DPRASTERCAPS_XOR 0x00000004L
...
...
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