Re: Tables - can't get the address of value

2019-08-01 Thread r3c
When im creating the faces, i know their exact number, but to speedup the rendering, I want to merge them by their common texture. I dont know the number of the merged faces, so I have to make one [loop trough all the

Re: Tables - can't get the address of value

2019-08-01 Thread demotomohiro
From: [https://nim-lang.org/docs/manual.html#statements-and-expressions-the-addr-operator](https://nim-lang.org/docs/manual.html#statements-and-expressions-the-addr-operator) > The addr operator returns the address of an l-value. From:

Tables - can't get the address of value

2019-08-01 Thread r3c
I use table in type like: type RenderableObject* = object vertices_tbl*: Table[int, seq[float32]] indices_tbl*: Table[int, seq[uint32]] # init var FACE : RenderableObject FACE.vertices_tbl = initTable[int, seq[float32]]() FACE.indices_tbl