api.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. vec3
  32. vec3-ext
  33. vec4
  34. vec4-ext
  35. color
  36. plane
  37. project
  38. util
  39. io
  40. call
  41. sphere
  42. curve
  43. bezier