Instance Method

setTextureImageToPixelBuffer:colorBuffer:

Attaches the image data in the specified pixel buffer to the texture object currently bound by the receiver.

Declaration

- (void)setTextureImageToPixelBuffer:(NSOpenGLPixelBuffer *)pixelBuffer colorBuffer:(GLenum)source;

Parameters

pixelBuffer

The pixel buffer to attach.

source

An OpenGL constant indicating which of the pixel buffer's color buffers to use. Potential values for this parameter include GL_FRONT, GL_BACK, and GL_AUX0.

Discussion

This method corresponds to the Core OpenGL method CGLTexImagePBuffer.

See Also

Working with Pixel Buffers

- setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:

Attaches the specified pixel buffer to the receiver.

Deprecated
- pixelBuffer

Returns the pixel-buffer object attached to the receiver.

Deprecated
- pixelBufferCubeMapFace

Returns the cube map face of the pixel buffer attached to the receiver.

Deprecated
- pixelBufferMipMapLevel

Returns the mipmap level of the pixel buffer attached to the receiver.

Deprecated