Palettes

Just starting out? Need help? Post your questions and find answers here.
Arcturus
User
User
Posts: 14
Joined: Tue Jan 26, 2010 11:23 am
Location: Australia
Contact:

Palettes

Post by Arcturus »

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
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Palettes

Post by netmaestro »

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
Arcturus
User
User
Posts: 14
Joined: Tue Jan 26, 2010 11:23 am
Location: Australia
Contact:

Re: Palettes

Post by Arcturus »

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
Post Reply