My problem is that i cannot set up my material using my structure because the “data member initializer is not allowed”. This is deffo a simple mistake but its kinda annyoying. Here is the code.
struct material {
float ambient[4];
float diffuse[4];
float specular[4];
float shininess;
};
material redShinyMaterial = {
{0.80,0.05,0.05, 1.0},
{0.80,0.05,0.05, 1.0},
{1.0,1.0,1.0, 1.0},
100.0
};
greatful for any help thanks before hand.