Palettes
Palettes
I've been trying to use the palette library in PureBasic, but none of the commands seem to be recognised. I have even tried the palette examples but when I try to compile or test it an error comes up saying that "InitPalette() is not a function or ..." and similar for every command I have tried. AutoComplete doesn't recognise any of the commands either. Can anyone please help my figure out how to get it to work?
Give a man fire and he's warm for a day; set a man on fire and he's warm for the rest of his life
- netmaestro
- PureBasic Bullfrog

- Posts: 8452
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Palettes
The commands are only recognized if you specify the DirectX7 subsystem in Compiler Options, as the Palette library is not available with the native DirectX9. Also, in order to get the palette.pb example to work here I had to use a screen depth of at least 16.
BERESHEIT
Re: Palettes
Thanks... I Typed DirectX7 in and it worked fine!
Give a man fire and he's warm for a day; set a man on fire and he's warm for the rest of his life
