2
0

api.rst 1.4 KB

12345678910111213141516171819202122232425262728
  1. 📚 API documentation
  2. ================================
  3. **cglm** provides a few APIs for similar functions.
  4. * 📦 **Inline API**: All functions are inline. You can include **cglm/cglm.h** header
  5. to use this API. This is the default API. `glm_` is namespace/prefix for this API.
  6. * 📦 **Call API**: All functions are not inline. You need to build *cglm* and link it
  7. to your project. You can include **cglm/call.h** header to use this API. `glmc_` is namespace/prefix for this API.
  8. And also there are also sub categories:
  9. * 📦 **Array API**: Types are raw arrays and functions takes array as argument. You can include **cglm/cglm.h** header
  10. to use this API. This is the default API. `glm_` is namespace/prefix for this API.
  11. * 📦 **Struct API**: Types are union/struct and functions takes struct as argument and return structs if needed. You can include **cglm/struct.h** header
  12. to use this API. This also includes **cglm/cglm.h** header.`glms_` is namespace/prefix for this API but your can omit or change it, see struct api docs.
  13. * 📦 **SIMD API**: SIMD functions and helpers. `glmm_` is namespace/prefix for this API.
  14. 📌 Since struct api and call api are built top of inline array api, follow inline array api docs for individual functions.
  15. .. toctree::
  16. :maxdepth: 1
  17. :caption: API documentations:
  18. api_inline_array
  19. api_struct
  20. api_call
  21. api_simd