These interfaces allow, for instance, using a Vec4 in place of a Vec3 if a function uses the Vec3Vars interface. Initially, I was going to turn VecXt into an interface, but it seemed to cause inconsistent behaviour in terms of the put functions (e.g. if you put with an array of length 2 on a Vec2t, but the value is, in reality, a Vec4, it would cause an exception).
There are a few places in imgui where these interfaces would reduce duplication
These interfaces allow, for instance, using a Vec4 in place of a Vec3 if a function uses the Vec3Vars interface. Initially, I was going to turn VecXt into an interface, but it seemed to cause inconsistent behaviour in terms of the
put
functions (e.g. if youput
with an array of length 2 on a Vec2t, but the value is, in reality, a Vec4, it would cause an exception).There are a few places in imgui where these interfaces would reduce duplication