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/pd/pddirectstart.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/pd/pddirectstart.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/pd/pddirectstart.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/pd/pddirectstart.html on line 8

PdDirectStart()

Enter direct mode

Synopsis:

PhDrawContext_t *PdDirectStart(
      PdDirectContext_t *DirectContext );

Arguments:

DirectContext
A pointer to the PdDirectContext_t structure for a direct context, as returned by PdCreateDirectContext().

Library:

ph

Description:

This function puts the application into direct mode. On successful completion of this call, the graphics driver is blocked on the application that's awaiting rendering services. The DirectContext is now the default context for the application.


Note: This call blocks until the operation is complete.

Returns:

A pointer to the previous draw context on success, or NULL on failure.

Examples:

See PdCreateDirectContext().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PdCreateDirectContext(), PdDirectStop(), PdReleaseDirectContext()

Direct mode 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/pd/pddirectstart.html on line 127

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/pd/pddirectstart.html on line 127