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
390ba2c3
Commit
390ba2c3
authored
Oct 18, 2010
by
Matteo Bruni
Committed by
Alexandre Julliard
Nov 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement D3DXCreateCubeTexture.
parent
69337665
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+1
-1
texture.c
dlls/d3dx9_36/texture.c
+27
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
390ba2c3
...
...
@@ -34,7 +34,7 @@
@ stdcall D3DXCreateBox(ptr float float float ptr ptr)
@ stdcall D3DXCreateBuffer(long ptr)
@ stub D3DXCreateCompressedAnimationSet
@ st
ub D3DXCreateCubeTexture
@ st
dcall D3DXCreateCubeTexture(ptr long long long long long ptr)
@ stub D3DXCreateCubeTextureFromFileA
@ stub D3DXCreateCubeTextureFromFileExA
@ stub D3DXCreateCubeTextureFromFileExW
...
...
dlls/d3dx9_36/texture.c
View file @
390ba2c3
...
...
@@ -804,3 +804,30 @@ HRESULT WINAPI D3DXCreateTextureFromResourceExW(LPDIRECT3DDEVICE9 device,
return
D3DXERR_INVALIDDATA
;
}
HRESULT
WINAPI
D3DXCreateCubeTexture
(
LPDIRECT3DDEVICE9
device
,
UINT
size
,
UINT
miplevels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
,
LPDIRECT3DCUBETEXTURE9
*
texture
)
{
HRESULT
hr
;
TRACE
(
"(%p, %u, %u, %#x, %#x, %#x, %p)
\n
"
,
device
,
size
,
miplevels
,
usage
,
format
,
pool
,
texture
);
if
(
!
device
||
!
texture
)
return
D3DERR_INVALIDCALL
;
hr
=
D3DXCheckCubeTextureRequirements
(
device
,
&
size
,
&
miplevels
,
usage
,
&
format
,
pool
);
if
(
FAILED
(
hr
))
{
TRACE
(
"D3DXCheckCubeTextureRequirements failed
\n
"
);
return
hr
;
}
return
IDirect3DDevice9_CreateCubeTexture
(
device
,
size
,
miplevels
,
usage
,
format
,
pool
,
texture
,
NULL
);
}
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