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.
array of Materials.
really easy - you should write
Code: Select all
if (MaterialList)
buffer->Material = (*MaterialList)[Index];
It's not an advance help, so, please post such questions into the beginners section
there is another guest...