CSEngine
|
Public Types | |
enum | CAMERATYPE { PERSPECTIVE = 1 , ORTHO = 2 , CUBE = 3 } |
Public Types inherited from CSE::CameraBase | |
enum | BackgroundType { NONE = 0 , SOLID = 1 , SKYBOX = 2 } |
Public Member Functions | |
COMPONENT_DEFINE_CONSTRUCTOR (CameraComponent) | |
void | Exterminate () override |
void | Init () override |
void | Tick (float elapsedTime) override |
SComponent * | Clone (SGameObject *object) override |
void | CopyReference (SComponent *src, std::map< SGameObject *, SGameObject * > lists_obj, std::map< SComponent *, SComponent * > lists_comp) override |
void | SetValue (std::string name_str, Arguments value) override |
std::string | PrintValue () const override |
mat4 | GetCameraMatrix () const |
vec3 | GetCameraPosition () const |
mat4 | GetProjectionMatrix () const |
CameraMatrixStruct | GetCameraMatrixStruct () const override |
void | SetTargetVector (const vec3 &target) |
void | SetTarget (SGameObject *gameObject) |
void | SetUp (const vec3 &up) |
void | SetCameraType (CAMERATYPE type) |
void | SetPerspectiveFov (float fov) |
void | SetZDepthRange (float near, float far) |
void | SetPerspective (float fov, float near, float far) |
void | SetOrtho (float left, float right, float top, float bottom) |
void | SetCubeCamera () |
void | SetProjectionMatrix () const |
SFrameBuffer * | GetFrameBuffer () const override |
void | SetFrameBuffer (SFrameBuffer *frameBuffer) |
BackgroundType | GetBackgroundType () override |
void | RenderBackground () const override |
void | SetBackgroundSkybox (STexture *skyboxTexture=nullptr) |
void | SetBackgroundColor (vec3 &&color) |
void | SetBackgroundType (BackgroundType type) |
Public Member Functions inherited from CSE::SComponent | |
SComponent (std::string classType, SGameObject *gameObject) | |
SComponent (const SComponent &src) | |
void | Start () override |
virtual auto | GetComponent () -> SObject * |
void | SetValue (std::string name_str, Arguments value) override |
std::string | PrintValue () const override |
void | SetGameObject (SGameObject *object) |
virtual SGameObject * | GetGameObject () const |
virtual bool | GetIsEnable () const |
virtual void | SetIsEnable (bool is_enable) |
std::string | GetClassType () const |
void | SetClassType (std::string type) |
Public Member Functions inherited from CSE::SObject | |
SObject (bool isRegister) | |
virtual void | SetUndestroyable (bool enable) |
virtual void | Destroy () |
virtual void | __FORCE_DESTROY__ () |
virtual std::string | GenerateMeta () |
std::string | GetHash () const |
virtual void | SetHash (std::string &hash) |
Public Member Functions inherited from CSE::SISComponent | |
SISComponent (const SISComponent &src)=default | |
Additional Inherited Members | |
Protected Types inherited from CSE::VariableBinder | |
typedef std::vector< std::string > | Arguments |
Protected Attributes inherited from CSE::SComponent | |
SGameObject * | gameObject = nullptr |
bool | isEnable = true |
std::string | m_classType |
Protected Attributes inherited from CSE::SObject | |
std::string | m_hash |
Definition at line 30 of file CameraComponent.h.
enum CSE::CameraComponent::CAMERATYPE |
Definition at line 32 of file CameraComponent.h.
|
overridevirtual |
Reimplemented from CSE::SComponent.
Definition at line 48 of file CameraComponent.cpp.
|
overridevirtual |
Reimplemented from CSE::SComponent.
Definition at line 88 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::SObject.
Definition at line 24 of file CameraComponent.cpp.
|
overridevirtual |
Reimplemented from CSE::CameraBase.
Definition at line 253 of file CameraComponent.cpp.
mat4 CameraComponent::GetCameraMatrix | ( | ) | const |
Definition at line 148 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::CameraBase.
Definition at line 241 of file CameraComponent.cpp.
vec3 CameraComponent::GetCameraPosition | ( | ) | const |
Definition at line 152 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::CameraBase.
Definition at line 245 of file CameraComponent.cpp.
|
inline |
Definition at line 59 of file CameraComponent.h.
|
overridevirtual |
Implements CSE::SISComponent.
Definition at line 29 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::VariableBinder.
Definition at line 218 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::CameraBase.
Definition at line 257 of file CameraComponent.cpp.
void CameraComponent::SetBackgroundColor | ( | vec3 && | color | ) |
Definition at line 296 of file CameraComponent.cpp.
void CameraComponent::SetBackgroundSkybox | ( | STexture * | skyboxTexture = nullptr | ) |
Definition at line 283 of file CameraComponent.cpp.
void CameraComponent::SetBackgroundType | ( | CameraBase::BackgroundType | type | ) |
Definition at line 300 of file CameraComponent.cpp.
void CameraComponent::SetCameraType | ( | CAMERATYPE | type | ) |
Definition at line 110 of file CameraComponent.cpp.
void CameraComponent::SetCubeCamera | ( | ) |
Definition at line 140 of file CameraComponent.cpp.
void CameraComponent::SetFrameBuffer | ( | SFrameBuffer * | frameBuffer | ) |
Definition at line 249 of file CameraComponent.cpp.
void CameraComponent::SetOrtho | ( | float | left, |
float | right, | ||
float | top, | ||
float | bottom | ||
) |
Definition at line 132 of file CameraComponent.cpp.
void CameraComponent::SetPerspective | ( | float | fov, |
float | near, | ||
float | far | ||
) |
Definition at line 124 of file CameraComponent.cpp.
void CameraComponent::SetPerspectiveFov | ( | float | fov | ) |
Definition at line 114 of file CameraComponent.cpp.
void CameraComponent::SetProjectionMatrix | ( | ) | const |
Definition at line 157 of file CameraComponent.cpp.
void CameraComponent::SetTarget | ( | SGameObject * | gameObject | ) |
Definition at line 102 of file CameraComponent.cpp.
void CameraComponent::SetTargetVector | ( | const vec3 & | target | ) |
Definition at line 98 of file CameraComponent.cpp.
void CameraComponent::SetUp | ( | const vec3 & | up | ) |
Definition at line 106 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::VariableBinder.
Definition at line 177 of file CameraComponent.cpp.
void CameraComponent::SetZDepthRange | ( | float | near, |
float | far | ||
) |
Definition at line 118 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::SISComponent.
Definition at line 37 of file CameraComponent.cpp.