Source

papl_yaobi / c_yaobi / papl_yaobi.h

Full commit
/*
  Copyright (c) 2012 Anders Lau Olsen.
  See LICENSE file for terms and conditions.
*/
#ifndef PAPL_YAOBI_H
#define PAPL_YAOBI_H

/*
  The c_papl_yaobi library is a C interface to a subset of the Yaobi collision
  detection library.
*/

#ifdef __cplusplus
extern "C" {
#endif

typedef struct Yaobi_CollModel Yaobi_CollModel;

extern Yaobi_CollModel* yaobi_buildCollModel(
    int num_vertices, double* vertices,
    int num_triangles, int* triangles,
    int triangle_stride,
    int own_data);

extern void yaobi_freeCollModel(Yaobi_CollModel*);

extern int yaobi_isColliding(
    double ta[][4], Yaobi_CollModel* a,
    double tb[][4], Yaobi_CollModel* b);

#ifdef __cplusplus
}
#endif

#endif /* end include guard */