impworks / corund

2D game engine for mobile devices in C#.
MIT License
17 stars 1 forks source link

Drawing wrappers #3

Closed impworks closed 7 years ago

impworks commented 7 years ago

Drawing should be separated into three methods:

public void Draw()
{
    BeforeDraw();
    DrawInternal();
    AfterDraw();
}

Draw wrappers can be used to:

impworks commented 7 years ago

Better approach: DrawInternal is passed into Shader.Draw.