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

Howdy, Stranger!

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

Categories

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

    [email protected]


    URL:http://165.91.29.0/home/

Sign In or Register to comment.