SetVideoDriver¶
Install a new video driver.
Declaration¶
Source position: videoh.inc line 196
function SetVideoDriver(const Driver: TVideoDriver) : Boolean;
Description¶
SetVideoDriver sets the videodriver to be used to Driver. If the current videodriver is initialized (after a call to InitVideo) then it does nothing and returns False.
A new driver can only be installed if the previous driver was not yet activated (i.e. before a call to InitVideo) or after it was deactivated (i.e after a call to DoneVideo).
For more information about installing a videodriver, see viddriver.
For an example, see the section on writing a custom video driver.
Errors¶
If the current driver is initialized, then False is returned.