My Project: openb3dlib.mod/openb3d/src/project.cpp File Reference

My Project

Macros | Functions
project.cpp File Reference
`#include "project.h"`

## Macros

#define | M(row, col) m[col*4+row]
#define | A(row, col) a[(col<<2)+row]
#define | B(row, col) b[(col<<2)+row]
#define | T(row, col) temp[(col<<2)+row]
#define | SWAP_ROWS(a, b) { GLfloat *_tmp = a; (a)=(b); (b)=_tmp; }
#define | MAT(m, r, c) (m)[(c)*4+(r)]

## Functions

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)
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)

## Macro Definition Documentation

## § A

#define A | ( |  | row,
|  |  | col
| ) |  | a[(col<<2)+row]

## § B

#define B | ( |  | row,
|  |  | col
| ) |  | b[(col<<2)+row]

## § M

#define M | ( |  | row,
|  |  | col
| ) |  | m[col*4+row]

## § MAT

#define MAT | ( |  | m,
|  |  | r,
|  |  | c
| ) |  | (m)[(c)*4+(r)]

## § SWAP_ROWS

#define SWAP_ROWS | ( |  | a,
|  |  | b
| ) |  | { GLfloat *_tmp = a; (a)=(b); (b)=_tmp; }

## § T

#define T | ( |  | row,
|  |  | col
| ) |  | temp[(col<<2)+row]

## Function Documentation

## § 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
| ) |  |

## § 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
| ) |  |