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
6ea59b91
Commit
6ea59b91
authored
Aug 22, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Get rid of the ID3DXMatrixStack_Vtbl forward declaration.
parent
c2eabf9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
36 deletions
+32
-36
math.c
dlls/d3dx9_36/math.c
+32
-36
No files found.
dlls/d3dx9_36/math.c
View file @
6ea59b91
...
...
@@ -35,8 +35,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3dx
);
static
const
ID3DXMatrixStackVtbl
ID3DXMatrixStack_Vtbl
;
struct
ID3DXMatrixStackImpl
{
ID3DXMatrixStack
ID3DXMatrixStack_iface
;
...
...
@@ -47,6 +45,7 @@ struct ID3DXMatrixStackImpl
D3DXMATRIX
*
stack
;
};
static
const
unsigned
int
INITIAL_STACK_SIZE
=
32
;
/*_________________D3DXColor____________________*/
...
...
@@ -930,40 +929,6 @@ D3DXMATRIX* WINAPI D3DXMatrixTranspose(D3DXMATRIX *pout, const D3DXMATRIX *pm)
/*_________________D3DXMatrixStack____________________*/
static
const
unsigned
int
INITIAL_STACK_SIZE
=
32
;
HRESULT
WINAPI
D3DXCreateMatrixStack
(
DWORD
flags
,
ID3DXMatrixStack
**
ppstack
)
{
struct
ID3DXMatrixStackImpl
*
object
;
TRACE
(
"flags %#x, ppstack %p
\n
"
,
flags
,
ppstack
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
object
==
NULL
)
{
*
ppstack
=
NULL
;
return
E_OUTOFMEMORY
;
}
object
->
ID3DXMatrixStack_iface
.
lpVtbl
=
&
ID3DXMatrixStack_Vtbl
;
object
->
ref
=
1
;
object
->
stack
=
HeapAlloc
(
GetProcessHeap
(),
0
,
INITIAL_STACK_SIZE
*
sizeof
(
*
object
->
stack
));
if
(
!
object
->
stack
)
{
HeapFree
(
GetProcessHeap
(),
0
,
object
);
*
ppstack
=
NULL
;
return
E_OUTOFMEMORY
;
}
object
->
current
=
0
;
object
->
stack_size
=
INITIAL_STACK_SIZE
;
D3DXMatrixIdentity
(
&
object
->
stack
[
0
]);
TRACE
(
"Created matrix stack %p
\n
"
,
object
);
*
ppstack
=
&
object
->
ID3DXMatrixStack_iface
;
return
D3D_OK
;
}
static
inline
struct
ID3DXMatrixStackImpl
*
impl_from_ID3DXMatrixStack
(
ID3DXMatrixStack
*
iface
)
{
...
...
@@ -1243,6 +1208,37 @@ static const ID3DXMatrixStackVtbl ID3DXMatrixStack_Vtbl =
ID3DXMatrixStackImpl_GetTop
};
HRESULT
WINAPI
D3DXCreateMatrixStack
(
DWORD
flags
,
ID3DXMatrixStack
**
stack
)
{
struct
ID3DXMatrixStackImpl
*
object
;
TRACE
(
"flags %#x, stack %p.
\n
"
,
flags
,
stack
);
if
(
!
(
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
))))
{
*
stack
=
NULL
;
return
E_OUTOFMEMORY
;
}
object
->
ID3DXMatrixStack_iface
.
lpVtbl
=
&
ID3DXMatrixStack_Vtbl
;
object
->
ref
=
1
;
if
(
!
(
object
->
stack
=
HeapAlloc
(
GetProcessHeap
(),
0
,
INITIAL_STACK_SIZE
*
sizeof
(
*
object
->
stack
))))
{
HeapFree
(
GetProcessHeap
(),
0
,
object
);
*
stack
=
NULL
;
return
E_OUTOFMEMORY
;
}
object
->
current
=
0
;
object
->
stack_size
=
INITIAL_STACK_SIZE
;
D3DXMatrixIdentity
(
&
object
->
stack
[
0
]);
TRACE
(
"Created matrix stack %p.
\n
"
,
object
);
*
stack
=
&
object
->
ID3DXMatrixStack_iface
;
return
D3D_OK
;
}
/*_________________D3DXPLANE________________*/
D3DXPLANE
*
WINAPI
D3DXPlaneFromPointNormal
(
D3DXPLANE
*
pout
,
const
D3DXVECTOR3
*
pvpoint
,
const
D3DXVECTOR3
*
pvnormal
)
...
...
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