diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-12 01:12:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-12 01:12:32 +0200 |
commit | 6143042c67f5e7adb0e64a81ebaa9c89e398a541 (patch) | |
tree | cf3a5a14b85e0df32555a769f27c31c73d3e577f /main/draw.cpp | |
parent | 04b9df316971e0cb897605fdabb16da712f3f791 (diff) |
wip
Diffstat (limited to 'main/draw.cpp')
-rw-r--r-- | main/draw.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/draw.cpp b/main/draw.cpp index 909dc13f..2c3156b0 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -116,6 +116,13 @@ auto main_impl::get_draw_bounds() const noexcept -> draw_bounds void main_impl::draw_lights_for_chunk(chunk& c, chunk_coords_ ch, Vector2b neighbor_offset) noexcept { + for (const auto& e_ : c.entities()) + { + const auto& e = *e_; + if (e.type_of() != entity_type::light) + continue; + // todo + } } void main_impl::draw_lights(chunk& c, chunk_coords_ ch, const std::array<chunk*, 8>& ns) noexcept |