2
0

api.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. cam
  25. frustum
  26. box
  27. quat
  28. euler
  29. mat4
  30. mat3
  31. mat2
  32. vec3
  33. vec3-ext
  34. vec4
  35. vec4-ext
  36. vec2
  37. vec2-ext
  38. color
  39. plane
  40. project
  41. util
  42. io
  43. call
  44. sphere
  45. curve
  46. bezier