Mercurial > games > semicongine
diff semicongine/algorithms.nim @ 1138:02e1d2658ff5
did: more renaming
author | sam <sam@basx.dev> |
---|---|
date | Tue, 04 Jun 2024 22:08:48 +0700 |
parents | a4aa9f374d44 |
children |
line wrap: on
line diff
--- a/semicongine/algorithms.nim Tue Jun 04 20:51:22 2024 +0700 +++ b/semicongine/algorithms.nim Tue Jun 04 22:08:48 2024 +0700 @@ -46,7 +46,7 @@ return (false, newRect) -proc pack*[T: Pixel](images: seq[Image[T]]): tuple[atlas: Image[T], coords: seq[tuple[x: uint32, y: uint32]]] = +proc Pack*[T: Pixel](images: seq[Image[T]]): tuple[atlas: Image[T], coords: seq[tuple[x: uint32, y: uint32]]] = const MAX_ATLAS_SIZE = 4096'u32 var areas: seq[tuple[i: int, w, h: uint32]]