source: trunk/ab5.0/ablib/src/directx9/d3dx9core.sbp@ 560

Last change on this file since 560 was 497, checked in by イグトランス (egtra), 16 years ago

インクルードガードとその他不要な前処理定義などの削除

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