api.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. API documentation
  2. ================================
  3. Some functions may exist twice,
  4. once for their namespace and once for global namespace
  5. to make easier to write very common functions
  6. For instance, in general we use :code:`glm_vec3_dot` to get dot product
  7. of two **vec3**. Now we can also do this with :code:`glm_dot`,
  8. same for *_cross* and so on...
  9. The original function stays where it is, the function in global namespace
  10. of same name is just an alias, so there is no call version of those functions.
  11. e.g there is no func like :code:`glmc_dot` because *glm_dot* is just alias for
  12. :code:`glm_vec3_dot`
  13. By including **cglm/cglm.h** header you will include all inline version
  14. of functions. Since functions in this header[s] are inline you don't need to
  15. build or link *cglm* against your project.
  16. But by including **cglm/call.h** header you will include all *non-inline*
  17. version of functions. You need to build *cglm* and link it.
  18. Follow the :doc:`build` documentation for this
  19. .. toctree::
  20. :maxdepth: 1
  21. :caption: API categories:
  22. affine
  23. affine-mat
  24. affine2d
  25. cam
  26. frustum
  27. box
  28. quat
  29. euler
  30. mat4
  31. mat3
  32. mat2
  33. vec3
  34. vec3-ext
  35. vec4
  36. vec4-ext
  37. vec2
  38. vec2-ext
  39. color
  40. plane
  41. project
  42. util
  43. io
  44. call
  45. sphere
  46. curve
  47. bezier
  48. version
  49. ray