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

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychOpenGL/MOGL/wrap/glGetActiveAtomicCounterBufferiv.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 params = glGetActiveAtomicCounterBufferiv( program, bufferIndex, pname )
 
2
 
 
3
% glGetActiveAtomicCounterBufferiv  Interface to OpenGL function glGetActiveAtomicCounterBufferiv
 
4
%
 
5
% usage:  params = glGetActiveAtomicCounterBufferiv( program, bufferIndex, pname )
 
6
%
 
7
% C function:  void glGetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex, GLenum pname, GLint* params)
 
8
 
 
9
% 30-Aug-2012 -- created (generated automatically from header files)
 
10
 
 
11
% ---allocate---
 
12
% ---protected---
 
13
 
 
14
global GL;
 
15
 
 
16
if nargin~=3,
 
17
    error('invalid number of arguments');
 
18
end
 
19
 
 
20
% GL.ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES has a variable
 
21
% number of return indices, which we need to query to prealloc properly:
 
22
if pname == GL.ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES
 
23
    params = int32(zeros(1, int32(glGetActiveAtomicCounterBufferiv(program, bufferIndex, GL.ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS))));
 
24
else
 
25
    % All other pname's return exactly one scalar value:
 
26
    params = int32(0);
 
27
end
 
28
 
 
29
moglcore( 'glGetActiveAtomicCounterBufferiv', program, bufferIndex, pname, params );
 
30
 
 
31
return