Docs @ Psychtoolbox Wiki : moglmalloc

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

moglmalloc

PsychtoolboxPsychOpenGLMOGLwrap

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.





Path   Retrieve current version of moglmalloc.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOpenGL/MOGL/wrap/moglmalloc.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0191 seconds