nonchip/YEngine — Issue #3: [ygl] OffsetArray not working as expected
Author: nonchip
Created: 2012-02-29 05:14:16+00:00
State: open

example:

x=OffsetArrayd({-1,0,1}) -- double
print(x:at(0)) -- 3.743223149051e-317
print(x:at(1)) -- 0
print(x:at(2)) -- 1
y=OffsetArrayi({-1,0,1}) -- signed int
print(y:at(0)) -- 0
print(y:at(1)) -- 0
print(y:at(2)) -- 1

also using OffsetArray::data() in e.g. glVertexPointer doesn't render the expected geometry.