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/pgsetvideomode.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/pgsetvideomode.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/pgsetvideomode.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/pgsetvideomode.html on line 8
Set the current video mode
int PgSetVideoMode( PgDisplaySettings_t *settings );
ph
This function sets the current video mode to the settings given in the
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 refresh rate of 0 requests the default rate for this mode (usually 60Hz).
- unsigned flags
- There are currently no flags defined.
|
You must target this function at a specific card by calling
PdSetTargetDevice().
PgSetVideoMode() blocks until the operation is complete. |
- 0
- Success.
- -1
- An error occurred.
PgSetVideoMode() returns an error if more than one layer is currently active via the Pg
Layer family of calls. By default, io-graphics utilizes one layer.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PgGetGraphicsHWCaps(),
PgGetVideoMode(),
PgGetVideoModeInfo(),
PgGetVideoModeList()
“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/pgsetvideomode.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/pgsetvideomode.html on line 137