Previous: 4.51.2.1.14. saveToOffset() To the Table of Contents Next: 4.51.2.2.1. ogAlias()
4.51.2.1.14. saveToOffset() Table of Contents 4.51.2.2.1. ogAlias()

- 4.51.2.2. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.2. ogDisplay object


4.51.2.2. ogDisplay object

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

The ogDisplay object is an extension of the ogSurface object and is used for interfacing to a video display. There is a predefined variable named screen which is a pointer to a ogDisplay object. It is allocated upon startup, and deallocated during shutdown. This is provided as a convenience. The application designer may use their own variable of type ogDisplay, or derive a new object type as necessary.

New methods and virtual methods are listed here. All other parent methods are available.

type
  ogDisplay = object (ogSurface)
   public
    function    ogAlias(var srcObject:ogSurface; x1, y1, x2, y2:uInt32):boolean; virtual;
    function    ogClone(var srcObject:ogSurface):boolean; virtual;
    procedure   ogCopyPal(var srcObject:ogSurface); virtual;
    function    ogCreate(xRes, yRes: uInt32; pixFormat:ogPixelFmt):boolean; virtual;
    destructor  ogDone; virtual;    
    function    ogGetActivePage:uInt32;
    function    ogGetVisualPage:uInt32;
    constructor ogInit;
    function    ogLoadPal(const palfile:string):boolean; virtual;
    function    ogQueryModeSettings(modeNum:uInt32; var modeInfo:ogModeInfo);
    function    ogSetActivePage(newPage:uInt32);
    function    ogSetVisualPage(newPage:uInt32; waitForRetrace:boolean):uInt32;
    procedure   ogSetPal(var newPalette:ogPal); virtual;
    procedure   ogSetRGBAPalette(colour, red, green, blue, alpha:uInt8); virtual;
    procedure   ogSetRGBPalette(colour, red, green, blue:uInt8); virtual;
    procedure   ogVSync;
  end;



Previous: 4.51.2.1.14. saveToOffset() To the Table of Contents Next: 4.51.2.2.1. ogAlias()
4.51.2.1.14. saveToOffset() Table of Contents 4.51.2.2.1. ogAlias()

- 4.51.2.2. -