I have an .obj parser, code is:
class Model {
public:
List *coords;
List *tcoords;
List *normals;
List *faces;
Model() {
coords=new List();
tcoords=new List();
normals=new List();
faces=new List();
}
~Model() {
delete(coords);
delete(tcoords);
delete(normals);
delete(faces);
}
};
this is a model file parser tool, which is parse a big file. The List is a linkedlist. (String array, char*)
How can I return this class to Java from C++? I know how can return a simple String Array with NewObjectArray, but what is the way to return a Class?
Thanks, Leslie