Instance Method

setOffScreen:width:height:rowbytes:

Instructs the receiver to render into an offscreen buffer with the specified attributes.

Declaration

- (void)setOffScreen:(void *)baseaddr width:(GLsizei)width height:(GLsizei)height rowbytes:(GLint)rowbytes;

Parameters

baseaddr

The base address of the buffer in memory. This buffer must contain at least rowbytes * height bytes.

width

The width of the memory buffer, measured in pixels.

height

The height of the memory buffer, measured in pixels.

rowbytes

The number of bytes in a single row of the buffer. This value must be greater than or equal to the value in width times the number of bytes per pixel.

Discussion

The receiver’s viewport is set to the full size of the offscreen area. Call the clearDrawable method to exit offscreen mode.

The NSOpenGLPFAOffScreen attribute must have been specified in the receiver’s pixel format object.

See Also

Drawable Object Management

- view

Returns the receiver’s view.

Deprecated
- setFullScreen

Sets the receiver to full-screen mode.

Deprecated
- clearDrawable

Disassociates the receiver from its viewport.

Deprecated
- update

Updates the receiver's drawable object.

Deprecated