annotate semiconginev2.nim @ 1234:841e12f33c47

add: text & font rendering, not tested yet
author sam <sam@basx.dev>
date Sat, 20 Jul 2024 00:03:57 +0700
parents c8e3037aca66
children e8b3dc80e48e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
1 import std/algorithm
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
2 import std/dynlib
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
3 import std/endians
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
4 import std/enumerate
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
5 import std/hashes
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
6 import std/json
1224
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
7 import std/locks
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
8 import std/logging
1199
ba1af13233ee add: working main-renderloop
sam <sam@basx.dev>
parents: 1193
diff changeset
9 import std/marshal
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
10 import std/math
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
11 import std/macros
1214
04e446a7eb2b add: multipass renderer, finish tets for now
sam <sam@basx.dev>
parents: 1201
diff changeset
12 import std/monotimes
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
13 import std/os
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
14 import std/options
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
15 import std/parsecfg
1226
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
16 import std/parseutils
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
17 import std/paths
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
18 import std/random
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
19 import std/sequtils
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
20 import std/sets
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
21 import std/strformat
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
22 import std/streams
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
23 import std/strutils
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
24 import std/tables
1214
04e446a7eb2b add: multipass renderer, finish tets for now
sam <sam@basx.dev>
parents: 1201
diff changeset
25 import std/times
1201
d4a206b5e5b0 add: rest of the cleanup stuff
sam <sam@basx.dev>
parents: 1199
diff changeset
26 import std/typetraits
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
27 import std/unicode
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents: 1190
diff changeset
28
1226
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
29
1223
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
30 include ./semiconginev2/rendering/vulkan/api
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
31 include ./semiconginev2/core
1199
ba1af13233ee add: working main-renderloop
sam <sam@basx.dev>
parents: 1193
diff changeset
32
1226
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
33 setLogFilter(ENGINE_LOGLEVEL)
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
34
1225
27cd1c21290e did: refactor resources
sam <sam@basx.dev>
parents: 1224
diff changeset
35 include ./semiconginev2/resources
1224
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
36
1223
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
37 include ./semiconginev2/events
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
38 include ./semiconginev2/rendering
1199
ba1af13233ee add: working main-renderloop
sam <sam@basx.dev>
parents: 1193
diff changeset
39
1223
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
40 include ./semiconginev2/storage
55896320c8bf fix: references to new package not updated
sam <sam@basx.dev>
parents: 1217
diff changeset
41 include ./semiconginev2/input
1224
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
42
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
43 include ./semiconginev2/audio
a3fa15c25026 did: cleanup, add audio, change platform-dependent structure
sam <sam@basx.dev>
parents: 1223
diff changeset
44
1234
841e12f33c47 add: text & font rendering, not tested yet
sam <sam@basx.dev>
parents: 1226
diff changeset
45 # texture packing is required for font atlas
841e12f33c47 add: text & font rendering, not tested yet
sam <sam@basx.dev>
parents: 1226
diff changeset
46 include ./semiconginev2/contrib/algorithms/texture_packing
841e12f33c47 add: text & font rendering, not tested yet
sam <sam@basx.dev>
parents: 1226
diff changeset
47 include ./semiconginev2/text
841e12f33c47 add: text & font rendering, not tested yet
sam <sam@basx.dev>
parents: 1226
diff changeset
48
1226
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
49 when not defined(NO_CONTRIB):
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
50 include ./semiconginev2/contrib/steam
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
51 include ./semiconginev2/contrib/settings
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
52 include ./semiconginev2/contrib/algorithms/collision
c8e3037aca66 add: contrib stuff
sam <sam@basx.dev>
parents: 1225
diff changeset
53 include ./semiconginev2/contrib/algorithms/noise