Warning: This site is under construction, most links will be broken.
LightX API -> lxgfx -> initgraphics
Last modified on Thu, 29th Mar 2007 at 02:01 UTC by zippletlxgfx.initgraphics
function initgraphics(
scrw, scrh: tlxposition;
fs: boolean;
forcebpp: longint;
backbuffermode: tlxbackbuffermode
): boolean;
Initialise the LightX graphics subsystem. Returns TRUE if successful, FALSE otherwise.
scrw, scrh: tlxposition
Specify the screen size you would like to use. When using windowed mode, arbitary sizes are possible with most output engines. When using fullscreen mode, please try to stick to common display sizes such as 640x480. You can query the output engine to determine legal screen sizes for fullscreen mode in a later version of LightX.
fs: boolean
Set to TRUE to request fullscreen exclusive mode. Not all output engines support fullscreen mode and this call will fail if that is the case.
forcebpp: longint
Set to one of the BPP constants (LX_BPP_DEFAULT, LX_BPP_16BPP, LX_BPP_32BPP) to request the bit depth you want to use. LX_BPP_DEFAULT will cause LightX to match the desktop bit depth if windowed, otherwise LightX will default to 32bpp. If LightX cannot obtain the requested bpp, this call will fail.
backbuffermode: tlxbackbuffermode
Specify the back buffering mode you want to use. Choose from bbNone, bbDoubleBuffering or bbTripleBuffering. All output engines support none and doublebuffering (some use emulation for the latter), only some output engines support triplebuffering. This call will fail if the requested back buffering mode is not available.
Class: lxgfx