File: glGenTextures.m

package info (click to toggle)
psychtoolbox-3 3.0.9%2Bsvn2579.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 63,408 kB
  • sloc: ansic: 73,310; cpp: 11,139; objc: 3,129; sh: 1,669; python: 382; php: 272; makefile: 172; java: 113
file content (44 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
function textures = glGenTextures( n )

% glGenTextures  Interface to glGenTextures
% 
% usage:  textures = glGenTextures( n )
%
% C function:  void glGenTextures(GLsizei n, GLuint* textures)

% 20-Dec-2005 -- created (moglgen)

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

textures = uint32(zeros(n,1));
moglcore( 'glGenTextures', n, textures );
textures = double(textures);

return


% ---autocode---
%
% function textures = glGenTextures( n )
% 
% % glGenTextures  Interface to OpenGL function glGenTextures
% %
% % usage:  textures = glGenTextures( n )
% %
% % C function:  void glGenTextures(GLsizei n, GLuint* textures)
% 
% % 05-Mar-2006 -- created (generated automatically from header files)
% 
% % ---allocate---
% 
% if nargin~=1,
%     error('invalid number of arguments');
% end
% 
% textures = uint32(0);
% 
% moglcore( 'glGenTextures', n, textures );
% 
% return
%