Mercurial > games > semicongine
comparison examples/squares.nim @ 56:94d7eed3f118
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 | 2771db8d4276 |
children | 547f3a374271 |
comparison
equal
deleted
inserted
replaced
55:be3ab2619c33 | 56:94d7eed3f118 |
---|---|
2 import std/strutils | 2 import std/strutils |
3 import std/math | 3 import std/math |
4 import std/random | 4 import std/random |
5 import std/enumerate | 5 import std/enumerate |
6 | 6 |
7 import semicongine/engine | 7 import semicongine |
8 import semicongine/math/vector | |
9 import semicongine/math/matrix | |
10 import semicongine/vertex | |
11 import semicongine/descriptor | |
12 import semicongine/mesh | |
13 import semicongine/thing | |
14 import semicongine/shader | |
15 import semicongine/buffer | |
16 | 8 |
17 type | 9 type |
18 VertexDataA = object | 10 VertexDataA = object |
19 position11: PositionAttribute[Vec2[float32]] | 11 position11: PositionAttribute[Vec2[float32]] |
20 color22: ColorAttribute[Vec3[float32]] | 12 color22: ColorAttribute[Vec3[float32]] |