K
Kenny McCarty
I am trying to create an array of structs and I am having problems
adding the values into the structure itself. Here is the code:
struct predefinedCaptureSetting
{
int buffer_signal;
int transform_signal;
bool only_solid;
bool line_as_solid;
bool no_texture;
bool optimize_geometry;
bool recompute_normals;
bool last_frame;
};
predefinedCaptureSetting PredefinedSetting[25];
PredefinedSetting[0] = {1,0,false,false,false,true,true,false};
PredefinedSetting[1] = {1,1,false,false,false,true,true,false};
PredefinedSetting[2] = {0,1,false,false,false,true,true,false};
....
....
PredefinedSetting[22] = {1,1,false,false,false,true,true,false};
PredefinedSetting[23] = {1,0,false,false,false,true,true,false};
PredefinedSetting[24] = {1,1,false,false,false,true,true,false};
Is there any reason why the above code wouldn't work? Thanks for any
help
adding the values into the structure itself. Here is the code:
struct predefinedCaptureSetting
{
int buffer_signal;
int transform_signal;
bool only_solid;
bool line_as_solid;
bool no_texture;
bool optimize_geometry;
bool recompute_normals;
bool last_frame;
};
predefinedCaptureSetting PredefinedSetting[25];
PredefinedSetting[0] = {1,0,false,false,false,true,true,false};
PredefinedSetting[1] = {1,1,false,false,false,true,true,false};
PredefinedSetting[2] = {0,1,false,false,false,true,true,false};
....
....
PredefinedSetting[22] = {1,1,false,false,false,true,true,false};
PredefinedSetting[23] = {1,0,false,false,false,true,true,false};
PredefinedSetting[24] = {1,1,false,false,false,true,true,false};
Is there any reason why the above code wouldn't work? Thanks for any
help