Mercurial > games > semicongine
diff semicongine.nim @ 1298:1feaa8a97acf
did: halfway complete refactoring to move from all-include to some-include+imports, no API changes
author | sam <sam@basx.dev> |
---|---|
date | Tue, 06 Aug 2024 17:31:13 +0700 |
parents | 01138e6257dd |
children | 6d0162bfe48a |
line wrap: on
line diff
--- a/semicongine.nim Tue Aug 06 14:31:59 2024 +0700 +++ b/semicongine.nim Tue Aug 06 17:31:13 2024 +0700 @@ -1,57 +1,40 @@ -import std/algorithm -import std/dynlib -import std/endians -import std/enumerate -import std/hashes -import std/json -import std/locks -import std/logging -import std/marshal -import std/math -import std/macros -import std/monotimes -import std/os -import std/options -import std/parsecfg -import std/parseutils -import std/paths -import std/random -import std/sequtils -import std/sets -import std/strformat -import std/streams -import std/strutils -import std/tables -import std/times -import std/typetraits -import std/unicode +import ./semicongine/core +export core + +import ./semicongine/resources +export resources + +import ./semicongine/image +export image - -include ./semicongine/rendering/vulkan/api -include ./semicongine/core - -setLogFilter(ENGINE_LOGLEVEL) - -include ./semicongine/resources +import ./semicongine/events +import ./semicongine/rendering +export events +export rendering -include ./semicongine/image - -include ./semicongine/events -include ./semicongine/rendering +import ./semicongine/storage +import ./semicongine/input +export storage +export input -include ./semicongine/storage -include ./semicongine/input - -include ./semicongine/audio +import ./semicongine/audio +export audio # texture packing is required for font atlas -include ./semicongine/contrib/algorithms/texture_packing -include ./semicongine/text +import ./semicongine/text +export text -include ./semicongine/gltf +import ./semicongine/gltf +export gltf when not defined(WITHOUT_CONTRIB): - include ./semicongine/contrib/steam - include ./semicongine/contrib/settings - include ./semicongine/contrib/algorithms/collision - include ./semicongine/contrib/algorithms/noise + import ./semicongine/contrib/steam + import ./semicongine/contrib/settings + import ./semicongine/contrib/algorithms/texture_packing + import ./semicongine/contrib/algorithms/collision + import ./semicongine/contrib/algorithms/noise + export steam + export settings + export texture_packing + export collision + export noise