Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing palette colours in UGL
#1
I don't understand how to do this at all. I tried a few things and none worked. I need a good example on how to do it... But Blitz didn't write an example for it!! Sad
earn.
Reply
#2
Code:
OUT &H3C8, attribute
OUT &H3C9, red
OUT &H3C9, green
OUT &H3C9, blue

^ it doesnt *stop* working when you use ugl, does it?
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#3
Remember only 8 bit modes use palettes!

I think some SVGA cards don't accept the OUT commands for changing palettes, you must call interrupt 10h to do it..
Antoni
Reply
#4
Actually it does stop working, some cards have 6 bit dac, others have 8 bit dac. You can't possibly know that. So you have to use ugls routines. It expects all the color components to be in the range 0-255. And it takes a far pointer to the palette. That's it.
oship me and i will give you lots of guurrls and beeea
Reply
#5
make if they want to ask their DAC how many bits it supports. (I'm just not where I can look it up right now.)
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Reply
#6
It has in my opnion excellent routines for change the pal, we don't think letting them know such stuff is needed
oship me and i will give you lots of guurrls and beeea
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)