2019-05-15 14:52:37 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-25 10:16:50 +00:00
|
|
|
extern bool gPS2alphaTest;
|
2020-05-11 15:03:32 +00:00
|
|
|
extern bool gBackfaceCulling;
|
2020-04-25 10:16:50 +00:00
|
|
|
|
2020-04-24 11:27:02 +00:00
|
|
|
void OpenCharsetSafe();
|
2020-03-28 20:55:23 +00:00
|
|
|
void CreateDebugFont();
|
|
|
|
void DestroyDebugFont();
|
2020-04-14 07:31:00 +00:00
|
|
|
void ObrsPrintfString(const char *str, short x, short y);
|
2020-03-28 20:55:23 +00:00
|
|
|
void FlushObrsPrintfs();
|
2019-05-30 11:35:13 +00:00
|
|
|
void DefinedState(void);
|
2020-05-11 15:03:32 +00:00
|
|
|
void SetCullMode(uint32 mode);
|
2019-06-12 18:07:37 +00:00
|
|
|
RwFrame *GetFirstChild(RwFrame *frame);
|
2019-05-15 14:52:37 +00:00
|
|
|
RwObject *GetFirstObject(RwFrame *frame);
|
2019-06-12 18:07:37 +00:00
|
|
|
RpAtomic *GetFirstAtomic(RpClump *clump);
|
2019-06-23 17:59:58 +00:00
|
|
|
RwTexture *GetFirstTexture(RwTexDictionary *txd);
|
2019-06-12 17:05:06 +00:00
|
|
|
|
2020-08-20 10:53:17 +00:00
|
|
|
bool IsClumpSkinned(RpClump *clump);
|
2020-04-23 20:25:18 +00:00
|
|
|
RpHAnimHierarchy *GetAnimHierarchyFromSkinClump(RpClump *clump); // get from atomic
|
|
|
|
RpHAnimHierarchy *GetAnimHierarchyFromClump(RpClump *clump); // get from frame
|
|
|
|
void SkinGetBonePositionsToTable(RpClump *clump, RwV3d *boneTable);
|
|
|
|
RpHAnimAnimation *HAnimAnimationCreateForHierarchy(RpHAnimHierarchy *hier);
|
2020-04-24 22:40:14 +00:00
|
|
|
RpAtomic *AtomicRemoveAnimFromSkinCB(RpAtomic *atomic, void *data);
|
|
|
|
void RenderSkeleton(RpHAnimHierarchy *hier);
|
2020-04-23 20:25:18 +00:00
|
|
|
|
2020-07-29 09:17:53 +00:00
|
|
|
RwBool Im2DRenderQuad(RwReal x1, RwReal y1, RwReal x2, RwReal y2, RwReal z, RwReal recipCamZ, RwReal uvOffset);
|
|
|
|
RpClump *RpClumpGetBoundingSphere(RpClump *clump, RwSphere *sphere, bool useLTM);
|
|
|
|
|
2019-06-13 09:57:43 +00:00
|
|
|
RwTexDictionary *RwTexDictionaryGtaStreamRead(RwStream *stream);
|
2019-06-13 10:25:55 +00:00
|
|
|
RwTexDictionary *RwTexDictionaryGtaStreamRead1(RwStream *stream);
|
|
|
|
RwTexDictionary *RwTexDictionaryGtaStreamRead2(RwStream *stream, RwTexDictionary *texDict);
|
2020-03-22 14:23:40 +00:00
|
|
|
void ReadVideoCardCapsFile(uint32&, uint32&, uint32&, uint32&);
|
|
|
|
bool CheckVideoCardCaps(void);
|
|
|
|
void WriteVideoCardCapsFile(void);
|
2020-08-20 10:53:17 +00:00
|
|
|
bool CanVideoCardDoDXT(void);
|
2020-03-22 14:23:40 +00:00
|
|
|
void ConvertingTexturesScreen(uint32, uint32, const char*);
|
|
|
|
void DealWithTxdWriteError(uint32, uint32, const char*);
|
2020-03-28 20:55:23 +00:00
|
|
|
bool CreateTxdImageForVideoCard();
|
2019-06-13 10:25:55 +00:00
|
|
|
|
2019-06-13 09:57:43 +00:00
|
|
|
bool RpClumpGtaStreamRead1(RwStream *stream);
|
|
|
|
RpClump *RpClumpGtaStreamRead2(RwStream *stream);
|
|
|
|
void RpClumpGtaCancelStream(void);
|
|
|
|
|
2019-06-12 18:07:37 +00:00
|
|
|
void CameraSize(RwCamera *camera,
|
|
|
|
RwRect *rect,
|
|
|
|
RwReal viewWindow,
|
|
|
|
RwReal aspectRatio);
|
|
|
|
void CameraDestroy(RwCamera *camera);
|
|
|
|
RwCamera *CameraCreate(RwInt32 width,
|
|
|
|
RwInt32 height,
|
|
|
|
RwBool zBuffer);
|
2020-03-28 20:55:23 +00:00
|
|
|
|
|
|
|
|
2020-07-16 11:36:25 +00:00
|
|
|
|
|
|
|
RpAtomic *ConvertPlatformAtomic(RpAtomic *atomic, void *data);
|
2020-07-29 12:34:57 +00:00
|
|
|
|
2020-07-29 11:56:06 +00:00
|
|
|
#if defined(FIX_BUGS) && defined (GTA_PC)
|
|
|
|
void SetAlphaTest(RwUInt32 alpharef);
|
|
|
|
void RestoreAlphaTest();
|
|
|
|
#else
|
|
|
|
#define SetAlphaTest(a) (0)
|
|
|
|
#define RestoreAlphaTest() (0)
|
|
|
|
#endif
|