DHART
Loading...
Searching...
No Matches
objloader_C.h
Go to the documentation of this file.
1
9#ifndef OBJLOADER_C_H
10#define OBJLOADER_C_H
11
12#include <vector>
13
14#define C_INTERFACE extern "C" __declspec(dllexport) int
15
16namespace HF {
17 namespace Geometry {
18 template<typename T> class MeshInfo;
19 enum GROUP_METHOD;
20 }
21}
22
137 const char* obj_path,
139 float xrot,
140 float yrot,
141 float zrot,
142 HF::Geometry::MeshInfo<float> *** out_data_array,
143 int * num_meshes
144);
145
181 const int* indices,
182 int num_indices,
183 const float* vertices,
184 int num_vertices,
185 const char* name,
186 int id
187);
188
204 HF::Geometry::MeshInfo<float> * mesh_to_rotate,
205 float xrot,
206 float yrot,
207 float zrot
208);
209
210
226 int** index_out,
227 int* num_triangles,
228 float** vertex_out,
229 int* num_vertices
230);
231
243 char** out_name
244);
245
256 int * out_id
257);
258
269
270
272
275#endif /* OBJLOADER_C_H */
#define C_INTERFACE
Definition: objloader_C.h:14
C_INTERFACE LoadOBJ(const char *obj_path, HF::Geometry::GROUP_METHOD gm, float xrot, float yrot, float zrot, HF::Geometry::MeshInfo< float > ***out_data_array, int *num_meshes)
Load an obj from the given path then rotate it by x,y, and z.
Definition: objloader_C.cpp:13
C_INTERFACE DestroyMeshInfo(HF::Geometry::MeshInfo< float > *mesh_to_destroy)
Free the memory addressed by mesh_to_destroy, which was allocated by either LoadOBJ or StoreMesh.
C_INTERFACE GetMeshName(const HF::Geometry::MeshInfo< float > *MI, char **out_name)
Get the name of a mesh.
C_INTERFACE StoreMesh(HF::Geometry::MeshInfo< float > **out_info, const int *indices, int num_indices, const float *vertices, int num_vertices, const char *name, int id)
Store a mesh in a format usable with DHARTAPI.
Definition: objloader_C.cpp:59
C_INTERFACE GetVertsAndTris(const HF::Geometry::MeshInfo< float > *MI, int **index_out, int *num_triangles, float **vertex_out, int *num_vertices)
Get a pointer to and the size of a mesh's triangle and vertex arrays.
Definition: objloader_C.cpp:94
C_INTERFACE RotateMesh(HF::Geometry::MeshInfo< float > *mesh_to_rotate, float xrot, float yrot, float zrot)
Rotate an existing mesh (HF::Geometry::MeshInfo)
Definition: objloader_C.cpp:84
C_INTERFACE DestroyMeshInfoPtrArray(HF::Geometry::MeshInfo< float > **data_array)
C_INTERFACE GetMeshID(const HF::Geometry::MeshInfo< float > *MI, int *out_id)
Get the ID of a mesh.
Perform human scale analysis on 3D environments.
GROUP_METHOD
Method of grouping submeshes in OBJ files.
Definition: objloader.h:64
A collection of vertices and indices representing geometry.
Definition: meshinfo.h:124