one structure def per function call, which means the structs can't be passed between functions (!!). It's fixed manually for now, but the pyglet generator should be fixed.