summaryrefslogtreecommitdiffstats
path: root/src/VBox/GuestHost/OpenGL/include/cr_bbox.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:46 +0000
commitf8fe689a81f906d1b91bb3220acde2a4ecb14c5b (patch)
tree26484e9d7e2c67806c2d1760196ff01aaa858e8c /src/VBox/GuestHost/OpenGL/include/cr_bbox.h
parentInitial commit. (diff)
downloadvirtualbox-f8fe689a81f906d1b91bb3220acde2a4ecb14c5b.tar.xz
virtualbox-f8fe689a81f906d1b91bb3220acde2a4ecb14c5b.zip
Adding upstream version 6.0.4-dfsg.upstream/6.0.4-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/include/cr_bbox.h')
-rw-r--r--src/VBox/GuestHost/OpenGL/include/cr_bbox.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/include/cr_bbox.h b/src/VBox/GuestHost/OpenGL/include/cr_bbox.h
new file mode 100644
index 00000000..494ae404
--- /dev/null
+++ b/src/VBox/GuestHost/OpenGL/include/cr_bbox.h
@@ -0,0 +1,39 @@
+/* Copyright (c) 2001, Stanford University
+ * All rights reserved.
+ *
+ * See the file LICENSE.txt for information on redistributing this software.
+ */
+
+#ifndef CR_BBOX_H
+#define CR_BBOX_H
+
+#include "state/cr_statetypes.h"
+
+#include <iprt/cdefs.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern DECLEXPORT(void)
+crTransformBBox(float xmin, float ymin, float zmin,
+ float xmax, float ymax, float zmax,
+ const CRmatrix *m,
+ float *out_xmin, float *out_ymin, float *out_zmin,
+ float *out_xmax, float *out_ymax, float *out_zmax);
+
+extern DECLEXPORT(void)
+crProjectBBox(const GLfloat modl[16], const GLfloat proj[16],
+ GLfloat *x1, GLfloat *y1, GLfloat *z1,
+ GLfloat *x2, GLfloat *y2, GLfloat *z2);
+
+
+extern DECLEXPORT(void)
+crRectiUnion(CRrecti *result, const CRrecti *a, const CRrecti *b);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* CR_BBOX_H */