mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-23 05:29:57 +00:00
42 lines
909 B
C++
42 lines
909 B
C++
#pragma once
|
|
#include "cdcScene.h"
|
|
#include "cdcMath/Math.h"
|
|
#include "cdcRender/Culling/BasicPrimitives.h"
|
|
|
|
namespace cdc {
|
|
|
|
class IDrawable;
|
|
class ISceneCellGroup;
|
|
class Scene;
|
|
class SceneCellGroup;
|
|
|
|
class SceneEntity : public ISceneEntity {
|
|
public:
|
|
Scene *scene; // 4
|
|
uint32_t entityIndex; // 8
|
|
Matrix matrix; // 20
|
|
bool enabled = true; // 64
|
|
IDrawable *drawable = nullptr; // 6C
|
|
SceneCellGroup *sceneCellGroup = nullptr; // 70
|
|
BasicCullingVolume cullingVolume; // F0
|
|
|
|
void QueryVolumeFromDrawable();
|
|
void TransformVolumeAndPivot();
|
|
void UpdateData(bool);
|
|
|
|
public:
|
|
SceneEntity(Scene *scene);
|
|
|
|
// 25 methods
|
|
void ApplyUpdateState(UpdateState*) override;
|
|
void setMatrix(Matrix&) override;
|
|
Matrix& getMatrix() override;
|
|
void setDrawable(IDrawable *) override;
|
|
IDrawable *getDrawable() override;
|
|
void setCellGroup(ISceneCellGroup *) override;
|
|
void Release() override;
|
|
~SceneEntity();
|
|
};
|
|
|
|
}
|