annotate semicongine.nim @ 1295:76ca976804d0

fix: scale x to keep aspect ratio instead of y
author sam <sam@basx.dev>
date Mon, 05 Aug 2024 17:17:31 +0700
parents 01138e6257dd
children 1feaa8a97acf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1267
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
1 import std/algorithm
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
2 import std/dynlib
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
3 import std/endians
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
4 import std/enumerate
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
5 import std/hashes
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
6 import std/json
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
7 import std/locks
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
8 import std/logging
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
9 import std/marshal
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
10 import std/math
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
11 import std/macros
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
12 import std/monotimes
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
13 import std/os
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
14 import std/options
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
15 import std/parsecfg
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
16 import std/parseutils
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
17 import std/paths
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
18 import std/random
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
19 import std/sequtils
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
20 import std/sets
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
21 import std/strformat
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
22 import std/streams
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
23 import std/strutils
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
24 import std/tables
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
25 import std/times
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
26 import std/typetraits
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
27 import std/unicode
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
28
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
29
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
30 include ./semicongine/rendering/vulkan/api
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
31 include ./semicongine/core
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
32
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
33 setLogFilter(ENGINE_LOGLEVEL)
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
34
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
35 include ./semicongine/resources
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
36
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
37 include ./semicongine/image
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
38
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
39 include ./semicongine/events
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
40 include ./semicongine/rendering
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
41
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
42 include ./semicongine/storage
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
43 include ./semicongine/input
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
44
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
45 include ./semicongine/audio
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
46
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
47 # texture packing is required for font atlas
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
48 include ./semicongine/contrib/algorithms/texture_packing
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
49 include ./semicongine/text
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
50
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
51 include ./semicongine/gltf
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
52
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
53 when not defined(WITHOUT_CONTRIB):
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
54 include ./semicongine/contrib/steam
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
55 include ./semicongine/contrib/settings
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
56 include ./semicongine/contrib/algorithms/collision
4cf9872f7bb6 did: rename back to old name (no v2)
sam <sam@basx.dev>
parents:
diff changeset
57 include ./semicongine/contrib/algorithms/noise