我正在尝试编译我的渲染脚本,但我总是遇到问题,这是我的代码的一部分:
typedef struct __attribute__((packed, aligned(4))) Particle {
float3 position;
float offsetX;
} Particle_t;
typedef struct VertexColor_s {
float3 position;
float offsetX;
float4 color;
} VertexColor;
VertexColor* vertexColors;
Particle_t *dotParticles;
Particle_t *beamParticles;
当我尝试用 eclipse 编译它时,我在定义这 3 个变量时遇到了这些错误:
error: structs containing vectors of dimension 3 cannot be exported at this API level: 'vertexColors'
error: structs containing vectors of dimension 3 cannot be exported at this API level: 'dotParticles'
error: structs containing vectors of dimension 3 cannot be exported at this API level: 'beamParticles'
我已经设定:
<uses-sdk android:minSdkVersion="13"
android:targetSdkVersion="13"/>
有任何想法吗?