4.51.2.4.50. ogSetAntiAliasing() | Table of Contents | 4.51.2.4.52. ogSetLastError() |
function ogSetBlending(blending:boolean):boolean;Remarks:
Alpha blending in a surface allows for drawing semi-transparent graphics primitives or surfaces. The alpha level represents the opacity of the source pixel. An alpha value of 255 represents a 100% opaque pixel. An alpha value of 0 means the source pixel will be discarded before rendering it to the destination surface.
Restrictions:When rendering to a surface without an alpha channel, functions that accept packed pixel parameters won't be blended since the alpha information is lost. Exceptions to this are gouraud polygons and when using ogSetPixelRGBA().
Return value:Returns the previous state of blending.
See also:4.51.2.4.50. ogSetAntiAliasing() | Table of Contents | 4.51.2.4.52. ogSetLastError() |