Instance Method

glContextPixelFormatAttributes

Returns the list of pixel format attributes used to create the OpenGL context.

Declaration

- (NSArray *)glContextPixelFormatAttributes;

Return Value

An NSArray of NSNumbers, each of which is a CGLPixelFormatAttribute value. See OpenGL/CGLTypes.h for the CGLPixelFormatAttribute values.

Discussion

This method allows a plug-in to create OpenGL contexts that are compatible with those created by the host application.

A plug-in typically puts the values for each element of the returned array into an C-style zero-terminated array of CGPixelFormatAttributes and passes a pointer to that array to CGLChoosePixelFormat. It then passes the CGLPixelFormatObj returned by that function to CGLCreateContext and then to CGLDestroyPixelFormat.

See Also

Getting the Host Application Capabilities

- notifiesParameterChangedForGenerators

Returns whether or not the host application provides parameter change notifications for generators.

- parameterChangedUsableForAllParameters

Indicates whether or not the parameter change notifications are provided for all parameter types.

- supportsDisabledParameters

Indicates whether or not the host application supports disabling parameters.

- supportsGroupParameters

Indicates whether or not the host application supports group parameters.

- supportsHiddenParameters

Indicates whether or not the host application supports hidden parameters.

- formatsFloatRGBABitmapsAsARGB

Indicates whether or not the host application formats 32-bit float RGBA bitmaps as ARGB.

- supportsTemporalBitmaps

Indicates whether or not the host application supports temporal bitmaps and image well parameters.

- timeBase

Indicates whether the time values used by the host application are relative or absolute.

- upscalesFields

Indicates whether or not the host application vertically upscales single fields to full-frame dimensions.