Mercurial > mm7
annotate Render.h @ 159:3235bc4cf78e
NPCDialogue
author | Ritor1 |
---|---|
date | Thu, 14 Feb 2013 01:13:46 +0600 |
parents | 8ab4484c22e0 |
children | d1dde383af89 |
rev | line source |
---|---|
0 | 1 #pragma once |
2 #include <stdio.h> | |
3 | |
4 #include "lib\legacy_dx\d3d.h" | |
5 #include "OSAPI.h" | |
6 | |
7 #include "Sprites.h" | |
8 #include "VectorTypes.h" | |
9 | |
10 struct stru148; | |
11 struct Texture; | |
12 struct RGBTexture; | |
13 struct RenderBillboardTransform_local0; | |
14 struct ODMFace; | |
15 | |
16 | |
17 /* 119 */ | |
18 #pragma pack(push, 1) | |
19 struct RenderVertexSoft | |
20 { | |
21 inline RenderVertexSoft(): | |
22 flt_2C(0.0f) | |
23 {} | |
24 | |
25 Vec3_float_ vWorldPosition; | |
26 Vec3_float_ vWorldViewPosition; | |
27 float vWorldViewProjX; | |
28 float vWorldViewProjY; | |
29 float flt_20; | |
30 float u; | |
31 float v; | |
32 float flt_2C; | |
33 }; | |
34 #pragma pack(pop) | |
35 | |
36 | |
37 | |
38 /* 112 */ | |
39 #pragma pack(push, 1) | |
40 struct RenderVertexD3D3 | |
41 { | |
42 Vec3_float_ pos; | |
43 float rhw; | |
44 unsigned int diffuse; | |
45 unsigned int specular; | |
46 Vec2_float_ texcoord; | |
47 }; | |
48 | |
49 | |
50 | |
51 /* 161 */ | |
52 #pragma pack(push, 1) | |
53 struct RenderBillboard | |
54 { | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
55 int _screenspace_x_scaler_packedfloat; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
56 int _screenspace_y_scaler_packedfloat; |
0 | 57 float fov_x; |
58 float fov_y; | |
59 int sZValue; | |
142 | 60 int field_14_actor_id; |
0 | 61 unsigned __int16 uHwSpriteID; |
62 __int16 uPalette; | |
63 __int16 uIndoorSectorID; | |
64 __int16 field_1E; | |
65 __int16 some_x; | |
66 __int16 some_y; | |
67 __int16 some_z; | |
68 __int16 uScreenSpaceX; | |
69 __int16 uScreenSpaceY; | |
70 unsigned __int16 uPaletteSubindex; | |
71 unsigned int uTintColor; | |
72 SpriteFrame *pSpriteFrame; | |
159 | 73 |
74 inline float GetFloatZ() const | |
75 { | |
76 return LOWORD(sZValue) / 65535.0f + (float)HIWORD(sZValue); | |
77 } | |
0 | 78 }; |
79 #pragma pack(pop) | |
80 | |
81 | |
82 #pragma pack(push, 1) | |
83 struct RenderD3D__DevInfo | |
84 { | |
85 unsigned int bIsDeviceCompatible; | |
86 char *pName; | |
87 char *pDescription; | |
88 GUID *pGUID; | |
89 unsigned int uCaps; | |
90 char *pDriverName; | |
91 char *pDeviceDesc; | |
92 char *pDDraw4DevDesc; | |
93 GUID *pDirectDrawGUID; | |
94 int uVideoMem; | |
95 }; | |
96 #pragma pack(pop) | |
97 | |
98 | |
99 | |
100 #pragma pack(push, 1) | |
101 struct RenderD3D_D3DDevDesc | |
102 { | |
103 int field_0; | |
104 int field_4; | |
105 int field_8; | |
106 int field_C; | |
107 int field_10; | |
108 char *pDriverName; | |
109 char *pDeviceDesc; | |
110 char *pDDraw4DevDesc; | |
111 GUID *pGUID; | |
112 unsigned int uVideoMem; | |
113 }; | |
114 #pragma pack(pop) | |
115 | |
116 | |
117 | |
118 | |
119 | |
120 | |
121 | |
122 | |
123 | |
124 /* 280 */ | |
125 #pragma pack(push, 1) | |
126 struct HWLTexture | |
127 { | |
128 inline HWLTexture(): | |
129 field_0(0), field_4(0), field_8(0), | |
130 field_C(0), field_10(0), field_14(0) | |
131 {} | |
132 | |
133 int field_0; | |
134 int field_4; | |
135 int field_8; | |
136 int field_C; | |
137 int field_10; | |
138 int field_14; | |
139 int field_18; | |
140 int field_1C; | |
141 int field_20; | |
142 int field_24; | |
143 unsigned int uWidth; | |
144 unsigned int uHeight; | |
145 int field_30; | |
146 int field_34; | |
147 unsigned __int16 *pPixels; | |
148 }; | |
149 #pragma pack(pop) | |
150 | |
151 | |
152 /* 185 */ | |
153 #pragma pack(push, 1) | |
154 struct RenderHWLContainer | |
155 { | |
156 RenderHWLContainer(); | |
157 bool Load(const wchar_t *pFilename); | |
158 bool Release(); | |
159 | |
160 HWLTexture *LoadTexture(const char *pName, int bMipMaps); | |
161 | |
162 FILE *pFile; | |
163 uint uSignature; | |
164 unsigned int uDataOffset; | |
165 unsigned int uNumItems; | |
166 char *pSpriteNames[50000]; | |
167 int pSpriteOffsets[50000]; | |
168 int bDumpDebug; | |
169 int field_61A94_scale_hwls_to_half; | |
170 }; | |
171 #pragma pack(pop) | |
172 | |
173 | |
174 | |
175 /* 242 */ | |
176 #pragma pack(push, 1) | |
177 struct RenderBillboardD3D | |
178 { | |
179 enum OpacityType: unsigned __int32 | |
180 { | |
181 Transparent = 0, | |
182 Opaque_1 = 1, | |
183 Opaque_2 = 2, | |
184 Opaque_3 = 3, | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
185 NoBlend = 0xFFFFFFFF |
0 | 186 }; |
187 | |
188 IDirect3DTexture2 *pTexture; | |
189 unsigned int uNumVertices; | |
190 RenderVertexD3D3 pQuards[4]; | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
191 float z_order; |
0 | 192 OpacityType uOpacity; |
193 int field_90; | |
194 int sZValue; | |
195 unsigned int uParentBillboardID; | |
196 }; | |
197 #pragma pack(pop) | |
198 | |
199 | |
200 | |
201 | |
202 #pragma pack(push, 1) | |
203 struct RenderD3D_aux | |
204 { | |
205 RenderD3D__DevInfo *pInfo; | |
206 RenderD3D_D3DDevDesc *ptr_4; | |
207 }; | |
208 #pragma pack(pop) | |
209 | |
210 | |
211 | |
212 /* 183 */ | |
213 #pragma pack(push, 1) | |
214 struct RenderD3D | |
215 { | |
216 RenderD3D(); | |
217 | |
218 static bool DoesRaiseExceptions(); | |
219 | |
220 void GetAvailableDevices(RenderD3D__DevInfo **pOutDevices); | |
221 void Release(); | |
222 bool CreateDevice(unsigned int uDeviceID, int bWindowed, HWND hWnd); | |
223 unsigned int GetDeviceCaps(); | |
224 void ClearTarget(unsigned int bClearColor, unsigned int uClearColor, unsigned int bClearDepth, float z_clear); | |
225 void Present(bool bForceBlit); | |
226 bool CreateTexture(unsigned int uTextureWidth, unsigned int uTextureHeight, IDirectDrawSurface4 **pOutSurface, IDirect3DTexture2 **pOutTexture, bool bAlphaChannel, bool bMipmaps, unsigned int uMinDeviceTexDim); | |
227 void HandleLostResources(); | |
228 | |
229 | |
230 unsigned int bWindowed; | |
231 int field_4; | |
232 int field_8; | |
233 HWND hWindow; | |
234 int field_10; | |
235 int field_14; | |
236 int field_18; | |
237 RenderD3D__DevInfo *pAvailableDevices; | |
238 IDirectDraw4 *pHost; | |
239 IDirect3D3 *pDirect3D; | |
240 IUnknown *pUnk; | |
241 IDirectDrawSurface4 *pBackBuffer; | |
242 IDirectDrawSurface4 *pFrontBuffer; | |
243 IDirectDrawSurface4 *pZBuffer; | |
244 IDirect3DDevice3 *pDevice; | |
245 IDirect3DViewport3 *pViewport; | |
246 int field_40; | |
247 int field_44; | |
248 char pErrorMessage[48]; | |
249 char field_78[208]; | |
250 }; | |
251 #pragma pack(pop) | |
67 | 252 extern struct RenderVertexD3D3 pVertices[50]; |
0 | 253 |
254 /* 182 */ | |
255 #pragma pack(push, 1) | |
256 struct Render | |
257 { | |
258 Render(); | |
259 ~Render(); | |
260 | |
261 static Render *Create() {return new Render;} | |
262 | |
263 bool Initialize(bool bWindowed, uint uDefaultDevice, | |
264 bool bColoredLights, uint uDetailLevel, uint bTinting); | |
265 | |
266 static void __fastcall SetPixel(struct Vec2_int_ *pTargetXY, unsigned __int16 uColor); | |
267 | |
268 bool IsColorKeySupported(IDirectDraw4 *); | |
269 void _49EBF1(); | |
270 void ClearBlack(); | |
271 void PresentBlackScreen(); | |
272 void SavePCXScreenshot(); | |
273 void _49F1BC(const char *a1); | |
274 int _49F5A2(int a2, int a3, int a4, void *Dst, int a6, int a7); | |
275 FILE *SavePCXImage(const char *Filename, char *a3, int a4, int a5); | |
276 void ClearTarget(unsigned int uColor); | |
277 void Release2(); | |
278 void Present(); | |
279 void _49FD3A(); | |
280 void CreateZBuffer(); | |
281 void Release(); | |
282 void CreateSomeTexture(); | |
283 bool InitializeFullscreen(HWND hWnd); | |
284 bool SwitchToWindow(HWND hWnd); | |
285 char Line2D(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW, unsigned __int16 uColor); | |
286 void ClearZBuffer(int a2, int a3); | |
287 void Clip_v2(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW); | |
288 void ParseTargetPixelFormat(); | |
289 bool LockSurface_DDraw4(IDirectDrawSurface4 *pSurface, DDSURFACEDESC2 *pDesc, unsigned int uLockFlags); | |
290 bool LockSurface_DDraw2(IDirectDrawSurface2 *pSurface, DDSURFACEDESC *pDesc, unsigned int uLockFlags); | |
291 void CreateDirectDraw(); | |
292 void SetDirectDrawCooperationMode(HWND hWnd, bool bFullscreen); | |
293 void SetDirectDrawDisplayMode(unsigned int uWidth, unsigned int uHeight, unsigned int uBPP); | |
294 void CreateFrontBuffer(); | |
295 void CreateBackBuffer(); | |
296 void CreateDirectDrawPrimarySurface(); | |
297 void CreateClipper(HWND a2); | |
298 void GetTargetPixelFormat(DDPIXELFORMAT *pOut); | |
299 void LockRenderSurface(void **pOutSurfacePtr, unsigned int *pOutPixelsPerRow); | |
300 bool UsingDirect3D(); | |
301 void UnlockBackBuffer(); | |
302 void LockFrontBuffer(void **pOutSurface, unsigned int *pOutPixelsPerRow); | |
303 void UnlockFrontBuffer(); | |
304 void RestoreFrontBuffer(); | |
305 HRESULT _4A184C(); | |
306 void PresentRect(RECT *a2, RECT *a3); | |
307 void BltToFront(RECT *pDstRect, IDirectDrawSurface *pSrcSurface, RECT *pSrcRect, unsigned int uBltFlags); | |
308 void BltBackToFontFast(int a2, int a3, RECT *a4); | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
309 unsigned int Billboard_ProbablyAddToListAndSortByZOrder(float z); |
0 | 310 unsigned int GetBillboardDrawListSize(); |
311 unsigned int GetParentBillboardID(unsigned int uBillboardID); | |
312 void BeginSceneD3D(); | |
313 void DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene(); | |
314 unsigned int GetActorTintColor(float a2, int a3, int a4, int a5, RenderBillboard *a6); | |
315 void DrawPolygon(unsigned int uNumVertices, stru148 *a3, ODMFace *a4, IDirect3DTexture2 *pTexture); | |
86 | 316 void DrawTerrainPolygon(stru148 *a3, IDirect3DTexture2 *pTexture); |
0 | 317 void DrawTerrainPolygon(unsigned int uNumVertices, stru148 *a4, IDirect3DTexture2 *a5, int a6, int a7); |
67 | 318 void Render::DrawStrip(unsigned int uNumVertices, struct stru148 *a3, IDirect3DTexture2 *pTexture); |
0 | 319 void DrawFan(unsigned int uNumVertices, stru148 *a3, IDirect3DTexture2 *a4); |
320 void _4A2ED5(signed int a2, stru148 *a3, IDirect3DTexture2 *pHwTex); | |
321 void DrawIndoorPolygon(unsigned int uNumVertices, struct BLVFace *a3, IDirect3DTexture2 *pHwTex, Texture *pTex, int uPackedID, unsigned int uColor, int a8); | |
322 void MakeParticleBillboardAndPush_BLV(RenderBillboardTransform_local0 *a2, IDirect3DTexture2 *a3, unsigned int uDiffuse, int angle); | |
323 void MakeParticleBillboardAndPush_ODM(RenderBillboardTransform_local0 *a2, IDirect3DTexture2 *a3, unsigned int uDiffuse, int angle); | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
324 void TransformBillboard(RenderBillboardTransform_local0 *a2, Sprite *pSprite, int paletteSubindex, RenderBillboard *pBillboard); |
0 | 325 void DrawBillboard_Indoor(RenderBillboardTransform_local0 *pSoftBillboard, Sprite *a3, int uPaletteSubindex); |
326 int MakeParticleBillboardAndPush_BLV_Software(int screenSpaceX, int screenSpaceY, int z, int lightColor, int a6); | |
327 void DrawProjectile(float srcX, float srcY, float a3, float a4, float dstX, float dstY, float a7, float a8, IDirect3DTexture2 *a9); | |
328 void _4A4CC9(struct stru6_stru1_indoor_sw_billboard *a1, int a2); | |
329 bool LoadTexture(const char *pName, unsigned int bMipMaps, IDirectDrawSurface4 **pOutSurface, IDirect3DTexture2 **pOutTexture); | |
330 HWLTexture *MoveSpriteToDevice(Sprite *pSprite); | |
331 void BeginScene(); | |
332 void EndScene(); | |
333 unsigned int _4A52F1(unsigned int this_, float a3); | |
334 void Clip(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW); | |
335 void ResetClip(); | |
336 void DrawTextureRGB(unsigned int uOutX, unsigned int uOutY, RGBTexture *a4); | |
337 void _4A5D33(unsigned int a2, unsigned int a3, int a4, int a5, RGBTexture *pTexture); | |
338 void DrawTextureIndexed(unsigned int uX, unsigned int uY, Texture *a4); | |
339 void _4A601E(signed int a2, signed int a3, Texture *pTexture, int a5); | |
340 void _4A612A(signed int uOutX, unsigned int uOutY, Texture *pTexture, int zVal); | |
341 void DrawTextureTransparent(unsigned int uX, unsigned int uY, Texture *pTexture); | |
342 void _4A63E6(unsigned int a2, unsigned int a3, Texture *a4, Texture *a5, int a6, int a7, int a8); | |
343 void _4A65CC(unsigned int x, unsigned int y, Texture *a4, Texture *a5, int a6, int a7, int a8); | |
344 void _4A6776(unsigned int a2, unsigned int a3, Texture *a4); | |
345 void DrawTransparentGreenShade(signed int a2, signed int a3, Texture *pTexture); | |
346 void _4A6A68(unsigned int a2, unsigned int a3, Texture *a4, __int16 height); | |
347 void DrawTextPalette(int x, int y, int a4, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, int a8); | |
348 void DrawText(signed int uOutX, signed int uOutY, unsigned __int8 *pFontPixels, unsigned int uCharWidth, unsigned int uCharHeight, unsigned __int16 *pFontPalette, unsigned __int16 uFaceColor, unsigned __int16 uShadowColor); | |
349 void FillRectFast(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uColor16); | |
350 int _4A6DF5(unsigned __int16 *pBitmap, unsigned int uBitmapPitch, struct Vec2_int_ *pBitmapXY, unsigned __int16 *pTarget, unsigned int uTargetPitch, Vec4_int_ *a7); | |
351 void _4A6E7E(unsigned int a2, unsigned int a3, Texture *a4); | |
352 char DrawBuildingsD3D(); | |
353 struct BSPModel *DrawBuildingsSW(); | |
354 int OnOutdoorRedrawSW(); | |
355 void DrawSkyD3D(); | |
356 int DrawSkySW(struct Span *a1, stru148 *a2, int a3); | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
357 void PrepareDecorationsRenderList_ODM(); |
0 | 358 void DrawLayingItems_Shooting_Magic_ODM(); |
359 void TransformBillboardsAndSetPalettesODM(); | |
360 float DrawBezierTerrain(); | |
86 | 361 void RenderTerrainD3D(); |
0 | 362 void DrawTerrainD3D(int a1, int edx0, int a3); |
363 void DrawTerrainSW(int a1, int a2, int a3); | |
364 __int16 ExecOutdoorDrawSW(); | |
365 void ChangeBetweenWinFullscreenModes(); | |
366 void DrawBillboardList_BLV(); | |
367 | |
368 | |
369 unsigned int bUserDirect3D; | |
370 unsigned int bStartInWindow; | |
371 unsigned int uDesiredDirect3DDevice; | |
372 unsigned int uAcquiredDirect3DDevice; | |
373 int field_10; | |
374 int field_14; | |
375 int field_18_locked_pitch; | |
376 int field_1C_clipx; | |
377 int field_20_clipy; | |
378 int field_24_clipz; | |
379 int field_28_clipw; | |
380 __int16 field_2C[65536]; | |
381 __int16 field_2002C[65536]; | |
382 int field_4002C; | |
383 int field_40030; | |
384 int *pActiveZBuffer; | |
385 int *pDefaultZBuffer; | |
386 int field_4003C; | |
387 int field_40040; | |
388 int field_40044; | |
389 int field_40048; | |
390 int field_4004C; | |
391 HWND hWnd; | |
392 int field_40054; | |
393 unsigned int bWindowMode; | |
394 int field_4005C[11]; | |
395 RenderD3D *pRenderD3D; | |
396 IDirectDraw4 *pDirectDraw4; | |
397 IDirectDrawSurface4 *pFrontBuffer4; | |
398 IDirectDrawSurface4 *pBackBuffer4; | |
399 IDirectDrawSurface4 *pColorKeySurface4; | |
400 IDirectDraw2 *pDirectDraw2; | |
401 IDirectDrawSurface2 *pFrontBuffer2; | |
402 IDirectDrawSurface2 *pBackBuffer2; | |
403 IDirectDrawSurface2 *pSomeSurface2; | |
404 DDPIXELFORMAT ddpfPrimareSuface; | |
405 unsigned int uTargetRBits; | |
406 unsigned int uTargetGBits; | |
407 unsigned int uTargetBBits; | |
408 unsigned int uTargetRMask; | |
409 unsigned int uTargetGMask; | |
410 unsigned int uTargetBMask; | |
411 unsigned int uNumSceneBegins; | |
412 int *ptr_400E8; | |
413 unsigned __int16 *pTargetSurface; | |
414 unsigned int uTargetSurfacePitch; | |
415 unsigned int uClipY; | |
416 unsigned int uClipX; | |
417 unsigned int uClipW; | |
418 unsigned int uClipZ; | |
419 unsigned int bClip; | |
420 unsigned int bColorKeySupported; | |
421 unsigned int uNumD3DSceneBegins; | |
422 int field_40110; | |
423 RenderHWLContainer pD3DBitmaps; | |
424 RenderHWLContainer pD3DSprites; | |
425 unsigned int bUseColoredLights; | |
426 unsigned int bRequiredTextureStagesAvailable; | |
427 unsigned int bTinting; | |
428 unsigned int uLevelOfDetail; | |
429 unsigned int uMaxDeviceTextureDim; | |
430 unsigned int uMinDeviceTextureDim; | |
431 int field_10365C; | |
432 unsigned int bUsingSpecular; | |
433 uint uFogColor; | |
434 int field_103668; | |
435 unsigned int pHDWaterBitmapIDs[7]; | |
436 char field_103688[32]; | |
437 int field_1036A8_bitmapid; | |
438 int field_1036AC_bitmapid; | |
439 IDirectDrawSurface4 *pSurface; | |
440 IDirect3DTexture2 *pTexture; | |
441 int field_1036B8; | |
442 int _gpu_memory_used; | |
443 void (__cdecl *pBeforePresentFunction)(); | |
444 int field_1036C4; | |
445 uint bFogEnabled; | |
446 int field_1036CC; | |
447 RenderBillboardD3D pBillboardRenderListD3D[1000]; | |
448 unsigned int uNumBillboardsToDraw; | |
449 int field_129834; | |
450 unsigned int uCurrentlyLockedSurfacePitch; | |
451 unsigned __int16 *pCurrentlyLockedSurfaceDataPtr; | |
452 unsigned __int16 *pCurrentlyLockedSoftSurface; | |
453 }; | |
454 #pragma pack(pop) | |
455 | |
456 extern struct IDirectDrawClipper *pDDrawClipper; | |
457 extern struct Render *pRenderer; // idb | |
67 | 458 extern struct pUnkTerrain *Unks; |
0 | 459 |
460 | |
461 | |
462 /* 248 */ | |
463 #pragma pack(push, 1) | |
464 struct RenderBillboardTransform_local0 | |
465 { | |
466 unsigned __int16 *pTarget; | |
467 int *pTargetZ; | |
468 int uScreenSpaceX; | |
469 int uScreenSpaceY; | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
470 int _screenspace_x_scaler_packedfloat; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
471 int _screenspace_y_scaler_packedfloat; |
0 | 472 char field_18[8]; |
473 unsigned __int16 *pPalette; | |
474 unsigned __int16 *pPalette2; | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
475 union |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
476 { |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
477 int sZValue; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
478 struct |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
479 { |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
480 unsigned short object_pid; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
481 short zbuffer_depth; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
482 }; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
483 }; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
484 unsigned int uFlags; // & 4 - mirror horizontally |
0 | 485 unsigned int uTargetPitch; |
486 unsigned int uViewportX; | |
487 unsigned int uViewportY; | |
488 unsigned int uViewportZ; | |
489 unsigned int uViewportW; | |
490 int field_44; | |
491 int uParentBillboardID; | |
492 int uTintColor; | |
493 }; | |
494 #pragma pack(pop) | |
495 | |
496 | |
497 | |
498 | |
499 extern int uNumDecorationsDrawnThisFrame; // weak | |
500 extern RenderBillboard pBillboardRenderList[500]; | |
501 extern unsigned int uNumBillboardsToDraw; | |
502 extern int uNumSpritesDrawnThisFrame; // weak | |
503 | |
504 | |
505 | |
506 | |
507 extern RenderVertexSoft array_507D30[50]; | |
508 extern RenderVertexSoft array_508690[50]; | |
509 extern RenderVertexSoft array_508FF0[50]; | |
510 extern RenderVertexSoft array_509950[50]; | |
511 extern RenderVertexSoft array_50A2B0[50]; | |
512 extern RenderVertexSoft array_50AC10[50]; | |
513 | |
514 extern RenderVertexSoft array_73D150[20]; | |
515 | |
516 extern RenderVertexD3D3 arary_77E5C8[50]; | |
517 | |
518 extern RenderVertexSoft *ptr_801A04; | |
519 extern RenderVertexSoft *ptr_801A08; | |
520 | |
521 extern RenderVertexSoft pVerticesSR_801A10[384]; | |
522 extern RenderVertexSoft pVerticesSR_806210[384]; |