1:- module(plGLU,
    2	  [
    3	   gluBuild2DMipmaps/7,
    4	   gluLookAt/9,
    5	   gluOrtho2D/4,
    6	   gluPerspective/4
    7	  ]).

GLU Interface

This module is the glu extension of the Prolog OpenGL Interface (plOpengL)

author
- Jan Tatham
license
- LGPL 2.1 */
 gluBuild2DMipmaps(+Target, +Internal, +Width, +Height, +Format, +Type, +Texels)
Builds a two-dimensional mipmap */
   22gluBuild2DMipmaps(Target,Internal,Width,Height,Format,Type,Texels):-
   23	c_gluBuild2DMipmaps(Target,Internal,Width,Height,Format,Type,Texels).
 gluLookAt(+EyeX, +EyeY, +EyeZ, +CenterX, +CenterY, +CenterZ, +UpX, +UpY, +UpZ)
Defines a viewing transformation. */
   30gluLookAt(EyeX, EyeY, EyeZ, CenterX, CenterY, CenterZ, UpX, UpY, UpZ):-
   31	float(EyeX),
   32	float(EyeY),
   33	float(EyeZ),
   34	float(CenterX),
   35	float(CenterY),
   36	float(CenterZ),
   37	float(UpX),
   38	float(UpY),
   39	float(UpZ),
   40	c_gluLookAt(EyeX, EyeY, EyeZ, CenterX, CenterY, CenterZ, UpX, UpY, UpZ).
 gluOrtho2D(+Left, +Right, +Bottom, +Top)
Define a 2D orthographic projection matrix */
   47gluOrtho2D(Left, Right, Bottom, Top):-
   48    float(Left),
   49    float(Right),
   50    float(Bottom),
   51    float(Top),
   52    c_gluOrtho2D(Left, Right, Bottom, Top).
 gluPerspective(+Fovy, +Aspect, +Near, +Far)
Set up a perspective projection matrix */
   59gluPerspective(Fovy,Aspect,Near,Far):-
   60	float(Fovy),
   61	float(Aspect),
   62	float(Near),
   63	float(Far),
   64	c_gluPerspective(Fovy,Aspect,Near,Far)