summaryrefslogtreecommitdiffstats
path: root/src/rw/RwHelper.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-14 09:31:00 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-14 09:31:37 +0200
commit7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806 (patch)
tree5a2728e938adede0bd8ce1b28e79cc97376dba2d /src/rw/RwHelper.cpp
parentSome cleanup (diff)
downloadre3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.gz
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.bz2
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.lz
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.xz
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.zst
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.zip
Diffstat (limited to '')
-rw-r--r--src/rw/RwHelper.cpp53
1 files changed, 38 insertions, 15 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp
index 44866f4f..44ca3a0a 100644
--- a/src/rw/RwHelper.cpp
+++ b/src/rw/RwHelper.cpp
@@ -3,6 +3,44 @@
#include "patcher.h"
#include "Timecycle.h"
#include "skeleton.h"
+#if defined(RWLIBS) && !defined(FINAL)
+#include "rtcharse.h"
+#pragma comment( lib, "rtcharse.lib" )
+
+RtCharset *debugCharset;
+#endif
+
+void CreateDebugFont()
+{
+#if defined(RWLIBS) && !defined(FINAL)
+ RwRGBA color = { 255, 255, 128, 255 };
+ RwRGBA colorbg = { 0, 0, 0, 0 };
+ RtCharsetOpen();
+ debugCharset = RtCharsetCreate(&color, &colorbg);
+#endif
+}
+
+void DestroyDebugFont()
+{
+#if defined(RWLIBS) && !defined(FINAL)
+ RtCharsetDestroy(debugCharset);
+ RtCharsetClose();
+#endif
+}
+
+void ObrsPrintfString(const char *str, short x, short y)
+{
+#if defined(RWLIBS) && !defined(FINAL)
+ RtCharsetPrintBuffered(debugCharset, str, x, y, true);
+#endif
+}
+
+void FlushObrsPrintfs()
+{
+#if defined(RWLIBS) && !defined(FINAL)
+ RtCharsetBufferFlush();
+#endif
+}
void *
RwMallocAlign(RwUInt32 size, RwUInt32 align)
@@ -347,21 +385,6 @@ CameraCreate(RwInt32 width, RwInt32 height, RwBool zBuffer)
return (nil);
}
-void CreateDebugFont()
-{
- ;
-}
-
-void DestroyDebugFont()
-{
- ;
-}
-
-void FlushObrsPrintfs()
-{
- ;
-}
-
WRAPPER void _TexturePoolsInitialise() { EAXJMP(0x598B10); }
WRAPPER void _TexturePoolsShutdown() { EAXJMP(0x598B30); }