Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
Canvas has been fully migrated over to PixelData.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessefreeman committed Oct 13, 2020
1 parent 28c0c60 commit 874a64a
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 134 deletions.
8 changes: 4 additions & 4 deletions SDK/Editor/Editors/GameEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,10 @@ public void ClearColors(string color = null)
colorChip.Clear(color);
}

// public void ClearSprites()
// {
// // spriteChip.Clear();
// }
public void ClearSprites()
{
spriteChip.Clear();
}

/// <summary>
/// Get the TotalDisks colors or change the limit for how many colors the color chip can store.
Expand Down
5 changes: 5 additions & 0 deletions SDK/Engine/Chips/Graphics/SpriteChip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ public override void Configure()
// Clear();
}

public void Clear()
{
spriteMemory.Clear();
}

public override void Deactivate()
{
base.Deactivate();
Expand Down

0 comments on commit 874a64a

Please sign in to comment.