Previous: 4.51.1.26. ogPal type To the Table of Contents Next: 4.51.1.28. ogPoint2d type
4.51.1.26. ogPal type Table of Contents 4.51.1.28. ogPoint2d type

- 4.51.1.27. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.1. ObjGfx40 Unit Constants, Variables, and Data Types
4.51.1.27. ogPixelFmt type


4.51.1.27. ogPixelFmt type

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Defines the pixel format of an ogSurface.

Declaration:
type
  ogPixelFmt = object
    BPP,                            { BitsPerPixel }
    redFieldPosition,               { RedFieldPosition }
    greenFieldPosition,             { GreenFieldPosition }
    blueFieldPosition,              { BlueFieldPosition }
    alphaFieldPosition  : uInt8;    { AlphaFieldPosition }
    redMaskSize,
    greenMaskSize,
    blueMaskSize,
    alphaMaskSize       : uInt8;
    reserved            : array [ 0..6 ] of uInt8;
  end;
See also:


Previous: 4.51.1.26. ogPal type To the Table of Contents Next: 4.51.1.28. ogPoint2d type
4.51.1.26. ogPal type Table of Contents 4.51.1.28. ogPoint2d type

- 4.51.1.27. -