CL_VidMode3
Video mode class.
Overview
This class is used to describe a videomode in ClanLib.
CL_VidMode is returned from a display card when a list of video modes are requested by a call to CL_DisplayCard::get_videomodes().
Note that not all display implementations can give you a list of supported modes. If none are requested, you can select whatever mode you want. This usually happens when the implementation runs in a window and that there's no such thing as a video mode.
Class members
- int
width
- int
height
- int
bpp
- bool
mode_x
CL_VidMode(-
int width, int height, int bpp, bool mode_x=false)
- std::string
asString()
Members with descriptions
- int
width -
Description:
Videomode width.
- int
height -
Description:
Videomode height.
- int
bpp -
Description:
Videomode depth.
- bool
mode_x -
Description:
True if modeX.
CL_VidMode(-
int width, int height, int bpp, bool mode_x=false)
Parameters: width - Width of the videomode. height - Height of the videomode. bpp - Depth (8, 16, 24, 32 bpp) of the videomode. mode_x - Use mode x if available.
Description:
Class Constructor.
- std::string
asString() -
Description:
Converts the video mode description to a string.
Return value:
A string describing the video mode in human language!