I think you should use `object`, it is the equivalent of `struct` from C.
type
Vec2i = object
x,y: int
Vec2f = object
x,y: float
NVGglyphPosition = int32
GlyphArray* = array[100, NVGglyphPosition]
TextBuffer* = object
position : Vec2f
cursor : Vec2i
glyphPositions : GlyphArray
linePositions : seq[Vec2i]
text : string
- Defining an array inside a tuple rayman22201
- Re: Defining an array inside a tuple BigEpsilon
- Re: Defining an array inside a tuple LeuGim
- Re: Defining an array inside a tuple Krux02
- Re: Defining an array inside a tuple rayman22201
- Re: Defining an array inside a tuple Udiknedormin
- Re: Defining an array inside a tupl... rayman22201
- Re: Defining an array inside a ... LeuGim
- Re: Defining an array inside a ... Krux02
- Re: Defining an array inside a ... rayman22201
