Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
9558fd0f
Commit
9558fd0f
authored
17 years ago
by
David Adam
Committed by
Alexandre Julliard
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
d3dx8: Add definition for MatrixStack.
parent
83c0b13c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/dxguid/dx8guid.c
+1
-1
1 addition, 1 deletion
dlls/dxguid/dx8guid.c
include/d3dx8math.h
+63
-0
63 additions, 0 deletions
include/d3dx8math.h
with
64 additions
and
1 deletion
dlls/dxguid/dx8guid.c
+
1
−
1
View file @
9558fd0f
...
...
@@ -31,4 +31,4 @@
#include
"initguid.h"
#include
"d3d8.h"
#include
"d3dx8
core
.h"
#include
"d3dx8.h"
This diff is collapsed.
Click to expand it.
include/d3dx8math.h
+
63
−
0
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__ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment