阅读背景:

填充自定义对象的数组会将其他对象的字段修改为数组

来源:互联网 

i have created a class named MipMapData to keep info about mipmaps, it keeps dimensions, datasize, and the imageformat. From another part of the code i create an array of that MipMapData objects, the problem is that each time i add a new MipMapData object into the array all the mimpamp info objects into the array gets their dimension field modified, and when i populate all the array the result is that all the objects has the same value in their dimension field as the last value added into the array. What i am doing wrong with the dimensions field?i have created a class named MipMapData to keep




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: