-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathplOpenGL.pl
executable file
·66 lines (42 loc) · 1.77 KB
/
plOpenGL.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* $Id$
plOpenGL - SWI-Prolog OpenGL Bindings
Author: Jan Tatham
E-Mail: jan@sebity.com
WWW: http://www.sebity.com
Copyright (C): 2012-2013, Jan Tatham.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Select the Library that you need by commenting out the library %
% that you do not need, and uncommenting the one you do. %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Windows Library
%:-load_foreign_library('plOpenGL.dll').
% Mac/Linux Library
:-load_foreign_library('plOpenGL.so').
% Do not alter below this line
:-['plGL_defs.pl'],['plGLU_defs.pl'],['plGLUT_defs.pl'].
:-['plGL.pl'],['plGLU.pl'],['plGLUT.pl'].
:-['plMisc.pl'].
:-['general_defs.pl'].
%% loadGLTexture(+Filename, -Width, -Height, -Data)
% Load Texture
loadGLTextures(Filename,Width,Height,Data):-
c_loadGLTextures(Filename,Width,Height,Data).
%% sleep(+X)
% Sleep for X seconds
sleep(X):-
X1 = X,
c_sleep(X1).
size([],0).
size([_|T],N) :- size(T,N1), N is N1+1.