mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +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")]
|
[LinkName("SDL_malloc")]
|
||||||
static extern void* malloc(int size);
|
public static extern void* malloc(int size);
|
||||||
|
|
||||||
[LinkName("SDL_free")]
|
[LinkName("SDL_free")]
|
||||||
static extern void free(void* memblock);
|
public static extern void free(void* memblock);
|
||||||
|
|
||||||
public struct RWOps;
|
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)
|
public void Draw(Image image, float x, float y)
|
||||||
{
|
{
|
||||||
SDL.Rect srcRect = .(0, 0, image.mSurface.w, image.mSurface.h);
|
SDL.Rect srcRect = .(0, 0, image.mSurface.w, image.mSurface.h);
|
||||||
|
@ -226,8 +231,7 @@ namespace SDL2
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.type == .Quit)
|
HandleEvent(event);
|
||||||
return;
|
|
||||||
|
|
||||||
waitTime = 0;
|
waitTime = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue