mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 16:14:09 +00:00
implemented debugmenu
This commit is contained in:
parent
f03b4eec4c
commit
5bb4e99926
14 changed files with 1621 additions and 200 deletions
|
@ -9,12 +9,20 @@
|
|||
RtCharset *debugCharset;
|
||||
#endif
|
||||
|
||||
static bool charsetOpen;
|
||||
void OpenCharsetSafe()
|
||||
{
|
||||
if(!charsetOpen)
|
||||
RtCharsetOpen();
|
||||
charsetOpen = true;
|
||||
}
|
||||
|
||||
void CreateDebugFont()
|
||||
{
|
||||
#ifndef FINAL
|
||||
RwRGBA color = { 255, 255, 128, 255 };
|
||||
RwRGBA colorbg = { 0, 0, 0, 0 };
|
||||
RtCharsetOpen();
|
||||
OpenCharsetSafe();
|
||||
debugCharset = RtCharsetCreate(&color, &colorbg);
|
||||
#endif
|
||||
}
|
||||
|
@ -24,6 +32,7 @@ void DestroyDebugFont()
|
|||
#ifndef FINAL
|
||||
RtCharsetDestroy(debugCharset);
|
||||
RtCharsetClose();
|
||||
charsetOpen = false;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue