Previous: 4.51.1.24. ogErrorCode type To the Table of Contents Next: 4.51.1.26. ogPal type
4.51.1.24. ogErrorCode type Table of Contents 4.51.1.26. ogPal type

- 4.51.1.25. -
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.25. ogModeInfo type


4.51.1.25. ogModeInfo type

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

ogModeInfo is used to return information about a specific mode from ogDisplay.ogGetModeInfo().

Declaration:
type
  ogModeInfo = packed record
    modeAttributes     : uInt16;
    windowAFlags       : uInt8;
    windowBFlags       : uInt8;
    granularity        : uInt16;
    windowSize         : uInt16;
    windowASeg         : uInt16;
    windowBSeg         : uInt16;
    bankSwitch         : pointer;
    bytesPerLine       : uInt16;
    xRes, yRes         : uInt16;
    charWidth          : uInt8;
    charHeight         : uInt8;
    numBitPlanes       : uInt8;
    bitsPerPixel       : uInt8;
    numberOfBanks      : uInt8;
    memoryModel        : uInt8;
    bankSize           : uInt8;
    numOfImagePages    : uInt8;
    reserved           : uInt8;
    redMaskSize        : uInt8;
    redFieldPosition   : uInt8;
    greenMaskSize      : uInt8;
    greenFieldPosition : uInt8;
    blueMaskSize       : uInt8;
    blueFieldPosition  : uInt8;
    alphaMaskSize      : uInt8;
    alphaFieldPosition : uInt8;
    directColorMode    : uInt8;
    physBasePtr        : uInt32;
    reserved1          : uInt32;
    reserved2          : uInt16;
    linBytesPerScanLine: uInt16;
    bnkNumOfImagePages : uInt8;
    linNumOfImagePages : uInt8;
    linRedMaskSize     : uInt8;
    linRedFieldPos     : uInt8;
    linGreenMaskSize   : uInt8;
    linGreenFieldPos   : uInt8;
    linBlueMaskPos     : uInt8;
    linBlueFieldPos    : uInt8;
    linAlphaMaskSize   : uInt8;
    linAlphaFieldPos   : uInt8;
    maxPixelClock      : uInt32;
    paddington         : array [ 67..512 ] of uInt8;
  end;
Remarks:

All relevant fields will be filled in when using the MS-DOS target. The only fields filled in for the win32:con target are:

See Also:


Previous: 4.51.1.24. ogErrorCode type To the Table of Contents Next: 4.51.1.26. ogPal type
4.51.1.24. ogErrorCode type Table of Contents 4.51.1.26. ogPal type

- 4.51.1.25. -