Hi,
I am thinking of having a vector within a structure. Now again this structure will be a vector. Is it possible to have a such a thing ?
I currently have the structure like this :-
[Source]
typedef struct
{
// batch the model on a per material basis
MaterialInfo material;
vector3 *normals;
int *faces;
int numFaces;
NodeInfo *info;
} VBOStruct;
[/Source]
Now I plan to make it like the following
[Source]
typedef struct
{
// batch the model on a per material basis
MaterialInfo material;
vector<vector3> normals;
vector3 <int> faces;
int numFaces;
} VBOStruct;
[/Source]
Now I am initializing the VBOStruct like the following :
vector <VBOStruct> vbo;
Now is this feasible and if it is how would I copy the info into the VBOStruct, would a regular push_back work fine or I should go back the c type linked list ?
Thanks
The more applications I write, more I find out how less I know