Skip to content
Snippets Groups Projects
Commit 0437643f authored by Martin Nilsson's avatar Martin Nilsson
Browse files

Added some sutodoc prototypes.

Rev: lib/modules/GLU.pmod:1.9
parent d91b1a1d
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: GLU.pmod,v 1.8 2000/09/28 03:38:25 hubbe Exp $ * $Id: GLU.pmod,v 1.9 2001/11/19 16:21:12 nilsson Exp $
* *
* GL Utilities module. * GL Utilities module.
*/ */
...@@ -13,8 +13,9 @@ import Math; ...@@ -13,8 +13,9 @@ import Math;
#ifndef M_PI #ifndef M_PI
#define M_PI 3.1415926536 #define M_PI 3.1415926536
#endif #endif
#define EPS 0.00001
//! @fixme
//! Document this function.
void gluLookAt(float|object eye,float|object center,float|object up, void gluLookAt(float|object eye,float|object center,float|object up,
float ... old_api) float ... old_api)
{ {
...@@ -54,12 +55,16 @@ void gluLookAt(float|object eye,float|object center,float|object up, ...@@ -54,12 +55,16 @@ void gluLookAt(float|object eye,float|object center,float|object up,
glTranslate( ((array)(-1*eye))[0] ); glTranslate( ((array)(-1*eye))[0] );
} }
//! @fixme
//! Document this function.
void gluOrtho2D(float left, float right, void gluOrtho2D(float left, float right,
float bottom, float top) float bottom, float top)
{ {
glOrtho( left, right, bottom, top, -1.0, 1.0 ); glOrtho( left, right, bottom, top, -1.0, 1.0 );
} }
//! @fixme
//! Document this function.
void gluPerspective(float fovy, float aspect, void gluPerspective(float fovy, float aspect,
float zNear, float zFar) float zNear, float zFar)
{ {
...@@ -74,7 +79,8 @@ void gluPerspective(float fovy, float aspect, ...@@ -74,7 +79,8 @@ void gluPerspective(float fovy, float aspect,
glFrustum( xmin, xmax, ymin, ymax, zNear, zFar ); glFrustum( xmin, xmax, ymin, ymax, zNear, zFar );
} }
//! @fixme
//! Document this function.
void gluPickMatrix(float x, float y, void gluPickMatrix(float x, float y,
float width, float height, float width, float height,
array(int) viewport) array(int) viewport)
...@@ -98,7 +104,8 @@ void gluPickMatrix(float x, float y, ...@@ -98,7 +104,8 @@ void gluPickMatrix(float x, float y,
glMultMatrix( m ); glMultMatrix( m );
} }
//! @fixme
//! Document this function.
static void transform_point(array(float) out, array(float)m, static void transform_point(array(float) out, array(float)m,
array(float) in) array(float) in)
{ {
...@@ -110,7 +117,8 @@ static void transform_point(array(float) out, array(float)m, ...@@ -110,7 +117,8 @@ static void transform_point(array(float) out, array(float)m,
#undef M #undef M
} }
//! @fixme
//! Document this function.
array(float) gluProject(float objx, float objy, array(float) gluProject(float objx, float objy,
float objz, array(float) model, float objz, array(float) model,
array(float) proj, array(int) viewport) array(float) proj, array(int) viewport)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment