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:
commit
9c09fbd6c0
2 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue