ptr = moglmalloc(nrbytes) -- Allocate a memory buffer inside mogl.
This function allocates an internal memory buffer inside mogl for use
with
OpenGL functions that use buffers for passing data forth and back
between Matlab and
OpenGL, e.g., glFeedbackBuffer() or glSelectBuffer().
nrbytes = The number of bytes to allocate.
On successfull allocation, ptr will be a handle for the memory buffer.
You can think of ptr as a memory pointer in the C-language.
moglmalloc()'ed memory buffers can be released - one by one - via
moglfree(ptr), all at once via moglfreeall, and they are automatically
released when moglcore is clear'ed via clear moglcore, clear mex or
clear all.
Psychtoolbox/PsychOpenGL/MOGL/wrap/moglmalloc.m