vertex_type vertex[MAX_VERTICES]; // Array of vertices
void ObjScale (obj_type_ptr p_object, GLfloat scale)
{
GLuint i;
for (i = 1; i <= p_object->vertices_qty; i++) {
p_object->vertex[3 * i + 0] *= scale;
p_object->vertex[3 * i + 1] *= scale;
p_object->vertex[3 * i + 2] *= scale;
}
}
hi guys, i need your help with the above code, i am trying to add a method to scale my models from my .3ds loader...but it gives me this error.....
object.cpp(282) : error C2676: binary '*=' : 'vertex_type' does not define this operator or a conversion to a type acceptable to the predefined operator
\object.cpp(283):error C2676: binary '*=' : 'vertex_type' does not define this operator or a conversion to a type acceptable to the predefined operator
\object.cpp(284) : error C2676: binary '*=' : 'vertex_type' does not define this operator or a conversion to a type acceptable to the predefined operator
thank you for your help