b2dSetMSAA

Sets the MSAA anti-aliasing sample count. Call BEFORE b2dGraphics.

2D Overlay

Parameters & Returns

Parameters

samples Int

Returns

Int

Quick Summary

Sets the MSAA anti-aliasing sample count. Call BEFORE b2dGraphics.

Technical Exegesis...

Enables multi-sample anti-aliasing at the given sample count (e.g. 4 or 8) to smooth the sloped and curved edges of 2D primitives; 1 disables it. Must be called before b2dGraphics() so the render targets are created with MSAA.

Example

Example.bam
b2dSetMSAA(8)
b2dGraphics(1280, 720, BBR_WINDOW_MODE_WT)