AcousticTracer 0.1.0
An acoustic raytracing library.
Loading...
Searching...
No Matches
at_model.h
Go to the documentation of this file.
1
5
6#ifndef AT_MODEL_H
7#define AT_MODEL_H
8
9#include "at.h"
10
12
17typedef struct AT_Model AT_Model;
18
28AT_Result AT_model_create(AT_Model **out_model, const char *filepath);
29
37void AT_model_to_AABB(AT_AABB *out_aabb, const AT_Model *model);
38
49
57
58#endif // AT_MODEL_H
The libraries public types and functions.
AT_Result AT_model_create(AT_Model **out_model, const char *filepath)
AT_Model constructor for a given glb filepath.
void AT_model_destroy(AT_Model *model)
Destroys an allocated AT_Model.
void AT_model_to_AABB(AT_AABB *out_aabb, const AT_Model *model)
Calculates the min and max of a model for AABB collision.
AT_Result AT_model_get_triangles(AT_Triangle **out_triangles, const AT_Model *model)
Constructs all triangles in a given Model.
AT_Result
Defines possible result types.
Definition at.h:24
Axis-Aligned Bounding Box for triangle(s).
Definition at_math.h:48
Groups the necessary information representing the 3D model.
Groups three AT_Vec3 to represent a triangle.
Definition at_math.h:58