add wavefront loader
start adding various scenes to test gpu rigid body pipeline reserve more memory for shapes (concave triangle mesh can be huge) in GLInstancingRenderer fix a few crashes when 0 objects
This commit is contained in:
50
demo/ObjLoader/objLoader.h
Normal file
50
demo/ObjLoader/objLoader.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#ifndef OBJ_LOADER_H
|
||||
#define OBJ_LOADER_H
|
||||
|
||||
#include "obj_parser.h"
|
||||
|
||||
class objLoader
|
||||
{
|
||||
public:
|
||||
objLoader() {}
|
||||
~objLoader()
|
||||
{
|
||||
delete_obj_data(&data);
|
||||
}
|
||||
|
||||
int load(char *filename);
|
||||
|
||||
obj_vector **vertexList;
|
||||
obj_vector **normalList;
|
||||
obj_vector **textureList;
|
||||
|
||||
obj_face **faceList;
|
||||
obj_sphere **sphereList;
|
||||
obj_plane **planeList;
|
||||
|
||||
obj_light_point **lightPointList;
|
||||
obj_light_quad **lightQuadList;
|
||||
obj_light_disc **lightDiscList;
|
||||
|
||||
obj_material **materialList;
|
||||
|
||||
int vertexCount;
|
||||
int normalCount;
|
||||
int textureCount;
|
||||
|
||||
int faceCount;
|
||||
int sphereCount;
|
||||
int planeCount;
|
||||
|
||||
int lightPointCount;
|
||||
int lightQuadCount;
|
||||
int lightDiscCount;
|
||||
|
||||
int materialCount;
|
||||
|
||||
obj_camera *camera;
|
||||
private:
|
||||
obj_scene_data data;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user