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

« back to all changes in this revision

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