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
9558fd0f
Commit
9558fd0f
authored
Dec 17, 2007
by
David Adam
Committed by
Alexandre Julliard
Dec 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Add definition for MatrixStack.
parent
83c0b13c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
1 deletion
+64
-1
dx8guid.c
dlls/dxguid/dx8guid.c
+1
-1
d3dx8math.h
include/d3dx8math.h
+63
-0
No files found.
dlls/dxguid/dx8guid.c
View file @
9558fd0f
...
...
@@ -31,4 +31,4 @@
#include "initguid.h"
#include "d3d8.h"
#include "d3dx8
core
.h"
#include "d3dx8.h"
include/d3dx8math.h
View file @
9558fd0f
...
...
@@ -30,6 +30,11 @@
#define D3DXToRadian(degree) ((degree) * (D3DX_PI / 180.0f))
#define D3DXToDegree(radian) ((radian) * (180.0f / D3DX_PI))
typedef
struct
ID3DXMatrixStack
*
LPD3DXMATRIXSTACK
;
DEFINE_GUID
(
IID_ID3DXMatrixStack
,
0xe3357330
,
0xcc5e
,
0x11d2
,
0xa4
,
0x34
,
0x0
,
0xa0
,
0xc9
,
0x6
,
0x29
,
0xa8
);
typedef
struct
D3DXVECTOR2
{
#ifdef __cplusplus
...
...
@@ -345,6 +350,64 @@ D3DXVECTOR4* WINAPI D3DXVec4Transform(D3DXVECTOR4 *pout, CONST D3DXVECTOR4 *pv,
}
#endif
#define INTERFACE ID3DXMatrixStack
DECLARE_INTERFACE_
(
ID3DXMatrixStack
,
IUnknown
)
{
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
,
LPVOID
*
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
STDMETHOD
(
Pop
)(
THIS
)
PURE
;
STDMETHOD
(
Push
)(
THIS
)
PURE
;
STDMETHOD
(
LoadIdentity
)(
THIS
)
PURE
;
STDMETHOD
(
LoadMatrix
)(
THIS_
CONST
LPD3DXMATRIX
)
PURE
;
STDMETHOD
(
MultMatrix
)(
THIS_
CONST
LPD3DXMATRIX
)
PURE
;
STDMETHOD
(
MultMatrixLocal
)(
THIS_
CONST
LPD3DXMATRIX
)
PURE
;
STDMETHOD
(
RotateAxis
)(
THIS_
CONST
LPD3DXVECTOR3
,
FLOAT
)
PURE
;
STDMETHOD
(
RotateAxisLocal
)(
THIS_
CONST
LPD3DXVECTOR3
,
FLOAT
)
PURE
;
STDMETHOD
(
RotateYawPitchRoll
)(
THIS_
FLOAT
,
FLOAT
,
FLOAT
)
PURE
;
STDMETHOD
(
RotateYawPitchRollLocal
)(
THIS_
FLOAT
,
FLOAT
,
FLOAT
)
PURE
;
STDMETHOD
(
Scale
)(
THIS_
FLOAT
,
FLOAT
,
FLOAT
)
PURE
;
STDMETHOD
(
ScaleLocal
)(
THIS_
FLOAT
,
FLOAT
,
FLOAT
)
PURE
;
STDMETHOD
(
Translate
)(
THIS_
FLOAT
,
FLOAT
,
FLOAT
)
PURE
;
STDMETHOD
(
TranslateLocal
)(
THIS_
FLOAT
,
FLOAT
,
FLOAT
)
PURE
;
STDMETHOD_
(
LPD3DXMATRIX
,
GetTop
)(
THIS
)
PURE
;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
#define ID3DXMatrixStack_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define ID3DXMatrixStack_AddRef(p) (p)->lpVtbl->AddRef(p)
#define ID3DXMatrixStack_Release(p) (p)->lpVtbl->Release(p)
#define ID3DXMAtrixStack_Pop(p) (p)->lpVtbl->Pop(p)
#define ID3DXMatrixStack_Push(p) (p)->lpVtbl->Push(p)
#define ID3DXMatrixStack_LoadIdentity(p) (p)->lpVtbl->LoadIdentity(p)
#define ID3DXMatrixStack_LoadMatrix(p,a) (p)->lpVtbl->LoadMatrix(p,a)
#define ID3DXMatrixStack_MultMatrix(p,a) (p)->lpVtbl->MultMatrix(p,a)
#define ID3DXMatrixStack_MultMatrixLocal(p,a) (p)->lpVtbl->MultMatrixLocal(p,a)
#define ID3DXMatrixStack_RotateAxis(p,a,b) (p)->lpVtbl->RotateAxis(p,a,b)
#define ID3DXMatrixStack_RotateAxisLocal(p,a,b) (p)->lpVtbl->RotateAxisLocal(p,a,b)
#define ID3DXMatrixStack_RotateYawPitchRoll(p,a,b,c) (p)->lpVtbl->RotateYawPitchRoll(p,a,b,c)
#define ID3DXMatrixStack_RotateYawPitchRollLocal(p,a,b,c) (p)->lpVtbl->RotateYawPitchRollLocal(p,a,b,c)
#define ID3DXMatrixStack_Scale(p,a,b,c) (p)->lpVtbl->Scale(p,a,b,c)
#define ID3DXMatrixStack_ScaleLocal(p,a,b,c) (p)->lpVtbl->ScaleLocal(p,a,b,c)
#define ID3DXMatrixStack_Translate(p,a,b,c) (p)->lpVtbl->Translate(p,a,b,c)
#define ID3DXMatrixStack_TranslateLocal(p,a,b,c) (p)->lpVtbl->TranslateLocal(p,a,b,c)
#define ID3DXMatrixStack_GetTop(p) (p)->lpVtbl->GetTop(p)
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
HRESULT
WINAPI
D3DXCreateMatrixStack
(
DWORD
flags
,
LPD3DXMATRIXSTACK
*
ppstack
);
#ifdef __cplusplus
}
#endif
#include <d3dx8math.inl>
#endif
/* __D3DX8MATH_H__ */
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