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

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychOpenGL/MOGL/wrap/glGenRenderbuffers.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:
 
1
function renderbuffers = glGenRenderbuffers( n )
 
2
 
 
3
% glGenRenderbuffers  Interface to OpenGL function glGenRenderbuffers
 
4
%
 
5
% usage:  renderbuffers = glGenRenderbuffers( n )
 
6
%
 
7
% C function:  void glGenRenderbuffers(GLsizei n, GLuint* renderbuffers)
 
8
 
 
9
% 30-Aug-2012 -- created (generated automatically from header files)
 
10
 
 
11
% ---allocate---
 
12
% ---protected---
 
13
 
 
14
if nargin~=1,
 
15
    error('invalid number of arguments');
 
16
end
 
17
 
 
18
renderbuffers = uint32(zeros(1,n));
 
19
 
 
20
moglcore( 'glGenRenderbuffers', n, renderbuffers );
 
21
 
 
22
return