re3/src/rw/RwHelper.h

55 lines
2 KiB
C
Raw Normal View History

2019-05-15 14:52:37 +00:00
#pragma once
2020-04-25 10:16:50 +00:00
extern bool gPS2alphaTest;
2019-06-17 13:32:38 +00:00
void *RwMallocAlign(RwUInt32 size, RwUInt32 align);
void RwFreeAlign(void *mem);
2020-04-24 11:27:02 +00:00
void OpenCharsetSafe();
void CreateDebugFont();
void DestroyDebugFont();
2020-04-14 07:31:00 +00:00
void ObrsPrintfString(const char *str, short x, short y);
void FlushObrsPrintfs();
2019-05-30 11:35:13 +00:00
void DefinedState(void);
RwFrame *GetFirstChild(RwFrame *frame);
2019-05-15 14:52:37 +00:00
RwObject *GetFirstObject(RwFrame *frame);
RpAtomic *GetFirstAtomic(RpClump *clump);
2019-06-23 17:59:58 +00:00
RwTexture *GetFirstTexture(RwTexDictionary *txd);
#ifdef PED_SKIN
RpAtomic *IsClumpSkinned(RpClump *clump);
RpHAnimHierarchy *GetAnimHierarchyFromSkinClump(RpClump *clump); // get from atomic
RpHAnimHierarchy *GetAnimHierarchyFromClump(RpClump *clump); // get from frame
RwFrame *GetHierarchyFromChildNodesCB(RwFrame *frame, void *data);
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);
#endif
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);
void ConvertingTexturesScreen(uint32, uint32, const char*);
void DealWithTxdWriteError(uint32, uint32, const char*);
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);
void CameraSize(RwCamera *camera,
RwRect *rect,
RwReal viewWindow,
RwReal aspectRatio);
void CameraDestroy(RwCamera *camera);
RwCamera *CameraCreate(RwInt32 width,
RwInt32 height,
RwBool zBuffer);
void _TexturePoolsInitialise();
void _TexturePoolsShutdown();