Previous: 4.51.2.2.2. ogClone() To the Table of Contents Next: 4.51.2.2.4. ogCreate()
4.51.2.2.2. ogClone() Table of Contents 4.51.2.2.4. ogCreate()

- 4.51.2.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.2. ogDisplay object
4.51.2.2.3. ogCopyPal()


4.51.2.2.3. ogCopyPal()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Copies the palette from one surface to another.

Declaration:
  procedure ogCopyPal(var srcObject:ogSurface); virtual;
Remarks:

Copies the palette structure from srcObject.

Sets the hardware palette after copying.

Restrictions:

Palettes only apply to 8BPP surfaces.

See also:


Previous: 4.51.2.2.2. ogClone() To the Table of Contents Next: 4.51.2.2.4. ogCreate()
4.51.2.2.2. ogClone() Table of Contents 4.51.2.2.4. ogCreate()

- 4.51.2.2.3. -