This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit DAsmJit_MathPresso; | |
{$I DAsmJit.inc} | |
interface | |
uses | |
DAsmJit; | |
type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public unsafe class Utf8Buffer | |
{ | |
private const int BufferSize = 4 * 1024 * 20; //20k utf8 chars at least | |
private IntPtr _memPtr; | |
private byte* _buffer; | |
private int _usedBytes; | |
public Utf8Buffer() | |
{ | |
Init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sdlvideo.inc b/sdlvideo.inc | |
index ca254c9..5310c46 100644 | |
--- a/sdlvideo.inc | |
+++ b/sdlvideo.inc | |
@@ -1222,6 +1222,25 @@ function SDL_GL_GetCurrentWindow: PSDL_Window cdecl; external SDL_LibName {$IFDE | |
function SDL_GL_GetCurrentContext: TSDL_GLContext cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_GL_GetCurrentContext' {$ENDIF} {$ENDIF}; | |
{** | |
+ * Get the size of a window's underlying drawable in pixels (for use | |
+ * with glViewport). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//imgui native: | |
[DllImport(cimguiLib)] | |
public static extern byte* igGetVersion(); | |
//imgui | |
public static unsafe string GetVersion() | |
{ | |
var version = ImGuiNative.igGetVersion(); | |
int length = 0; | |
while (version[length] != '\0') |