Previous: 4.51.2.4.50. ogSetAntiAliasing() To the Table of Contents Next: 4.51.2.4.52. ogSetLastError()
4.51.2.4.50. ogSetAntiAliasing() Table of Contents 4.51.2.4.52. ogSetLastError()

- 4.51.2.4.51. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.4. ogSurface object
4.51.2.4.51. ogSetBlending()


4.51.2.4.51. ogSetBlending()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Sets whether the surface is blending.

Declaration:
  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:


Previous: 4.51.2.4.50. ogSetAntiAliasing() To the Table of Contents Next: 4.51.2.4.52. ogSetLastError()
4.51.2.4.50. ogSetAntiAliasing() Table of Contents 4.51.2.4.52. ogSetLastError()

- 4.51.2.4.51. -