File: glTexImage2D.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 (28 lines) | stat: -rw-r--r-- 995 bytes parent folder | download | duplicates (6)
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
function glTexImage2D( target, level, internalformat, width, height, border, format, type, pixels )

% glTexImage2D  Interface to OpenGL function glTexImage2D
%
% usage:  glTexImage2D( target, level, internalformat, width, height, border, format, type, pixels )
%
% C function:  void glTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels)

% 05-Mar-2006 -- created (generated automatically from header files)

% ---protected---

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

% Special case NULL-Ptr passed?
% if pixels == 0
%     % We have to allocate a matching dummy matrix for now, until
%     % we implement a proper NULL-Ptr interface in moglcore for this
%     % special case - Ugly ugly ugly...:
%     pixels = zeros(width, height, 2);
% end;

moglcore( 'glTexImage2D', target, level, internalformat, width, height, border, format, type, pixels );

return
% ---skip---