Previous: 4.51.2.2.16. ogVSync() To the Table of Contents Next: 4.51.2.3.1. copy()
4.51.2.2.16. ogVSync() Table of Contents 4.51.2.3.1. copy()

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


4.51.2.3. ogSprite object

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

The ogSprite object is basically a lite version of an ogSurface object.
type
  ogSprite = object
   public
    constructor copy(var srcSprite:ogSprite);    
    destructor  done; virtual;
    procedure   get(var srcObject:ogSurface; x1, y1, x2, y2:int32); virtual;
    function    getHeight:uInt32;
    function    getSize:uInt32; virtual;
    function    getWidth:uInt32;
    constructor init;
    function    load(const filename:string):boolean;
    function    loadFromFile(var inFile:file):boolean; virtual;
    function    loadFromOffset(const filename:string; offset:uInt32):boolean; virtual;
    procedure   put(var destObject:ogSurface; x, y:int32); virtual;
    function    save(const filename:string):boolean;
    function    saveToFile(var outFile:file):boolean; virtual;    
    function    saveToOffset(const filename:string; offset:int32):boolean; virtual;
  end;



Previous: 4.51.2.2.16. ogVSync() To the Table of Contents Next: 4.51.2.3.1. copy()
4.51.2.2.16. ogVSync() Table of Contents 4.51.2.3.1. copy()

- 4.51.2.3. -