2
0

api.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. mat2
  31. mat3
  32. mat4
  33. vec2
  34. vec2-ext
  35. vec3
  36. vec3-ext
  37. vec4
  38. vec4-ext
  39. ivec2
  40. ivec3
  41. ivec4
  42. color
  43. plane
  44. project
  45. util
  46. io
  47. call
  48. sphere
  49. curve
  50. bezier
  51. version
  52. ray