HP SVA V2.0 Parallel Compositing Reference Guide

pcFrameAddGLFrameletEXT(3)
NAME
pcFrameAddGLFrameletEXT -- Adds current pixels on the graphics card as a framelet.
Synopsis
PCerr pcFrameAddGLFrameletEXT(
PCcontext ctx,
PCid frameId,
PCint xOffset,
PCint yOffset
);
Parameters
ctx
The context for this frame.
frameId The unique ID generated for this frame by pcFrameBegin.
xOffset
Horizontal offset in the extracted image on this graphics card to use as the origin.
yOffset
Vertical offset in the extracted image on this graphics card to use as the origin.
Returns
This function returns PC_NO_ERROR on successful completion.
Description
Like pcFrameAddFramelet, pcFrameAddGLFrameletEXT supplies the pixels for a framelet.
The pixels are obtained by issuing a glReadPixels(xOffset, yOffset, frameletWidth,
frameletHeight,) from the current openGL graphic context.
This function only works with OpenGL.
The current openGL context must be compatible with the PIXEL_COMPOSITING_TYPE. For
example, if the PIXEL_COMPOSITING_TYPE is PC_COMP_DEPTH, the openGL context must
include depth information for the pixels.
This function is available from more than one vendor's library, including HP.
60