Mercurial > mm7
annotate Render.h @ 213:809d3f71b73d
m
author | Ritor1 |
---|---|
date | Sun, 17 Feb 2013 00:19:34 +0600 |
parents | d65528fc3bda |
children | 650d96af8855 |
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; | |
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); | |
186 | 316 void DrawTerrainPolygon(unsigned int uNumVertices, stru148 *a4, IDirect3DTexture2 *a5, bool transparent, bool clampAtTextureBorders); |
317 void DrawStrip(unsigned int uNumVertices, struct stru148 *a3, IDirect3DTexture2 *pTexture); | |
0 | 318 void DrawFan(unsigned int uNumVertices, stru148 *a3, IDirect3DTexture2 *a4); |
319 void _4A2ED5(signed int a2, stru148 *a3, IDirect3DTexture2 *pHwTex); | |
320 void DrawIndoorPolygon(unsigned int uNumVertices, struct BLVFace *a3, IDirect3DTexture2 *pHwTex, Texture *pTex, int uPackedID, unsigned int uColor, int a8); | |
321 void MakeParticleBillboardAndPush_BLV(RenderBillboardTransform_local0 *a2, IDirect3DTexture2 *a3, unsigned int uDiffuse, int angle); | |
322 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
|
323 void TransformBillboard(RenderBillboardTransform_local0 *a2, Sprite *pSprite, int paletteSubindex, RenderBillboard *pBillboard); |
0 | 324 void DrawBillboard_Indoor(RenderBillboardTransform_local0 *pSoftBillboard, Sprite *a3, int uPaletteSubindex); |
325 int MakeParticleBillboardAndPush_BLV_Software(int screenSpaceX, int screenSpaceY, int z, int lightColor, int a6); | |
326 void DrawProjectile(float srcX, float srcY, float a3, float a4, float dstX, float dstY, float a7, float a8, IDirect3DTexture2 *a9); | |
327 void _4A4CC9(struct stru6_stru1_indoor_sw_billboard *a1, int a2); | |
328 bool LoadTexture(const char *pName, unsigned int bMipMaps, IDirectDrawSurface4 **pOutSurface, IDirect3DTexture2 **pOutTexture); | |
329 HWLTexture *MoveSpriteToDevice(Sprite *pSprite); | |
330 void BeginScene(); | |
331 void EndScene(); | |
332 unsigned int _4A52F1(unsigned int this_, float a3); | |
333 void Clip(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW); | |
334 void ResetClip(); | |
335 void DrawTextureRGB(unsigned int uOutX, unsigned int uOutY, RGBTexture *a4); | |
336 void _4A5D33(unsigned int a2, unsigned int a3, int a4, int a5, RGBTexture *pTexture); | |
337 void DrawTextureIndexed(unsigned int uX, unsigned int uY, Texture *a4); | |
338 void _4A601E(signed int a2, signed int a3, Texture *pTexture, int a5); | |
339 void _4A612A(signed int uOutX, unsigned int uOutY, Texture *pTexture, int zVal); | |
340 void DrawTextureTransparent(unsigned int uX, unsigned int uY, Texture *pTexture); | |
341 void _4A63E6(unsigned int a2, unsigned int a3, Texture *a4, Texture *a5, int a6, int a7, int a8); | |
342 void _4A65CC(unsigned int x, unsigned int y, Texture *a4, Texture *a5, int a6, int a7, int a8); | |
343 void _4A6776(unsigned int a2, unsigned int a3, Texture *a4); | |
344 void DrawTransparentGreenShade(signed int a2, signed int a3, Texture *pTexture); | |
345 void _4A6A68(unsigned int a2, unsigned int a3, Texture *a4, __int16 height); | |
346 void DrawTextPalette(int x, int y, int a4, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, int a8); | |
347 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); | |
348 void FillRectFast(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uColor16); | |
349 int _4A6DF5(unsigned __int16 *pBitmap, unsigned int uBitmapPitch, struct Vec2_int_ *pBitmapXY, unsigned __int16 *pTarget, unsigned int uTargetPitch, Vec4_int_ *a7); | |
350 void _4A6E7E(unsigned int a2, unsigned int a3, Texture *a4); | |
351 char DrawBuildingsD3D(); | |
352 struct BSPModel *DrawBuildingsSW(); | |
353 int OnOutdoorRedrawSW(); | |
354 void DrawSkyD3D(); | |
355 int DrawSkySW(struct Span *a1, stru148 *a2, int a3); | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
356 void PrepareDecorationsRenderList_ODM(); |
0 | 357 void DrawLayingItems_Shooting_Magic_ODM(); |
358 void TransformBillboardsAndSetPalettesODM(); | |
359 float DrawBezierTerrain(); | |
86 | 360 void RenderTerrainD3D(); |
0 | 361 void DrawTerrainD3D(int a1, int edx0, int a3); |
362 void DrawTerrainSW(int a1, int a2, int a3); | |
363 __int16 ExecOutdoorDrawSW(); | |
364 void ChangeBetweenWinFullscreenModes(); | |
365 void DrawBillboardList_BLV(); | |
366 | |
367 | |
368 unsigned int bUserDirect3D; | |
369 unsigned int bStartInWindow; | |
370 unsigned int uDesiredDirect3DDevice; | |
371 unsigned int uAcquiredDirect3DDevice; | |
372 int field_10; | |
373 int field_14; | |
374 int field_18_locked_pitch; | |
375 int field_1C_clipx; | |
376 int field_20_clipy; | |
377 int field_24_clipz; | |
378 int field_28_clipw; | |
379 __int16 field_2C[65536]; | |
380 __int16 field_2002C[65536]; | |
381 int field_4002C; | |
382 int field_40030; | |
383 int *pActiveZBuffer; | |
384 int *pDefaultZBuffer; | |
385 int field_4003C; | |
386 int field_40040; | |
387 int field_40044; | |
388 int field_40048; | |
389 int field_4004C; | |
390 HWND hWnd; | |
391 int field_40054; | |
392 unsigned int bWindowMode; | |
393 int field_4005C[11]; | |
394 RenderD3D *pRenderD3D; | |
395 IDirectDraw4 *pDirectDraw4; | |
396 IDirectDrawSurface4 *pFrontBuffer4; | |
397 IDirectDrawSurface4 *pBackBuffer4; | |
398 IDirectDrawSurface4 *pColorKeySurface4; | |
399 IDirectDraw2 *pDirectDraw2; | |
400 IDirectDrawSurface2 *pFrontBuffer2; | |
401 IDirectDrawSurface2 *pBackBuffer2; | |
402 IDirectDrawSurface2 *pSomeSurface2; | |
403 DDPIXELFORMAT ddpfPrimareSuface; | |
404 unsigned int uTargetRBits; | |
405 unsigned int uTargetGBits; | |
406 unsigned int uTargetBBits; | |
407 unsigned int uTargetRMask; | |
408 unsigned int uTargetGMask; | |
409 unsigned int uTargetBMask; | |
410 unsigned int uNumSceneBegins; | |
411 int *ptr_400E8; | |
412 unsigned __int16 *pTargetSurface; | |
413 unsigned int uTargetSurfacePitch; | |
414 unsigned int uClipY; | |
415 unsigned int uClipX; | |
416 unsigned int uClipW; | |
417 unsigned int uClipZ; | |
418 unsigned int bClip; | |
419 unsigned int bColorKeySupported; | |
420 unsigned int uNumD3DSceneBegins; | |
421 int field_40110; | |
422 RenderHWLContainer pD3DBitmaps; | |
423 RenderHWLContainer pD3DSprites; | |
424 unsigned int bUseColoredLights; | |
425 unsigned int bRequiredTextureStagesAvailable; | |
426 unsigned int bTinting; | |
427 unsigned int uLevelOfDetail; | |
428 unsigned int uMaxDeviceTextureDim; | |
429 unsigned int uMinDeviceTextureDim; | |
430 int field_10365C; | |
431 unsigned int bUsingSpecular; | |
432 uint uFogColor; | |
433 int field_103668; | |
434 unsigned int pHDWaterBitmapIDs[7]; | |
435 char field_103688[32]; | |
436 int field_1036A8_bitmapid; | |
437 int field_1036AC_bitmapid; | |
438 IDirectDrawSurface4 *pSurface; | |
439 IDirect3DTexture2 *pTexture; | |
440 int field_1036B8; | |
441 int _gpu_memory_used; | |
442 void (__cdecl *pBeforePresentFunction)(); | |
443 int field_1036C4; | |
444 uint bFogEnabled; | |
445 int field_1036CC; | |
446 RenderBillboardD3D pBillboardRenderListD3D[1000]; | |
447 unsigned int uNumBillboardsToDraw; | |
448 int field_129834; | |
449 unsigned int uCurrentlyLockedSurfacePitch; | |
450 unsigned __int16 *pCurrentlyLockedSurfaceDataPtr; | |
451 unsigned __int16 *pCurrentlyLockedSoftSurface; | |
452 }; | |
453 #pragma pack(pop) | |
454 | |
455 extern struct IDirectDrawClipper *pDDrawClipper; | |
456 extern struct Render *pRenderer; // idb | |
67 | 457 extern struct pUnkTerrain *Unks; |
0 | 458 |
459 | |
460 | |
461 /* 248 */ | |
462 #pragma pack(push, 1) | |
463 struct RenderBillboardTransform_local0 | |
464 { | |
465 unsigned __int16 *pTarget; | |
466 int *pTargetZ; | |
467 int uScreenSpaceX; | |
468 int uScreenSpaceY; | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
469 int _screenspace_x_scaler_packedfloat; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
470 int _screenspace_y_scaler_packedfloat; |
0 | 471 char field_18[8]; |
472 unsigned __int16 *pPalette; | |
473 unsigned __int16 *pPalette2; | |
144
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
474 union |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
475 { |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
476 int sZValue; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
477 struct |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
478 { |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
479 unsigned short object_pid; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
480 short zbuffer_depth; |
8ab4484c22e0
Billboard drawing's up (actors, decorations, misc sprites)
Nomad
parents:
142
diff
changeset
|
481 }; |
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 unsigned int uFlags; // & 4 - mirror horizontally |
0 | 484 unsigned int uTargetPitch; |
485 unsigned int uViewportX; | |
486 unsigned int uViewportY; | |
487 unsigned int uViewportZ; | |
488 unsigned int uViewportW; | |
489 int field_44; | |
490 int uParentBillboardID; | |
491 int uTintColor; | |
492 }; | |
493 #pragma pack(pop) | |
494 | |
495 | |
496 | |
497 | |
498 extern int uNumDecorationsDrawnThisFrame; // weak | |
499 extern RenderBillboard pBillboardRenderList[500]; | |
500 extern unsigned int uNumBillboardsToDraw; | |
501 extern int uNumSpritesDrawnThisFrame; // weak | |
502 | |
503 | |
504 | |
505 | |
506 extern RenderVertexSoft array_507D30[50]; | |
507 extern RenderVertexSoft array_508690[50]; | |
508 extern RenderVertexSoft array_508FF0[50]; | |
509 extern RenderVertexSoft array_509950[50]; | |
510 extern RenderVertexSoft array_50A2B0[50]; | |
511 extern RenderVertexSoft array_50AC10[50]; | |
512 | |
513 extern RenderVertexSoft array_73D150[20]; | |
514 | |
186 | 515 extern RenderVertexD3D3 d3d_vertex_buffer[50]; |
0 | 516 |
517 extern RenderVertexSoft *ptr_801A04; | |
518 extern RenderVertexSoft *ptr_801A08; | |
519 | |
520 extern RenderVertexSoft pVerticesSR_801A10[384]; | |
521 extern RenderVertexSoft pVerticesSR_806210[384]; |