QcLightNibbles Class
Light levels (0..15) of the cells of one section, two per byte (2 KiB per section). More...
| Header: | #include <common/light/QcLightNibbles.h> |
Public Functions
| void | fill(int level) |
| int | level(int index) const |
| void | setLevel(int index, int level) |
| int | uniformLevel() const |
Static Public Members
| const int | cellCount |
Detailed Description
Cells are indexed like QcChunkSection::index (x fastest, then z, then y).
Member Function Documentation
void QcLightNibbles::fill(int level)
Sets every cell to level (0..15).
int QcLightNibbles::level(int index) const
Returns the level of the cell index.
See also setLevel().
void QcLightNibbles::setLevel(int index, int level)
Sets the cell index to level (0..15).
See also level().
int QcLightNibbles::uniformLevel() const
Returns the level of every cell when all cells have the same one, else -1.
Member Variable Documentation
const int QcLightNibbles::cellCount
The cells of a section.