1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Brian Fiete 2020-05-14 15:21:50 -07:00
commit 9c09fbd6c0
2 changed files with 8 additions and 4 deletions

View file

@ -52,10 +52,10 @@ namespace SDL2
}
[LinkName("SDL_malloc")]
static extern void* malloc(int size);
public static extern void* malloc(int size);
[LinkName("SDL_free")]
static extern void free(void* memblock);
public static extern void free(void* memblock);
public struct RWOps;

View file

@ -166,6 +166,11 @@ namespace SDL2
}
public virtual void HandleEvent(SDL.Event evt)
{
}
public void Draw(Image image, float x, float y)
{
SDL.Rect srcRect = .(0, 0, image.mSurface.w, image.mSurface.h);
@ -226,8 +231,7 @@ namespace SDL2
default:
}
if (event.type == .Quit)
return;
HandleEvent(event);
waitTime = 0;
}