Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

HELP!!! VESA modes : 16 / 24 / 32-bit palettes

Can anyone explain these? How are they arranged / accessed? All the tuts on the net talk about 256 colors only!


Im trying some dos C/C++ vesa game programming.


Code samples are welcomed.


Any urls you can point me too?


Comments

  • : Can anyone explain these? How are they arranged / accessed? All the tuts on the net talk about 256 colors only!


    : Im trying some dos C/C++ vesa game programming.


    : Code samples are welcomed.


    : Any urls you can point me too?


    Well, the most obvious URL would be:


    http://www.vesa.org


    A little info on how the direct color modes are set up:


    15-bit modes, 2 bytes a pixel, one after another, otherwise

    set up as 256 color mode. Of the bits of the 2 byte word, the

    pixels are 5,5,5 rgb.


    16-bit modes, 2 bytes a pixel, 5,6,5 rgb.


    24-bit modes, 3 bytes a pixel, as other modes, but

    each byte is a color value, RGB, in that order.


    32-bit modes, 4 bytes a pixel, first pixel is alpha blending,

    then 3 bytes of RGB.


    Matthew Gross

    Acheron@Hotmail.com


    URL:http://165.91.29.0/home/

Sign In or Register to comment.