array of Materials.
Posted: Mon Feb 09, 2004 2:06 am
hi, i have an error when i compile that i dont understand, maybe you can help me.
the error is in the line:
buffer->Material = MaterialList[Index];
MaterialList is an array of pointers to SMaterials, that is passed in a function.
core::array<video::SMaterial>* MaterialList
the error is:
error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class irr::core::array<struct irr::video::SMaterial>' (or there is no acceptable conversion)
i think this says which the class array cant return the class SMaterial, or something like this.
thanks.
the error is in the line:
buffer->Material = MaterialList[Index];
MaterialList is an array of pointers to SMaterials, that is passed in a function.
core::array<video::SMaterial>* MaterialList
the error is:
error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class irr::core::array<struct irr::video::SMaterial>' (or there is no acceptable conversion)
i think this says which the class array cant return the class SMaterial, or something like this.
thanks.