Mercurial > games > semicongine
diff src/semicongine/resources.nim @ 363:451b7ccfe722
improve 2D collision, add some vector functionality, allow shaders/pipelines to be ordered for deterministic rendering order
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 01 Oct 2023 20:53:35 +0700 |
parents | 5dcd551130be |
children | eef6cc3e1104 |
line wrap: on
line diff
--- a/src/semicongine/resources.nim Fri Sep 29 19:30:07 2023 +0700 +++ b/src/semicongine/resources.nim Sun Oct 01 20:53:35 2023 +0700 @@ -136,6 +136,9 @@ proc loadMeshes*(path: string): seq[MeshTree] = loadResource_intern(path).readglTF() +proc loadFirstMesh*(path: string): Mesh = + loadResource_intern(path).readglTF()[0].toSeq[0] + proc modList*(): seq[string] = modList_intern()