Docs @ Psychtoolbox Wiki : Memorybuffer2TextureDemo

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Memorybuffer2TextureDemo

PsychtoolboxPsychOpenGLExampleCodeForC

Memorybuffer2TextureDemo

You have to build the required MEX or OCT file
Memorybuffer2Texture.c or Memorybuffer2Texture.cc
from source code.

Have a look at its C or C++ code and do it. If you don't
know how to do that, this is not for you!

This demo demonstrates how to create a image in a
memory buffer inside a C Mex-file or C++ Oct-file and
pass the image data as a memory pointer to Psychtoolbox
to update or build a Psychtoolbox OpenGL texture from it.

--> Injection of images into PTB.

The demo will display a simple colorful thingy,
created in C code and injected as PTB texture.

Press any key to exit.




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


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