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