Fix MathUtils.LerpVector2, add cameras.
This commit is contained in:
@@ -52,6 +52,17 @@ namespace DaggerFramework.Rendering
|
||||
Raylib.EndDrawing();
|
||||
}
|
||||
|
||||
public override void BeginCamera2d(Vector2 offset, Vector2 target, float rotation, float zoom)
|
||||
{
|
||||
var camera = new Camera2D(offset, target, rotation, zoom);
|
||||
Raylib.BeginMode2D(camera);
|
||||
}
|
||||
|
||||
public override void EndCamera2d()
|
||||
{
|
||||
Raylib.EndMode2D();
|
||||
}
|
||||
|
||||
public override void ClearBackground(Color color)
|
||||
{
|
||||
Raylib.ClearBackground(DaggerColorToRaylibColor(color));
|
||||
|
||||
Reference in New Issue
Block a user