~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychOpenGL/MOGL/wrap/gluOrtho2D.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
% C function:  void gluOrtho2D(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top)
8
8
 
9
9
% 26-Mar-2011 -- created (generated automatically from header files)
 
10
%  4-Apr-2013 Made compatible with OpenGL-ES.
 
11
 
 
12
% ---protected---
10
13
 
11
14
if nargin~=4,
12
15
    error('invalid number of arguments');
13
16
end
14
17
 
15
 
moglcore( 'gluOrtho2D', left, right, bottom, top );
 
18
if ~IsGLES
 
19
    moglcore( 'gluOrtho2D', left, right, bottom, top );
 
20
    return;
 
21
end
 
22
 
 
23
glOrthof(left, right, bottom, top, -1, +1);
16
24
 
17
25
return