![]() ![]() ![]() |
|
ScreenModeExist | ||
Status = ScreenModeExist(Width, Height, Depth) | ||
Parameters: Width = The required screen Width you wish to query Height = The required screen Height you wish to query Depth = The required screen Depth you wish to query (16bit ,24bit or 32bit) |
||
Returns: Status = If you computer has the requested screen mode, it's return a true(1) if not it'll be False(0) |
||
The ScreenModeExist functions checks what full screen modes your computers display device supports. When developing your game, it's very important not to make assumptions about the type of display that the players your game might have. As such, it's a good habit to check if a screen mode exists before attempting to open the screen of that size. Valid Depths 16 = 16bit 24 = 24 bit 32 = 32bit FACTS: * ScreenModeExist checks a full Screen display mode is available, it's not required if your using a windowed screen mode for your program. Mini Tutorial: This example checks if your video cards supports certain full screen display modes.
On my computer, This example would output. Remember, not every computer has the same display modes.
|
Related Info: | GetScreenType | OpenScreen : |
|
|||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() ![]() ![]() |
(c) Copyright 2002 - 2025 - Kevin Picone - PlayBASIC.com |