PageRenderTime 15ms CodeModel.GetById 7ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 7#ifndef CR_BBOX_H
 8#define CR_BBOX_H
 9
10#include "state/cr_statetypes.h"
11
12#include <iprt/cdefs.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18extern DECLEXPORT(void)
19crTransformBBox(float xmin, float ymin, float zmin,
20								float xmax, float ymax, float zmax,
21								const CRmatrix *m,
22								float *out_xmin, float *out_ymin, float *out_zmin,
23								float *out_xmax, float *out_ymax, float *out_zmax);
24
25extern DECLEXPORT(void)
26crProjectBBox(const GLfloat modl[16], const GLfloat proj[16], 
27							GLfloat *x1, GLfloat *y1, GLfloat *z1,
28							GLfloat *x2, GLfloat *y2, GLfloat *z2);
29
30
31extern DECLEXPORT(void)
32crRectiUnion(CRrecti *result, const CRrecti *a, const CRrecti *b);
33
34
35#ifdef __cplusplus
36}
37#endif
38
39#endif /* CR_BBOX_H */