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

« back to all changes in this revision

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