| pyropixel.ppsoftshadow: | Types | Modinfo | Source |
| Field colB = 255 | |
| Description | PPAmbientLight's blue value. |
| Field colG = 255 | |
| Description | PPAmbientLight's green value. |
| Field colR = 255 | |
| Description | PPAmbientLight's red value. |
| Field isOn | |
| Description | Whether PPAmbientLight is on or off. |
| Information | Set this value to true so that an ambient light is rendered. |
| Type PPSoftshadow | |
| Description | PPSoftshadow Type. |
| Function EditorOld() | |
| Returns | nothing. |
| Description | The inline Editor. |
| Information | Use this Function call in your Main Loop if you want to use the inline Editor. The inline Editor lets you create and control shadow and light objects easily. |
| Function GetDebugMode() | |
| Returns | 0 if DebugMode is off 1 if DebugMode is on. |
| Description | Check if PPSoftshadow's DebugMode is on or off. |
| Information | You could use this when using the inline editor. |
| Function GetEditorMode() | |
| Returns | 0 if Editor is off 1 if Editor is on. |
| Description | Check if PPSoftshadow's inline Editor is on or off. |
| Information | You could use this when using the inline editor. For example the inline Editor uses arrow keys to move a selected item. If your Application does use arrow keys in main loop too, you could deactivate them when you know that the Editor is active. |
| Function MinimiseEditor(_bool:Byte) | |
| Returns | nothing. |
| Description | Minimise PPSoftshadow's Editor Windows. |
| Information | You could use this to let editor windows start minimised i.e. True minimises windows False maximises windows |
| Function SetDebugMode( _mode ) | |
| Returns | nothing. |
| Description | Set PPSoftshadow's DebugMode on or off. |
| Information | You could use this when using the inline editor. 0 sets DebugMode off 1 sets Debugmode on. |
| Function SetEditorMode( _mode ) | |
| Returns | nothing. |
| Description | Set PPSoftshadow's Editor on or off. |
| Information | You could use this when using the inline editor. 0 sets Editor off 1 sets Editor on |
| Function SetOffset(_x,_y) | |
| Returns | nothing. |
| Description | Sets the offset for all shadow casters and lights. _x and _y are the current offsets. |
| Information | This is handy for scrolling levels, tilemaps etc. so that the shadows will scroll too. |
| Function UpdateLights() | |
| Returns | nothing. |
| Description | Updates all light calculations and drawings. |
| Information | Use this after drawing the objects taht throw shadows in your main loop. |
| Function UpdateShadows() | |
| Returns | nothing. |
| Description | Updates all shadow calculations and drawings. |
| Information | Use this after drawing the ground in your main loop. |
| Type TLight | |
| Description | TLight Type. |
| Function Create:TLight(_x#,_y#,_radius=1,_mouseposition=False,_r=255,_g=255,_b=255,_alpha#=1, _scale#=1, _softshadows=False, _randomradius=0,_flickering=2.5,_z#=2,_intensity#=0.5, _lensflare=False, _flarecount=4, _flareintensity#=0.5) | |
| Description | Creates a new TLight Object. |
| Information | _x# _y# _radius=1 _mouseposition=False _r=255,_g=255 _b=255 _alpha#=1 _scale#=1 _softshadows=False _randomradius=0 _flickering=5 _z#=2 _intensity#=0.5. |
| Function UpdateAll() | |
| Description | Updates all TLight Objects. |
| Version | 1.04 - 8th July 2006 |
|---|---|
| Author | Rene Aye mailto:raye@pyroplay.de - Visit http://www.pyroplay.de |
| Author | Indiepaths texturedpoly mod is used in DirectX - http://modules.indiepath.com/ |
| License | Free to use BlitzMax module |
| History | 1.04 Release |
| History | Fixed: editor light object positioning with offset values |
| History | 1.03 Release |
| History | Fixed: editor crashed when no lights and no shadow objects are in the project |
| History | Fixed: SetOffset() did not move the lightcones, flares etc. |
| History | Editor: Light Tab, editfields do work now |
| History | 1.02 Release |
| History | Added DirectX compatability |
| History | Fixed Editor bug: creating vectors although no SCO is selected |
| History | 1.01 Release |
| History | fixed some TList = null editor crashes |
| History | added help window |
| History | 1.00 Release |
| History | fixed memory leakage |
| History | inline editor rewritten, GUI system added |
| History | lens flare system |
| History | circle shadow caster added |
| History | shadow caster rotation |
| History | offset values for integrating into scrolling games |
| History | ambient light control |