Replaced SDLApp code in Game, no longer extends it

This commit is contained in:
Matt Thorson
2020-05-06 21:13:34 -07:00
parent 12c10909c9
commit 0a709b5788
8 changed files with 142 additions and 35 deletions

View File

@ -4,8 +4,8 @@ namespace Strawberry
{
static public void Rect(int x, int y, int w, int h, SDL2.SDL.Color color)
{
SDL2.SDL.SetRenderDrawColor(Game.mRenderer, color.r, color.g, color.b, color.a);
SDL2.SDL.RenderFillRect(Game.mRenderer, &SDL2.SDL.Rect((int32)x, (int32)y, (int32)w, (int32)h));
SDL2.SDL.SetRenderDrawColor(Game.Renderer, color.r, color.g, color.b, color.a);
SDL2.SDL.RenderFillRect(Game.Renderer, &SDL2.SDL.Rect((int32)x, (int32)y, (int32)w, (int32)h));
}
static public void Rect(Rect rect, SDL2.SDL.Color color)