project.h 623 B

1234567891011121314151617181920212223242526
  1. #ifndef IGL_PROJECT_H
  2. #define IGL_PROJECT_H
  3. #include "igl_inline.h"
  4. namespace igl
  5. {
  6. // Wrapper for gluProject that uses the current GL_MODELVIEW_MATRIX,
  7. // GL_PROJECTION_MATRIX, and GL_VIEWPORT
  8. // Inputs:
  9. // obj* 3D objects' x, y, and z coordinates respectively
  10. // Outputs:
  11. // win* pointers to screen space x, y, and z coordinates respectively
  12. // Returns return value of gluProject call
  13. IGL_INLINE int project(
  14. const double objX,
  15. const double objY,
  16. const double objZ,
  17. double* winX,
  18. double* winY,
  19. double* winZ);
  20. }
  21. #ifdef IGL_HEADER_ONLY
  22. # include "project.cpp"
  23. #endif
  24. #endif