-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sending data to the nineslice shader
- Loading branch information
1 parent
1148cbc
commit c759458
Showing
11 changed files
with
236 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
indigo/indigo/src/main/scala/indigo/shared/materials/FillType.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package indigo.shared.materials | ||
|
||
import indigo.shared.datatypes.Rectangle | ||
|
||
enum FillType derives CanEqual: | ||
case Normal | ||
case Stretch | ||
case Tile | ||
case NineSlice(center: Rectangle) | ||
|
||
object FillType: | ||
object NineSlice: | ||
def apply(top: Int, right: Int, bottom: Int, left: Int): FillType = | ||
FillType.NineSlice( | ||
Rectangle(left, top, right - left, bottom - top) | ||
) |
Oops, something went wrong.