Entering mode 640x480x32-bit color in VESA
Posted: Thu Aug 25, 2016 11:08 am
The snippet to formulate will be useful to test graphics function in a fairly standard screen size (640x480).
We need a very simple, tiny snippet interface to enter this particular graphics mode whenever we just have any graphics task to try out.
We want a 32-bit color VESA mode because we can easily scale it down to other color resolutions and palettes using RGB conversions, and we also want it because we can test several basic algorithms with full color.
This particular snippet needs to set the video mode without testing whether it exists or if it corresponds to the video number for the present VESA version. We will make such detection and selective calling of modes for a VESA version in another layer of compatibility modules.
We need a very simple, tiny snippet interface to enter this particular graphics mode whenever we just have any graphics task to try out.
We want a 32-bit color VESA mode because we can easily scale it down to other color resolutions and palettes using RGB conversions, and we also want it because we can test several basic algorithms with full color.
This particular snippet needs to set the video mode without testing whether it exists or if it corresponds to the video number for the present VESA version. We will make such detection and selective calling of modes for a VESA version in another layer of compatibility modules.