annotate examples/hello_triangle.nim @ 17:b40466fa446a

add: vertex basics, some refactoring
author Sam <sam@basx.dev>
date Sun, 01 Jan 2023 01:00:50 +0700
parents 9e5fe647ff91
children b55d6ecde79d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
1 import engine
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
2
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
3
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
4 when isMainModule:
2
213fdf8d31dd did: hello world triangle, a bit of code organization
Sam <sam@basx.dev>
parents: 0
diff changeset
5 var myengine = igniteEngine()
0
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
6 myengine.fullThrottle()
5daf3f236d87 add: initial version
Sam <sam@basx.dev>
parents:
diff changeset
7 myengine.trash()