File: glGetActiveSubroutineUniformiv.m

package info (click to toggle)
psychtoolbox-3 3.0.19.14.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 86,796 kB
  • sloc: ansic: 176,245; cpp: 20,103; objc: 5,393; sh: 2,753; python: 1,397; php: 384; makefile: 193; java: 113
file content (30 lines) | stat: -rw-r--r-- 1,020 bytes parent folder | download | duplicates (5)
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
function values = glGetActiveSubroutineUniformiv( program, shadertype, index, pname )

% glGetActiveSubroutineUniformiv  Interface to OpenGL function glGetActiveSubroutineUniformiv
%
% usage:  values = glGetActiveSubroutineUniformiv( program, shadertype, index, pname )
%
% C function:  void glGetActiveSubroutineUniformiv(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint* values)

% 30-Aug-2012 -- created (generated automatically from header files)

% ---allocate---
% ---protected---

global GL;

if nargin~=4,
    error('invalid number of arguments');
end

% GL.COMPATIBLE_SUBROUTINES has a variable number of return indices, which
% we need to query to prealloc properly:
if pname == GL.COMPATIBLE_SUBROUTINES
    values = int32(zeros(1, 1 + glGetActiveSubroutineUniformiv( program, shadertype, index, GL.NUM_COMPATIBLE_SUBROUTINES)));
else
    values = int32([0,0]);
end

moglcore( 'glGetActiveSubroutineUniformiv', program, shadertype, index, pname, values );
values = values(1:end-1);
return