My Project: openb3dlib.mod/openb3d/src/project.h Source File

My Project

project.h
Go to the documentation of this file.
1 /*
2 * Mesa 3-D graphics library
3 * Version: 3.3
4 * Copyright (C) 1995-2000 Brian Paul
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #ifndef PROJECT_H
22 #define PROJECT_H
23
24 #include "glew.h"
25
26 /*
27 //#import <OpenGLES/ES1/gl.h>
28 #include <GL/gl.h>
29 */
30
31 #ifdef PC_HEADER
32 #include "all.h"
33 #else
34 #include <stdio.h>
35 #include <string.h>
36 #include <math.h>
37 //#include "gluP.h"
38 #endif
39
40 #include <iostream>
41 using namespace std;
42
43 // !!! static void transform_point(GLfloat out[4], const GLfloat m[16], const GLfloat in[4]);
44 // !!! static void matmul(GLfloat * product, const GLfloat * a, const GLfloat * b);
45 // !!! static GLboolean invert_matrix(const GLfloat * m, GLfloat * out);
46 GLint gluProject(GLfloat objx, GLfloat objy, GLfloat objz,const GLfloat model[16], const GLfloat proj[16],const GLint viewport[4],GLfloat * winx, GLfloat * winy, GLfloat * winz);
47 GLint gluUnProject(GLfloat winx, GLfloat winy, GLfloat winz,const GLfloat model[16], const GLfloat proj[16],const GLint viewport[4],GLfloat * objx, GLfloat * objy, GLfloat * objz);
48 //GLint gluUnProject4(GLfloat winx, GLfloat winy, GLfloat winz, GLfloat clipw,const GLfloat modelMatrix[16],const GLfloat projMatrix[16],const GLint viewport[4],GLclampd nearZ, GLclampd farZ,GLfloat * objx, GLfloat * objy, GLfloat * objz,GLfloat * objw);
49
50 #endif
gluProject
GLint gluProject(GLfloat objx, GLfloat objy, GLfloat objz, const GLfloat model[16], const GLfloat proj[16], const GLint viewport[4], GLfloat *winx, GLfloat *winy, GLfloat *winz)
Definition: project.cpp:260
std
gluUnProject
GLint gluUnProject(GLfloat winx, GLfloat winy, GLfloat winz, const GLfloat model[16], const GLfloat proj[16], const GLint viewport[4], GLfloat *objx, GLfloat *objy, GLfloat *objz)
Definition: project.cpp:295