1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
function [ count, shaders ] = glGetAttachedShaders( program, maxCount )
% glGetAttachedShaders Interface to OpenGL function glGetAttachedShaders
%
% usage: [ count, shaders ] = glGetAttachedShaders( program, maxCount )
%
% C function: void glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders)
% 25-Mar-2011 -- created (generated automatically from header files)
% ---allocate---
% ---protected---
if nargin~=2,
error('invalid number of arguments');
end
count = int32([0,0]);
shaders = uint32(zeros(1,maxCount+1));
moglcore( 'glGetAttachedShaders', program, maxCount, count, shaders );
shaders = shaders(1:end-1);
count = count(1:end-1);
return
|