1:- module(plGLU,
2 [
3 gluBuild2DMipmaps/7,
4 gluLookAt/9,
5 gluOrtho2D/4,
6 gluPerspective/4
7 ]).
22gluBuild2DMipmaps(Target,Internal,Width,Height,Format,Type,Texels):-
23 c_gluBuild2DMipmaps(Target,Internal,Width,Height,Format,Type,Texels).
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).
47gluOrtho2D(Left, Right, Bottom, Top):-
48 float(Left),
49 float(Right),
50 float(Bottom),
51 float(Top),
52 c_gluOrtho2D(Left, Right, Bottom, Top).
59gluPerspective(Fovy,Aspect,Near,Far):-
60 float(Fovy),
61 float(Aspect),
62 float(Near),
63 float(Far),
64 c_gluPerspective(Fovy,Aspect,Near,Far)
GLU Interface
This module is the glu extension of the Prolog OpenGL Interface (plOpengL)