source: branch/egtra-gdiplus/directx9/d3dx9core.sbp@ 353

Last change on this file since 353 was 1, checked in by (none), 18 years ago
File size: 7.6 KB
Line 
1' d3dx9core.sbp
2
3
4#ifndef _INC_D3DX9CORE
5#define _INC_D3DX9CORE
6
7
8Class ID3DXBuffer
9 Inherits IUnknown
10Public
11 'ID3DXBuffer
12 Abstract Function GetBufferPointer() As VoidPtr
13 Abstract Function GetBufferSize() As DWord
14End Class
15TypeDef LPD3DXBUFFER = *ID3DXBuffer
16
17
18Const D3DXSPRITE_DONOTSAVESTATE = 1 << 0
19Const D3DXSPRITE_DONOTMODIFY_RENDERSTATE = 1 << 1
20Const D3DXSPRITE_OBJECTSPACE = 1 << 2
21Const D3DXSPRITE_BILLBOARD = 1 << 3
22Const D3DXSPRITE_ALPHABLEND = 1 << 4
23Const D3DXSPRITE_SORT_TEXTURE = 1 << 5
24Const D3DXSPRITE_SORT_DEPTH_FRONTTOBACK = 1 << 6
25Const D3DXSPRITE_SORT_DEPTH_BACKTOFRONT = 1 << 7
26
27
28Class ID3DXSprite
29 Inherits IUnknown
30Public
31 'ID3DXSprite
32 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
33
34 Abstract Function GetTransform(pTransform As *D3DMATRIX) As DWord
35 Abstract Function SetTransform(pTransform As *D3DMATRIX) As DWord
36
37 Abstract Function SetWorldViewRH(pWorld As *D3DMATRIX, pView As *D3DMATRIX) As DWord
38 Abstract Function SetWorldViewLH(pWorld As *D3DMATRIX, pView As *D3DMATRIX) As DWord
39
40 Abstract Function Begin(Flags As DWord) As DWord
41 Abstract Function Draw(pTexture As *IDirect3DTexture9, pSrcRect As *RECT, pCenter As *D3DXVECTOR3, pPosition As *D3DVECTOR, Color As DWord) As DWord
42 Abstract Function Flush() As DWord
43 Abstract Function _End() As DWord
44
45 Abstract Function OnLostDevice() As DWord
46 Abstract Function OnResetDevice() As DWord
47End Class
48TypeDef LPD3DXSPRITE = *ID3DXSprite
49
50Declare Function D3DXCreateSprite Lib "dx9abm" Alias "D3DXCreateSprite_abm" (pDevice As LPDIRECT3DDEVICE9, ppSprite As **ID3DXSprite) As DWord
51
52
53Type D3DXFONT_DESC
54 Height As Long
55 Width As DWord
56 Weight As DWord
57 MipLevels As DWord
58 Italic As Long
59 CharSet As Byte
60 OutputPrecision As Byte
61 Quality As Byte
62 PitchAndFamily As Byte
63 FaceName[LF_FACESIZE-1] As Byte
64End Type
65Type D3DXFONT_DESCW
66 Height As Long
67 Width As DWord
68 Weight As DWord
69 MipLevels As DWord
70 Italic As Long
71 CharSet As Byte
72 OutputPrecision As Byte
73 Quality As Byte
74 PitchAndFamily As Byte
75 FaceName[LF_FACESIZE-1] As Word
76End Type
77
78Class ID3DXFont
79 Inherits IUnknown
80Public
81 'ID3DXFont
82 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
83 Abstract Function GetDesc(pDesc As *D3DXFONT_DESC) As DWord
84 Abstract Function GetDescW(pDesc As *D3DXFONT_DESCW) As DWord
85 Abstract Function GetTextMetricsA(pTextMetrics As *TEXTMETRIC) As Long
86 Abstract Function GetTextMetricsW(pTextMetrics As VoidPtr) As Long
87
88 Abstract Function GetDC() As DWord
89 Abstract Function GetGlyphData(Glyph As DWord, ppTexture As **IDirect3DTexture9, pBlackBox As *RECT, pCellInc As *POINTAPI) As DWord
90
91 Abstract Function PreloadCharacters(First As DWord, Last As DWord) As DWord
92 Abstract Function PreloadGlyphs(First As DWord, Last As DWord) As DWord
93 Abstract Function PreloadText(pString As BytePtr, Count As Long) As DWord
94 Abstract Function PreloadTextW(pString As WordPtr, Count As Long) As DWord
95
96 Abstract Function DrawText(pSprite As *ID3DXSprite, pString As BytePtr, Count As Long, pRect As *RECT, Format As DWord, Color As DWord) As Long
97 Abstract Function DrawTextW(pSprite As *ID3DXSprite, pString As WordPtr, Count As Long, pRect As *RECT, Format As DWord, Color As DWord) As Long
98
99 Abstract Function OnLostDevice() As DWord
100 Abstract Function OnResetDevice() As DWord
101End Class
102TypeDef LPD3DXFONT = *ID3DXFont
103
104Declare Function D3DXCreateFont Lib "dx9abm" Alias "D3DXCreateFont_abm" (pDevice As LPDIRECT3DDEVICE9, Height As Long, Width As DWord, Weight As DWord, MipLevels As DWord, Italic As Long, CharSet As DWord, OutputPrecision As DWord, Quality As DWord, PitchAndFamily As DWord, pFaceName As BytePtr, ppFont As **ID3DXFont) As DWord
105
106Declare Function D3DXCreateFontIndirect Lib "dx9abm" Alias "D3DXCreateFontIndirect_abm" (pDevice As LPDIRECT3DDEVICE9, pDesc As *D3DXFONT_DESC, ppFont As **ID3DXFont) As DWord
107
108
109'----------------------
110' ID3DXRenderToSurface
111'----------------------
112
113Type D3DXRTS_DESC
114 Width As DWord
115 Height As DWord
116 Format As D3DFORMAT
117 DepthStencil As Long
118 DepthStencilFormat As D3DFORMAT
119End Type
120
121Class ID3DXRenderToSurface
122 Inherits IUnknown
123Public
124 'ID3DXRenderToSurface
125 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
126 Abstract Function GetDesc(pDesc As *D3DXRTS_DESC) As DWord
127
128 Abstract Function BeginScene(pSurface As *IDirect3DSurface9, pViewport As *D3DVIEWPORT9) As DWord
129 Abstract Function EndScene(MipFilter As DWord) As DWord
130
131 Abstract Function OnLostDevice() As DWord
132 Abstract Function OnResetDevice() As DWord
133End Class
134TypeDef LPD3DXRENDERTOSURFACE = *ID3DXRenderToSurface
135
136Declare Function D3DXCreateRenderToSurface Lib "dx9abm" Alias "D3DXCreateRenderToSurface_abm" (pDevice As LPDIRECT3DDEVICE9, Width As DWord, Height As DWord, Format As D3DFORMAT, DepthStencil As Long, DepthStencilFormat As D3DFORMAT, ppRenderToSurface As **ID3DXRenderToSurface) As DWord
137
138
139'---------------------
140' ID3DXRenderToEnvMap
141'---------------------
142
143Type D3DXRTE_DESC
144 Size As DWord
145 MipLevels As DWord
146 Format As D3DFORMAT
147 DepthStencil As Long
148 DepthStencilFormat As D3DFORMAT
149End Type
150
151Class ID3DXRenderToEnvMap
152 Inherits IUnknown
153Public
154 'ID3DXRenderToEnvMap
155 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
156 Abstract Function GetDesc(pDesc As *D3DXRTE_DESC) As DWord
157
158 Abstract Function BeginCube(pCubeTex As *IDirect3DCubeTexture9) As DWord
159
160 Abstract Function BeginSphere(pTex As *IDirect3DTexture9) As DWord
161
162 Abstract Function BeginHemisphere(pTexZPos As *IDirect3DTexture9, pTexZNeg As *IDirect3DTexture9) As DWord
163
164 Abstract Function BeginParabolic(pTexZPos As *IDirect3DTexture9, pTexZNeg As *IDirect3DTexture9) As DWord
165
166 Abstract Function Face(Face As D3DCUBEMAP_FACES, MipFilter As DWord) As DWord
167 Abstract Function _End(MipFilter As DWord) As DWord
168
169 Abstract Function OnLostDevice() As DWord
170 Abstract Function OnResetDevice() As DWord
171End Class
172TypeDef LPD3DXRenderToEnvMap = *ID3DXRenderToEnvMap
173
174Declare Function D3DXCreateRenderToEnvMap Lib "dx9abm" Alias "D3DXCreateRenderToEnvMap_abm" (pDevice As LPDIRECT3DDEVICE9, Size As DWord, MipLevels As DWord, Format As D3DFORMAT, DepthStencil As Long, DepthStencilFormat As D3DFORMAT, ppRenderToEnvMap As *LPD3DXRenderToEnvMap) As DWord
175
176
177'-----------
178' ID3DXLine
179'-----------
180
181Class ID3DXLine
182 Inherits IUnknown
183Public
184 'ID3DXLine
185 Abstract Function GetDevice(ppDevice As *LPDIRECT3DDEVICE9) As DWord
186
187 Abstract Function Begin() As DWord
188
189 Abstract Function Draw(pVertexList As *D3DXVECTOR2, dwVertexListCount As DWord, dwColor As DWord) As DWord
190
191 Abstract Function DrawTransform(pVertexList As *D3DXVECTOR3, dwVertexListCount As DWord, pTransform As *D3DXMATRIX, dwColor As DWord) As DWord
192
193 Abstract Function SetPattern(dwPattern As DWord) As DWord
194 Abstract Function GetPattern() As DWord
195
196 Abstract Function SetPatternScale(fPatternScale As Single) As DWord
197 Abstract Function GetPatternScale() As Single
198
199 Abstract Function SetWidth(fWidth As Single) As DWord
200 Abstract Function GetWidth() As Single
201
202 Abstract Function SetAntialias(bAntialias As Long) As DWord
203 Abstract Function GetAntialias() As Long
204
205 Abstract Function SetGLLines(bGLLines As Long) As DWord
206 Abstract Function GetGLLines() As Long
207
208 Abstract Function _End() As DWord
209
210 Abstract Function OnLostDevice() As DWord
211 Abstract Function OnResetDevice() As DWord
212End Class
213TypeDef LPD3DXLINE = *ID3DXLine
214
215Declare Function D3DXCreateLine Lib "dx9abm" Alias "D3DXCreateLine_abm" (pDevice As LPDIRECT3DDEVICE9, ppLine As **ID3DXLine) As DWord
216
217
218#endif '_INC_D3DX9CORE
Note: See TracBrowser for help on using the repository browser.