Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pggetvideomode.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pggetvideomode.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pggetvideomode.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pggetvideomode.html on line 8
Get the current video mode
int PgGetVideoMode( PgDisplaySettings_t *settings );
ph
This function gets the current video mode, storing information about it in
the PgDisplaySettings_t structure pointed to by
settings, which includes at least the following:
- unsigned mode
- The number of the current mode for the video card.
- int refresh
- The refresh rate, in Hz.
A value of 0 indicates that the default refresh rate for this mode
(usually 60Hz) is being used.
- unsigned flags
- There are currently no flags defined.
|
You must target this function at a specific card by calling
PdSetTargetDevice().
PgGetVideoMode() blocks until the operation is complete. |
- 0
- Success.
- -1
- An error occurred.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PdSetTargetDevice(),
PgGetGraphicsHWCaps(),
PgGetVideoModeInfo(),
PgGetVideoModeList(),
PgSetVideoMode()
“Video modes”
in the Raw Drawing and Animation chapter of the
Photon Programmer's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pggetvideomode.html on line 137
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pggetvideomode.html on line 137