b2dSetMSAA

Category: 2D Overlay

Syntax:

b2dSetMSAA:Int(samples:Int)


Parameters

Returns

Int



Summary

Sets how many samples per pixel (MSAA) smooth the edges of what is drawn to the window. Call it before b2dGraphics; it applies from the next b2dGraphics.

Takes samples (Int): 1 (off, the default), 2, 4 or 8. A GPU that cannot do the count gets the most it can. Render targets and BGI canvases are not multisampled.

Returns 1 for a valid count, 0 for any other.

View detailed documentation online



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

BambooBasic © 2026 Michael Denathorn