File: glTexImage2D.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 (28 lines) | stat: -rw-r--r-- 983 bytes parent folder | download
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---