Memorybuffer2TextureDemo

>Psychtoolbox>PsychOpenGL>ExampleCodeForC

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 from GitHub | View changelog
Psychtoolbox/PsychOpenGL/ExampleCodeForC/Memorybuffer2TextureDemo.m