/src/VBox/GuestHost/OpenGL/include/cr_bbox.h

https://gitlab.com/ufo/virtualbox-ose-3-1-8 · C Header · 39 lines · 23 code · 11 blank · 5 comment · 0 complexity · b0d4807b2939e1df35eb817a76dc0b28 MD5 · raw file

  1. /* Copyright (c) 2001, Stanford University
  2. * All rights reserved.
  3. *
  4. * See the file LICENSE.txt for information on redistributing this software.
  5. */
  6. #ifndef CR_BBOX_H
  7. #define CR_BBOX_H
  8. #include "state/cr_statetypes.h"
  9. #include <iprt/cdefs.h>
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. extern DECLEXPORT(void)
  14. crTransformBBox(float xmin, float ymin, float zmin,
  15. float xmax, float ymax, float zmax,
  16. const CRmatrix *m,
  17. float *out_xmin, float *out_ymin, float *out_zmin,
  18. float *out_xmax, float *out_ymax, float *out_zmax);
  19. extern DECLEXPORT(void)
  20. crProjectBBox(const GLfloat modl[16], const GLfloat proj[16],
  21. GLfloat *x1, GLfloat *y1, GLfloat *z1,
  22. GLfloat *x2, GLfloat *y2, GLfloat *z2);
  23. extern DECLEXPORT(void)
  24. crRectiUnion(CRrecti *result, const CRrecti *a, const CRrecti *b);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* CR_BBOX_H */