18 using std::make_unique;
31 EnvironmentMapping::EnvironmentMapping(
const string&
id,
int width,
int height,
BoundingBox boundingBox)
65 translationTransform.
setTranslation(entityTransform.getTranslation());
66 translationTransform.
update();
79 translationTransform.
setTranslation(entityTransform.getTranslation());
80 translationTransform.
update();
88 if (this->enabled ==
enabled)
return;
108 if (this->frustumCulling ==
true) {
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...
Environment mapping entity.
void dispose() override
Dispose this entity.
Transform parentTransform
BoundingBox worldBoundingBox
void initialize() override
Initiates this entity.
void update() override
Update transform.
Matrix4x4 entityTransformMatrix
void setTransform(const Transform &transform) override
Set transform.
void setFrustumCulling(bool frustumCulling) override
Set frustum culling.
int64_t timeRenderUpdateFrequency
void setEngine(Engine *engine) override
Set up engine.
void setEnabled(bool enabled) override
Enable/disable rendering.
unique_ptr< EnvironmentMappingRenderer > environmentMappingRenderer
Axis aligned bounding box used for frustum, this is not directly connectable with physics engine.
void fromBoundingVolumeWithTransform(BoundingBox *original, const Transform &transform)
Create bounding volume from given original(of same type) with applied transform.
Matrix4x4 class representing matrix4x4 mathematical structure and operations for 3d space.
Matrix4x4 & identity()
Creates identity matrix.
Quaternion class representing quaternion mathematical structure and operations with x,...
Vector3 class representing vector3 mathematical structure and operations with x, y,...