summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-01 22:27:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-01 22:27:30 +0200
commit31fd5bbc08234686cf798a93a18e0bb73615d1bf (patch)
tree59b964d01885916c5d49fef3c168ff10dcbdd93f /shaders
parent053ea3aa1c443c368f8b43591e3e970e12b50c70 (diff)
rename entity -> object
Diffstat (limited to 'shaders')
-rw-r--r--shaders/lightmap.cpp8
-rw-r--r--shaders/lightmap.hpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp
index 0585223b..47a7a5e0 100644
--- a/shaders/lightmap.cpp
+++ b/shaders/lightmap.cpp
@@ -5,7 +5,7 @@
#include "src/chunk.hpp"
#include "src/tile-bbox.hpp"
#include "src/tile-atlas.hpp"
-#include "src/entity.hpp"
+#include "src/object.hpp"
#include <utility>
#include <Corrade/Containers/PairStl.h>
#include <Corrade/Containers/Iterable.h>
@@ -371,7 +371,7 @@ void lightmap_shader::add_chunk(Vector2 neighbor_offset, chunk& c)
neighbor_offset += Vector2(half_neighbors);
add_geometry(neighbor_offset, c);
- add_entities(neighbor_offset, c);
+ add_objects(neighbor_offset, c);
}
void lightmap_shader::add_geometry(Vector2 neighbor_offset, chunk& c)
@@ -407,9 +407,9 @@ void lightmap_shader::add_geometry(Vector2 neighbor_offset, chunk& c)
}
}
-void lightmap_shader::add_entities(Vector2 neighbor_offset, chunk& c)
+void lightmap_shader::add_objects(Vector2 neighbor_offset, chunk& c)
{
- for (const auto& e_ : c.entities())
+ for (const auto& e_ : c.objects())
{
const auto& e = *e_;
if (e.is_virtual())
diff --git a/shaders/lightmap.hpp b/shaders/lightmap.hpp
index 2dea87e9..2a0869bc 100644
--- a/shaders/lightmap.hpp
+++ b/shaders/lightmap.hpp
@@ -74,7 +74,7 @@ private:
GL::Mesh make_occlusion_mesh();
static std::array<UnsignedShort, 6> quad_indexes(size_t N);
- void add_entities(Vector2 neighbor_offset, chunk& c);
+ void add_objects(Vector2 neighbor_offset, chunk& c);
void add_geometry(Vector2 neighbor_offset, chunk& c);
void add_rect(Vector2 neighbor_offset, Vector2 min, Vector2 max);
void add_rect(Vector2 neighbor_offset, Pair<Vector2, Vector2> minmax);