onscreen: Support multisample based onscreen rendering

This adds support for multisample based rendering of onscreen windows
whereby multiple point samples per pixel can be requested and if the
hardware supports that it results in reduced aliasing (especially
considering the jagged edges of polygons)

Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
Robert Bragg
2011-08-21 21:27:13 +01:00
parent 98e5a9c777
commit a74c81ada3
6 changed files with 68 additions and 0 deletions

View File

@ -51,6 +51,7 @@ typedef struct
{
CoglSwapChain *swap_chain;
gboolean need_stencil;
int samples_per_pixel;
} CoglFramebufferConfig;
struct _CoglFramebuffer