Previous: 4.51.2.2.12. ogSetVisualPage() To the Table of Contents Next: 4.51.2.2.14. ogSetRGBAPalette()
4.51.2.2.12. ogSetVisualPage() Table of Contents 4.51.2.2.14. ogSetRGBAPalette()

- 4.51.2.2.13. -
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.13. ogSetPal()


4.51.2.2.13. ogSetPal()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Copies the palette from a ogPal structure into a surface.

Declaration:
  procedure procedure ogSetPal(var newPalette:ogPal); virtual;
Remarks:

Copies the newPalette into the surface.

Will set the hardware palette after copying.

Restrictions:

Palettes are only relevant to 8BPP surfaces.

See also:


Previous: 4.51.2.2.12. ogSetVisualPage() To the Table of Contents Next: 4.51.2.2.14. ogSetRGBAPalette()
4.51.2.2.12. ogSetVisualPage() Table of Contents 4.51.2.2.14. ogSetRGBAPalette()

- 4.51.2.2.13. -