Mercurial > games > semicongine
comparison examples/hello_triangle.nim @ 517:836790efab48
did: cleanup main namespace, add: better coordinate handling in input example
author | Sam <sam@basx.dev> |
---|---|
date | Fri, 20 Jan 2023 00:41:55 +0700 |
parents | e89fceb5a3a2 |
children | 5d406c17bbcb |
comparison
equal
deleted
inserted
replaced
516:fe0cad0ecf67 | 517:836790efab48 |
---|---|
1 import std/times | 1 import std/times |
2 import std/strutils | 2 import std/strutils |
3 import std/enumerate | 3 import std/enumerate |
4 | 4 |
5 import semicongine/engine | 5 import semicongine |
6 import semicongine/math/vector | |
7 import semicongine/math/matrix | |
8 import semicongine/vertex | |
9 import semicongine/descriptor | |
10 import semicongine/mesh | |
11 import semicongine/thing | |
12 import semicongine/shader | |
13 import semicongine/buffer | |
14 | 6 |
15 type | 7 type |
16 # define type of vertex | 8 # define type of vertex |
17 VertexDataA = object | 9 VertexDataA = object |
18 position: PositionAttribute[Vec2[float32]] | 10 position: PositionAttribute[Vec2[float32]] |