Warning: This site is under construction, most links will be broken.
LightX API -> lxgfx
Last modified on Tue, 17th Apr 2007 at 22:10 UTC by zippletUnit: lxgfx.pas
Required libraries in search path: None
Description
This is the graphics base class and also includes the software rendering engine.
Software rendering engine notes
In 16bpp mode, the alpha channel is not updated with pixel/block copy operations, with the exception of the fill() procedure, for speed. Therefore, you can only rely on the alpha channel and masking/alpha functions in the following cases:
- the surface was created by a tlximgloader
- the surface has had fill() used on the entire surface with a solid alpha value ($FF), edited, then maketransparent() has been used
- alpha bytes manually manipulated (unlikely)
- makemask() has been used after any drawing on this surface
Descendants (rendering engines)
- lxgfxwrap
- lxgfxdirectdraw
- lxgfxdirect3d
- lxgfxopengl
Fields
- initdone: boolean;
- engine: string;
- pixelsize, pixelshift: longint;
- mask_a, mask_r, mask_g, mask_b: longint;
- shift_a, shift_r, shift_g, shift_b: longint;
- primarysurface: tlxhandle;
Callbacks
- cb_lostsurfaces: procedure(lxgfx: tlxgfx) of object;
- cb_afterbeginframe: procedure(lxgfx: tlxgfx) of object;
- cb_beforeendframe: procedure(lxgfx: tlxgfx) of object;
Methods
Initialisation / shutdown
Display mode
Surface handling
Frame / output
Drawing primitives
Surface drawing / masking
- draw
- drawrect
- drawstretchrect
- drawalpharect
- drawstretchalpharect
- mask
- maskrect
- maskstretchrect
- rotozoom
Utility / conversion
- c32to16
- c16to32
- getscanlineptr
- getalphascanlineptr16bpp
- maketransparent
- inverttransparency
- makemask
- createtilelist
- destroytilelist
Clipping
True type font output
<<< Back to LightX documentation root