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

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychOpenGL/MOGL/wrap/glGetActiveUniform.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 [ length, size, type, name ] = glGetActiveUniform( program, index, bufSize )
 
2
 
 
3
% glGetActiveUniform  Interface to OpenGL function glGetActiveUniform
 
4
%
 
5
% usage:  [ length, size, type, name ] = glGetActiveUniform( program, index, bufSize )
 
6
%
 
7
% C function:  void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name)
 
8
 
 
9
% 25-Mar-2011 -- created (generated automatically from header files)
 
10
 
 
11
% ---allocate---
 
12
% ---protected---
 
13
 
 
14
if nargin~=3,
 
15
    error('invalid number of arguments');
 
16
end
 
17
 
 
18
length = int32(0);
 
19
size = int32(0);
 
20
type = uint32(0);
 
21
name = uint8(zeros(1,bufSize));
 
22
 
 
23
moglcore( 'glGetActiveUniform', program, index, bufSize, length, size, type, name );
 
24
name = char(name);
 
25
 
 
26
return