Mercurial > mm7
annotate Engine/Graphics/Render.h @ 2574:dd36326a9994
More texture refactoring
GetLeather -> DrawTextureCustomHeight
author | a.parshin |
---|---|
date | Mon, 07 Mar 2016 03:48:40 +0200 |
parents | 0c67be4ec900 |
children | a76d408c5132 |
rev | line source |
---|---|
2496 | 1 #pragma once |
2 | |
3 #include <cstdint> | |
4 #include <cstdio> | |
5 #include <array> | |
6 | |
7 #include "lib\legacy_dx\d3d.h" | |
8 #include "OSWindow.h" | |
9 #include "RenderStruct.h" | |
10 | |
2499 | 11 #include "../VectorTypes.h" |
2496 | 12 |
13 #include "IRender.h" | |
14 | |
15 #pragma pack(push, 1) | |
16 struct DDM_DLV_Header | |
17 { | |
18 //----- (00462607) -------------------------------------------------------- | |
19 inline DDM_DLV_Header() | |
20 { | |
21 this->uLastRepawnDay = 0; | |
22 this->uNumRespawns = 0; | |
23 this->uReputation = 0; | |
24 this->field_C_alert = 0; | |
25 this->uNumFacesInBModels = 0; | |
26 this->uNumDecorations = 0; | |
27 this->uNumBModels = 0; | |
28 } | |
29 | |
30 | |
31 int uNumRespawns; | |
32 int uLastRepawnDay; | |
33 int uReputation; | |
34 int field_C_alert; | |
35 unsigned int uNumFacesInBModels; | |
36 unsigned int uNumDecorations; | |
37 unsigned int uNumBModels; | |
38 int field_1C; | |
39 int field_20; | |
40 int field_24; | |
41 }; | |
42 #pragma pack(pop) | |
43 | |
44 | |
45 struct ODMFace; | |
46 | |
47 | |
48 /* 141 */ | |
49 // stru148 | |
50 #pragma pack(push, 1) | |
51 struct Polygon | |
52 { | |
53 inline Polygon() | |
54 { | |
55 uNumVertices = 0; | |
56 } | |
57 | |
58 int _479295(); | |
59 //void _48276F_sr(); | |
60 void _normalize_v_18(); | |
61 void Create_48607B(struct stru149 *a2); | |
62 | |
63 float field_0; | |
64 float field_4; | |
65 float field_8; | |
66 float field_C; | |
67 float field_10; | |
68 unsigned int uNumVertices; | |
69 Vec3_int_ v_18; | |
70 int field_24; | |
71 int sTextureDeltaU; | |
72 int sTextureDeltaV; | |
73 __int16 flags; | |
74 __int16 field_32; | |
75 int field_34; | |
76 struct stru149 *ptr_38; | |
2574 | 77 struct Texture_MM7 *pTexture; |
2496 | 78 struct Span *_unused_prolly_head; |
79 struct Span *_unused_prolly_tail; | |
80 int **ptr_48; | |
81 unsigned __int16 uTileBitmapID; | |
82 __int16 field_4E; | |
83 __int16 field_50; | |
84 __int16 field_52; | |
85 ODMFace *pODMFace; | |
86 char dimming_level; | |
87 char field_59; | |
88 char field_5A; | |
89 char field_5B; | |
90 char terrain_grid_z; | |
91 char terrain_grid_x; | |
92 unsigned __int8 uBModelID; | |
93 unsigned __int8 uBModelFaceID; | |
94 struct Edge *pEdgeList1[20]; | |
95 unsigned int uEdgeList1Size; | |
96 struct Edge *pEdgeList2[20]; | |
97 unsigned int uEdgeList2Size; | |
98 char field_108; | |
99 char field_109; | |
100 char field_10A; | |
101 char field_10B; | |
102 }; | |
103 #pragma pack(pop) | |
104 extern std::array<struct Polygon, 2000 + 18000> array_77EC08; | |
105 | |
106 /* 142 */ | |
107 #pragma pack(push, 1) | |
108 struct stru149 | |
109 { | |
110 void _48616B_frustum_odm(int a2, int a3, int a4, int a5, int a6, int a7); | |
111 void _48653D_frustum_blv(int a2, int a3, int a4, int a5, int a6, int a7); | |
112 void _48694B_frustum_sky(); | |
113 | |
114 int field_0_party_dir_x; | |
115 int field_4_party_dir_y; | |
116 int field_8_party_dir_z; | |
117 int angle_from_north;//field_C | |
118 int angle_from_west;//field_10 | |
119 int viewing_angle_from_west_east; | |
120 int angle_from_east;//field_18 | |
121 int angle_from_south;//field_1C | |
122 int viewing_angle_from_north_south;//field_20 | |
123 int field_24; | |
124 int field_28; | |
125 }; | |
126 #pragma pack(pop) | |
127 extern stru149 stru_8019C8; | |
128 | |
129 /* 88 */ | |
130 #pragma pack(push, 1) | |
131 struct ODMRenderParams | |
132 { | |
133 //----- (00462684) -------------------------------------------------------- | |
134 ODMRenderParams() | |
135 { | |
136 uPickDepth = 0; | |
137 this->shading_dist_shade = 2048; | |
138 shading_dist_shademist = 4096; | |
139 shading_dist_mist = 8192; | |
140 int_fov_rad = 0; | |
141 this->bNoSky = 0; | |
142 this->bDoNotRenderDecorations = 0; | |
143 this->field_5C = 0; | |
144 this->field_60 = 0; | |
145 this->outdoor_no_wavy_water = 0; | |
146 this->outdoor_no_mist = 0; | |
147 } | |
148 | |
149 void Initialize(); | |
150 | |
151 int uPickDepth; | |
152 int shading_dist_shade; | |
153 int shading_dist_shademist; | |
154 int shading_dist_mist; | |
155 unsigned int uCameraFovInDegrees; | |
156 int int_fov_rad; // 157 struct IndoorCamera::fov_rad | |
157 int int_fov_rad_inv; // 157 struct IndoorCamera::fov_rad_inv | |
158 int _unused_camera_rotation_y_int_sine; // merged with BLVRenderParams equivalents | |
159 int _unused_camera_rotation_y_int_cosine; // into IndoorCameraD3D | |
160 int _unused_camera_rotation_x_int_sine; // --//-- | |
161 int _unused_camera_rotation_x_int_cosine; // --//-- | |
162 int uNumPolygons; | |
163 unsigned int _unused_uNumEdges; | |
164 unsigned int _unused_uNumSurfs; | |
165 unsigned int _unused_uNumSpans; | |
166 unsigned int uNumBillboards; | |
167 float field_40; | |
168 int field_44; | |
169 int outdoor_grid_band_3; | |
170 int field_4C; | |
171 int field_50; | |
172 unsigned int bNoSky; | |
173 unsigned int bDoNotRenderDecorations; | |
174 int field_5C; | |
175 int field_60; | |
176 int outdoor_no_wavy_water; | |
177 int outdoor_no_mist; | |
178 int building_gamme; | |
179 int terrain_gamma; | |
180 | |
181 unsigned int uMapGridCellX; // moved from 157 struct IndoorCamera::0C | |
182 unsigned int uMapGridCellZ; // moved from 157 struct IndoorCamera::10 | |
183 }; | |
184 #pragma pack(pop) | |
185 extern ODMRenderParams *pODMRenderParams; | |
186 | |
187 | |
188 | |
189 struct Render: public IRender | |
190 { | |
191 Render(); | |
192 virtual ~Render(); | |
193 | |
194 static Render *Create() {return new Render;} | |
195 | |
196 virtual bool Initialize(OSWindow *window); | |
197 | |
198 virtual void ClearBlack(); | |
199 virtual void PresentBlackScreen(); | |
200 | |
201 virtual void SaveWinnersCertificate(const char *a1); | |
202 virtual void ClearTarget(unsigned int uColor); | |
203 virtual void Present(); | |
204 | |
205 virtual void _49FD3A_fullscreen(); | |
206 virtual bool InitializeFullscreen(); | |
207 | |
208 virtual void CreateZBuffer(); | |
209 virtual void Release(); | |
210 | |
211 virtual bool SwitchToWindow(); | |
212 virtual void RasterLine2D(signed int uX, signed int uY, signed int uZ, signed int uW, unsigned __int16 uColor); | |
213 virtual void ClearZBuffer(int a2, int a3); | |
214 virtual void SetRasterClipRect(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW); | |
215 virtual bool LockSurface_DDraw4(IDirectDrawSurface4 *pSurface, DDSURFACEDESC2 *pDesc, unsigned int uLockFlags); | |
216 virtual void GetTargetPixelFormat(DDPIXELFORMAT *pOut); | |
217 virtual void LockRenderSurface(void **pOutSurfacePtr, unsigned int *pOutPixelsPerRow); | |
218 virtual void UnlockBackBuffer(); | |
219 virtual void LockFrontBuffer(void **pOutSurface, unsigned int *pOutPixelsPerRow); | |
220 virtual void UnlockFrontBuffer(); | |
221 virtual void RestoreFrontBuffer(); | |
222 virtual void RestoreBackBuffer(); | |
223 virtual void BltToFront(RECT *pDstRect, IDirectDrawSurface *pSrcSurface, RECT *pSrcRect, unsigned int uBltFlags); | |
224 virtual void BltBackToFontFast(int a2, int a3, RECT *pSrcRect); | |
225 virtual void BeginSceneD3D(); | |
226 | |
227 virtual unsigned int GetActorTintColor(float a2, int tint, int a4, int a5, RenderBillboard *a6); | |
228 | |
229 virtual void DrawPolygon(unsigned int uNumVertices, struct Polygon *a3, ODMFace *a4, IDirect3DTexture2 *pTexture); | |
230 virtual void DrawTerrainPolygon(unsigned int uNumVertices, struct Polygon *a4, IDirect3DTexture2 *a5, bool transparent, bool clampAtTextureBorders); | |
2574 | 231 virtual void DrawIndoorPolygon(unsigned int uNumVertices, struct BLVFace *a3, IDirect3DTexture2 *pHwTex, struct Texture_MM7 *pTex, int uPackedID, unsigned int uColor, int a8); |
2496 | 232 |
233 virtual void MakeParticleBillboardAndPush_BLV(RenderBillboardTransform_local0 *a2, IDirect3DTexture2 *a3, unsigned int uDiffuse, int angle); | |
234 virtual void MakeParticleBillboardAndPush_ODM(RenderBillboardTransform_local0 *a2, IDirect3DTexture2 *a3, unsigned int uDiffuse, int angle); | |
235 | |
236 virtual void DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene(); | |
237 virtual void DrawBillboard_Indoor(RenderBillboardTransform_local0 *pSoftBillboard, Sprite *pSprite, int dimming_level); | |
238 virtual void _4A4CC9_AddSomeBillboard(struct stru6_stru1_indoor_sw_billboard *a1, int diffuse); | |
239 virtual void TransformBillboardsAndSetPalettesODM(); | |
240 virtual void DrawBillboardList_BLV(); | |
241 | |
242 virtual void DrawProjectile(float srcX, float srcY, float a3, float a4, float dstX, float dstY, float a7, float a8, IDirect3DTexture2 *a9); | |
243 virtual bool LoadTexture(const char *pName, unsigned int bMipMaps, IDirectDrawSurface4 **pOutSurface, IDirect3DTexture2 **pOutTexture); | |
244 virtual bool MoveSpriteToDevice(Sprite *pSprite); | |
245 | |
246 virtual void BeginScene(); | |
247 virtual void EndScene(); | |
248 virtual void ScreenFade(unsigned int color, float t); | |
249 | |
2524 | 250 virtual void SetUIClipRect(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW); |
251 virtual void ResetUIClipRect(); | |
2544
c674d547cc7c
GUIWindow switch logic refactored into behaviour classes
a.parshin
parents:
2536
diff
changeset
|
252 virtual void CreditsTextureScroll(unsigned int pX, unsigned int pY, int move_X, int move_Y, struct RGBTexture *pTexture); |
2518 | 253 |
2572
d87bfbd3bb3b
Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents:
2570
diff
changeset
|
254 virtual void DrawTextureNew(float u, float v, struct Image *); |
d87bfbd3bb3b
Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents:
2570
diff
changeset
|
255 virtual void DrawTextureAlphaNew(float u, float v, struct Image *); |
2574 | 256 virtual void DrawTextureCustomHeight(float u, float v, class Image *img, int height); |
257 //virtual void DrawTextureNew(float u, float v, struct Texture_MM7 *); | |
258 //virtual void DrawTextureTransparentColorKey(signed int x, signed int y, struct Texture_MM7 *tex); | |
259 //virtual void DrawTextureIndexedAlpha(unsigned int uX, unsigned int uY, struct Texture_MM7 *pTexture); | |
2496 | 260 |
2574 | 261 virtual void ZBuffer_Fill_2(signed int a2, signed int a3, struct Image *pTexture, int a5); |
262 virtual void ZDrawTextureAlpha(float u, float v, struct Image *pTexture, int zVal); | |
263 virtual void BlendTextures(unsigned int a2, unsigned int a3, struct Image *a4, struct Texture_MM7 *a5, int t, int start_opacity, int end_opacity); | |
264 virtual void _4A65CC(unsigned int x, unsigned int y, struct Texture_MM7 *a4, struct Texture_MM7 *a5, int a6, int a7, int a8); | |
2496 | 265 |
2574 | 266 virtual void DrawTransparentRedShade(float u, float v, struct Image *a4); |
267 virtual void DrawTransparentGreenShade(float u, float v, struct Image *pTexture); | |
2496 | 268 virtual void DrawFansTransparent(const RenderVertexD3D3 *vertices, unsigned int num_vertices); |
269 | |
2574 | 270 virtual void DrawMasked(float u, float v, struct Image *pTexture, unsigned __int16 mask); |
2496 | 271 |
2525 | 272 virtual void DrawTextAlpha(int x, int y, unsigned char* font_pixels, int a5, unsigned int uFontHeight, unsigned __int16 *pPalette, bool present_time_transparency); |
2496 | 273 virtual 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); |
274 | |
275 virtual void FillRectFast(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uColor16); | |
276 virtual void _4A6DF5(unsigned __int16 *pBitmap, unsigned int uBitmapPitch, struct Vec2_int_ *pBitmapXY, void *pTarget, unsigned int uTargetPitch, Vec4_int_ *a7); | |
2574 | 277 virtual void DrawTranslucent(unsigned int a2, unsigned int a3, struct Texture_MM7 *a4); |
2496 | 278 |
279 virtual void DrawBuildingsD3D(); | |
280 //struct BSPModel *DrawBuildingsSW(); | |
281 //int OnOutdoorRedrawSW(); | |
282 | |
283 virtual void DrawIndoorSky(unsigned int uNumVertices, unsigned int uFaceID); | |
284 virtual void DrawOutdoorSkyD3D(); | |
285 //int DrawSkySW(struct Span *a1, Polygon *a2, int a3); | |
286 virtual void DrawOutdoorSkyPolygon(unsigned int uNumVertices, struct Polygon *pSkyPolygon, IDirect3DTexture2 *pTexture); | |
287 virtual void DrawIndoorSkyPolygon(signed int uNumVertices, struct Polygon *pSkyPolygon, IDirect3DTexture2 *pTexture); | |
288 | |
289 virtual void PrepareDecorationsRenderList_ODM(); | |
290 virtual void DrawSpriteObjects_ODM(); | |
291 | |
292 //float DrawBezierTerrain(); | |
293 virtual void RenderTerrainD3D(); | |
2570 | 294 |
295 | |
2496 | 296 //void DrawTerrainSW(int a1, int a2, int a3, int a4); |
297 | |
298 //void ExecOutdoorDrawSW(); | |
299 virtual bool AreRenderSurfacesOk(); | |
300 virtual bool IsGammaSupported(); | |
301 | |
302 virtual void SaveScreenshot(const char *pFilename, unsigned int width, unsigned int height); | |
303 virtual void PackScreenshot(unsigned int width, unsigned int height, void *out_data, unsigned int data_size, unsigned int *screenshot_size); | |
304 virtual void SavePCXScreenshot(); | |
305 | |
306 virtual int _46À6ÀÑ_GetActorsInViewport(int pDepth); | |
307 | |
308 virtual void BeginLightmaps(); | |
309 virtual void EndLightmaps(); | |
310 virtual void BeginLightmaps2(); | |
311 virtual void EndLightmaps2(); | |
312 virtual bool DrawLightmap(struct Lightmap *pLightmap, struct Vec3_float_ *pColorMult, float z_bias); | |
313 | |
314 virtual void BeginDecals(); | |
315 virtual void EndDecals(); | |
316 virtual void DrawDecal(struct Decal *pDecal, float z_bias); | |
317 | |
318 virtual void do_draw_debug_line_d3d(const RenderVertexD3D3 *pLineBegin, signed int sDiffuseBegin, const RenderVertexD3D3 *pLineEnd, signed int sDiffuseEnd, float z_stuff); | |
319 virtual void DrawLines(const RenderVertexD3D3 *vertices, unsigned int num_vertices); | |
320 | |
321 virtual void DrawSpecialEffectsQuad(const RenderVertexD3D3 *vertices, IDirect3DTexture2 *texture); | |
322 | |
323 virtual void am_Blt_Copy(RECT *pSrcRect, POINT *pTargetXY, int a3); | |
324 virtual void am_Blt_Chroma(RECT *pSrcRect, POINT *pTargetPoint, int a3, int blend_mode); | |
325 | |
326 public:/* | |
327 int *pActiveZBuffer; | |
328 IDirectDraw4 *pDirectDraw4; | |
329 IDirectDrawSurface4 *pFrontBuffer4; | |
330 IDirectDrawSurface4 *pBackBuffer4; | |
331 void *pTargetSurface; | |
332 unsigned int uTargetSurfacePitch; | |
333 unsigned int bUseColoredLights; | |
334 unsigned int bTinting; | |
335 unsigned int bUsingSpecular; | |
336 uint32_t uFogColor; | |
337 unsigned int pHDWaterBitmapIDs[7]; | |
338 int hd_water_current_frame; | |
339 int hd_water_tile_id; | |
340 void (*pBeforePresentFunction)(); | |
341 uint32_t bFogEnabled; | |
342 RenderBillboardD3D pBillboardRenderListD3D[1000]; | |
343 unsigned int uNumBillboardsToDraw;*/ | |
344 | |
345 virtual void WritePixel16(int x, int y, unsigned __int16 color) | |
346 { | |
347 if (ddpfPrimarySuface.dwRGBBitCount == 32) | |
348 { | |
349 auto p = (unsigned __int32 *)pTargetSurface + x + y * uTargetSurfacePitch; | |
350 *p = Color32(color); | |
351 } | |
352 else if (ddpfPrimarySuface.dwRGBBitCount == 16) | |
353 { | |
354 auto p = (unsigned __int16 *)pTargetSurface + x + y * uTargetSurfacePitch; | |
355 *p = color; | |
356 } | |
357 else __debugbreak(); | |
358 } | |
359 | |
360 virtual unsigned __int16 ReadPixel16(int x, int y) | |
361 { | |
362 if (ddpfPrimarySuface.dwRGBBitCount == 32) | |
363 { | |
364 auto p = (unsigned __int32 *)pTargetSurface + x + y * uTargetSurfacePitch; | |
365 return Color16((*p >> 16) & 255, (*p >> 8) & 255, *p & 255); | |
366 } | |
367 else if (ddpfPrimarySuface.dwRGBBitCount == 16) | |
368 { | |
369 auto p = (unsigned __int16 *)pTargetSurface + x + y * uTargetSurfacePitch; | |
370 return *p; | |
371 } | |
372 else __debugbreak(); | |
373 } | |
374 | |
375 virtual void ToggleTint() {bTinting = !bTinting;} | |
376 virtual void ToggleColoredLights() {bUseColoredLights = !bUseColoredLights;} | |
377 | |
378 virtual unsigned int GetRenderWidth() {return window->GetWidth();} | |
379 virtual unsigned int GetRenderHeight() {return window->GetHeight();} | |
380 | |
381 virtual void Sub01() | |
382 { | |
383 if (pRenderD3D && !bWindowMode) | |
384 _49FD3A_fullscreen(); | |
385 } | |
386 | |
387 friend void Present_NoColorKey(); | |
388 | |
389 protected: | |
390 unsigned int uDesiredDirect3DDevice; | |
391 int raster_clip_x; | |
392 int raster_clip_y; // clipping rect for raster ops | |
393 int raster_clip_z; // like RasterLine2D for (mini)map | |
394 int raster_clip_w; | |
395 int *pDefaultZBuffer; | |
396 OSWindow *window; | |
397 unsigned int bWindowMode; | |
398 RenderD3D *pRenderD3D; | |
399 DDPIXELFORMAT ddpfPrimarySuface; | |
400 unsigned int uTargetRBits; | |
401 unsigned int uTargetGBits; | |
402 unsigned int uTargetBBits; | |
403 unsigned int uTargetRMask; | |
404 unsigned int uTargetGMask; | |
405 unsigned int uTargetBMask; | |
406 unsigned int uNumSceneBegins; | |
407 unsigned __int32 *pTargetSurface_unaligned; | |
408 unsigned int uClipY; | |
409 unsigned int uClipX; | |
410 unsigned int uClipW; | |
411 unsigned int uClipZ; | |
412 unsigned int bClip; | |
413 unsigned int uNumD3DSceneBegins; | |
414 int using_software_screen_buffer; | |
415 RenderHWLContainer pD3DBitmaps; | |
416 RenderHWLContainer pD3DSprites; | |
417 unsigned int bRequiredTextureStagesAvailable; | |
418 unsigned int uLevelOfDetail; | |
419 unsigned int uMaxDeviceTextureDim; | |
420 unsigned int uMinDeviceTextureDim; | |
421 | |
422 void DoRenderBillboards_D3D(); | |
423 void SetBillboardBlendOptions(RenderBillboardD3D::OpacityType a1); | |
424 void TransformBillboard(RenderBillboardTransform_local0 *a2, Sprite *pSprite, int dimming_level, RenderBillboard *pBillboard); | |
425 unsigned int Billboard_ProbablyAddToListAndSortByZOrder(float z); | |
426 unsigned int GetParentBillboardID(unsigned int uBillboardID); | |
427 unsigned int GetBillboardDrawListSize(); | |
428 | |
429 void DrawBorderTiles(struct Polygon *poly); | |
430 | |
431 unsigned short *MakeScreenshot(signed int width, signed int height); | |
432 bool CheckTextureStages(); | |
433 void ParseTargetPixelFormat(); | |
434 | |
435 void CreateDirectDraw(); | |
436 void SetDirectDrawCooperationMode(HWND hWnd, bool bFullscreen); | |
437 void SetDirectDrawDisplayMode(unsigned int uWidth, unsigned int uHeight, unsigned int uBPP); | |
438 void CreateFrontBuffer(); | |
439 void CreateBackBuffer(); | |
440 void CreateDirectDrawPrimarySurface(); | |
441 void CreateClipper(HWND a2); | |
442 | |
443 void PackPCXpicture(unsigned short* picture_data, int wight, int heidth, void *data_buff, int max_buff_size,unsigned int* packed_size); | |
444 void SavePCXImage(const char *Filename, unsigned short* picture_data, int width, int height); | |
445 | |
446 //int windowed_mode_width; | |
447 //int windowed_mode_height; | |
448 }; | |
449 | |
450 unsigned int __fastcall _452442_color_cvt(unsigned __int16 a1, unsigned __int16 a2, int a3, int a4); | |
451 | |
452 int __fastcall GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5); | |
453 int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel); | |
454 int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z); | |
455 unsigned int __fastcall GetMaxMipLevels(unsigned int uDim); | |
456 int _46E44E_collide_against_faces_and_portals(unsigned int b1); // idb | |
457 int __fastcall _46E889_collide_against_bmodels(unsigned int ecx0); | |
458 int collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb | |
459 void __fastcall _46ED8A_collide_against_sprite_objects(unsigned int _this); | |
460 int _46EF01_collision_chech_player(int a1); // idb | |
461 void _46E0B2_collide_against_decorations(); | |
462 int _46F04E_collide_against_portals(); | |
463 unsigned int __fastcall sub_46DEF2(signed int a2, unsigned int uLayingItemID); | |
464 void UpdateObjects(); | |
465 bool sub_47531C(int a1, int *a2, int pos_x, int pos_y, int pos_z, int dir_x, int dir_y, int dir_z, struct BLVFace *face, int a10); | |
466 bool sub_4754BF(int a1, int *a2, int X, int Y, int Z, int dir_x, int dir_y, int dir_z, struct BLVFace *face, int a10, int a11); | |
467 int sub_475665(struct BLVFace *face, int a2, __int16 a3); | |
468 bool __fastcall sub_4759C9(struct BLVFace *face, int a2, int a3, __int16 a4); | |
469 bool __fastcall sub_475D85(Vec3_int_ *a1, Vec3_int_ *a2, int *a3, struct BLVFace *a4); | |
470 bool __fastcall sub_475F30(int *a1, struct BLVFace *a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9); | |
471 | |
472 bool __fastcall IsBModelVisible(unsigned int uModelID, int *unused); |