set_samples_per_pixel


Description:

public void set_samples_per_pixel (int n)

Requires that any future CoglOnscreen framebuffers derived from this template must support making at least n samples per pixel which will all contribute to the final resolved color for that pixel.

By default this value is usually set to 0 and that is referred to as "single-sample" rendering. A value of 1 or greater is referred to as "multisample" rendering.

<note>There are some semantic differences between single-sample rendering and multisampling with just 1 point sample such as it being redundant to use the resolve_samples and resolve_samples_region apis with single-sample rendering.< /note>

Parameters:

this

A OnscreenTemplate template framebuffer

n

The minimum number of samples per pixel