summaryrefslogtreecommitdiffstats
path: root/src/rw/RwHelper.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-12 11:08:30 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-12 11:08:30 +0200
commitcbb298c8dd0ff23007ba403157a47da1ddf134d5 (patch)
tree6f069af03c21d9af52cdcebd6fef7117454394d1 /src/rw/RwHelper.h
parentMerge branch 'master' into garages_dev (diff)
parentMerge pull request #402 from Nick007J/master (diff)
downloadre3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.gz
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.bz2
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.lz
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.xz
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.tar.zst
re3-cbb298c8dd0ff23007ba403157a47da1ddf134d5.zip
Diffstat (limited to 'src/rw/RwHelper.h')
-rw-r--r--src/rw/RwHelper.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/rw/RwHelper.h b/src/rw/RwHelper.h
new file mode 100644
index 00000000..a9f0bdf4
--- /dev/null
+++ b/src/rw/RwHelper.h
@@ -0,0 +1,40 @@
+#pragma once
+
+void *RwMallocAlign(RwUInt32 size, RwUInt32 align);
+void RwFreeAlign(void *mem);
+
+void CreateDebugFont();
+void DestroyDebugFont();
+void FlushObrsPrintfs();
+void DefinedState(void);
+RwFrame *GetFirstChild(RwFrame *frame);
+RwObject *GetFirstObject(RwFrame *frame);
+RpAtomic *GetFirstAtomic(RpClump *clump);
+RwTexture *GetFirstTexture(RwTexDictionary *txd);
+
+RwTexDictionary *RwTexDictionaryGtaStreamRead(RwStream *stream);
+RwTexDictionary *RwTexDictionaryGtaStreamRead1(RwStream *stream);
+RwTexDictionary *RwTexDictionaryGtaStreamRead2(RwStream *stream, RwTexDictionary *texDict);
+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();
+
+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(); \ No newline at end of file