While setting up data to draw elements with, the draw implementation in Ren2Renderer just assumes the Float32Array coming back from buffer.getLocation() is of length 2. Changing to something like buffer.getLocationX() and buffer.getLocationY() would be more fool-proof.
While setting up data to draw elements with, the
drawimplementation inRen2Rendererjust assumes theFloat32Arraycoming back frombuffer.getLocation()is of length 2. Changing to something likebuffer.getLocationX()andbuffer.getLocationY()would be more fool-proof.