#include "pch.h"#include "cube.h"

Classes | |
| struct | dlight |
Defines | |
| #define | median(m) |
Functions | |
| VAR (lightscale, 1, 4, 100) | |
| void | lightray (float bx, float by, const persistent_entity &light, float fade=1, bool flicker=false) |
| void | calclightsource (const persistent_entity &l, float fade=1, bool flicker=true) |
| void | postlightarea (const block &a) |
| VARP (fullbrightlevel, 0, 176, 255) | |
| void | fullbrightlight (int level) |
| void | calclight () |
| VAR (dynlight, 0, 1, 1) | |
| static bool | insidearea (const block &a, const block &b) |
| void | preparedynlight (dlight &d) |
| void | adddynlight (physent *owner, const vec &o, int reach, int expire, int fade, uchar r, uchar g, uchar b) |
| void | cleardynlights () |
| void | removedynlights (physent *owner) |
| void | dodynlights () |
| void | undodynlights () |
| block * | blockcopy (const block &s) |
| void | blockpaste (const block &b) |
| void | freeblock (block *&b) |
Variables | |
| int | lastcalclight = 0 |
| vector< dlight > | dlights |
| #define median | ( | m | ) |
| void adddynlight | ( | physent * | owner, | |
| const vec & | o, | |||
| int | reach, | |||
| int | expire, | |||
| int | fade, | |||
| uchar | r, | |||
| uchar | g, | |||
| uchar | b | |||
| ) |
| void blockpaste | ( | const block & | b | ) |
| void calclight | ( | ) |
| void calclightsource | ( | const persistent_entity & | l, | |
| float | fade = 1, |
|||
| bool | flicker = true | |||
| ) |
| void cleardynlights | ( | ) |
| void dodynlights | ( | ) |
| void freeblock | ( | block *& | b | ) |
| void fullbrightlight | ( | int | level | ) |
| void lightray | ( | float | bx, | |
| float | by, | |||
| const persistent_entity & | light, | |||
| float | fade = 1, |
|||
| bool | flicker = false | |||
| ) |
| void postlightarea | ( | const block & | a | ) |
| void preparedynlight | ( | dlight & | d | ) |
| void removedynlights | ( | physent * | owner | ) |
| void undodynlights | ( | ) |
| VAR | ( | dynlight | , | |
| 0 | , | |||
| 1 | , | |||
| 1 | ||||
| ) |
| VAR | ( | lightscale | , | |
| 1 | , | |||
| 4 | , | |||
| 100 | ||||
| ) |
| VARP | ( | fullbrightlevel | , | |
| 0 | , | |||
| 176 | , | |||
| 255 | ||||
| ) |
| int lastcalclight = 0 |
1.5.7.1