19 Decal::Decal(
const string&
id,
OrientedBoundingBox* obb,
Texture* texture, int32_t textureHorizontalSprites, int32_t textureVerticalSprites,
float fps):
20 DecalInternal(id, obb, texture, textureHorizontalSprites, textureVerticalSprites, fps)
28 DecalInternal::setEngine(
engine);
33 DecalInternal::setTransform(transform);
39 DecalInternal::update();
46 if (this->enabled ==
enabled)
return;
61 DecalInternal::setEnabled(
enabled);
68 if (this->frustumCulling ==
true) {
Decal entity to be used with engine class.
void update() override
Update transform.
void setTransform(const Transform &transform) override
Set transform.
void setFrustumCulling(bool frustumCulling) override
Set frustum culling.
void setEngine(Engine *engine) override
Set up engine.
void setEnabled(bool enabled) override
Enable/disable rendering.
unique_ptr< Partition > partition
void updateEntityRegistration(Entity *entity)
Updates registration of engine by performing deregisterEntity() and registerEntity()
void deregisterEntity(Entity *entity)
Removes a entity from internal lists, those entities can also be sub entities from entity hierarchy o...
void registerEntity(Entity *entity)
Adds a entity to internal lists, those entities can also be sub entities from entity hierarchy or par...
Oriented bounding box physics primitive.