Reorganizing

This commit is contained in:
Matt Thorson
2020-05-05 18:51:27 -07:00
parent 9374086e97
commit 409a82d6b8
9 changed files with 85 additions and 24 deletions

16
src/Static/Draw.bf Normal file
View File

@ -0,0 +1,16 @@
namespace Strawberry
{
static public class Draw
{
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));
}
static public void Rect(Rect rect, SDL2.SDL.Color color)
{
Rect(rect.X, rect.Y, rect.Width, rect.Height, color);
}
}
}