|
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 (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) |
Public Member Functions inherited from CSE::SObject | |
| SObject (bool isRegister) | |
| virtual void | SetUndestroyable (bool enable) |
| virtual void | Destroy () |
| std::string | GetHash () const |
| virtual void | SetHash (std::string &hash) |
Public Member Functions inherited from CSE::SISComponent | |
| SISComponent (const SISComponent &src)=default | |
Public Member Functions inherited from CSE::VariableBinder | |
Public Member Functions inherited from CSE::ReflectionObject | |
| ReflectionObject (std::string type) | |
| void | SetClassType (std::string type) |
| const char * | GetClassType () const |
| bool | IsSameClass (const char *classType) const |
Public Member Functions inherited from CSE::CameraBase | |
Additional Inherited Members | |
Static Public Member Functions inherited from CSE::ReflectionObject | |
| static ReflectionObject * | NewObject (const std::string &name) |
Protected Types inherited from CSE::VariableBinder | |
| typedef std::vector< std::string > | Arguments |
Protected Member Functions inherited from CSE::VariableBinder | |
Protected Attributes inherited from CSE::SComponent | |
| SGameObject * | gameObject = nullptr |
| bool | isEnable = true |
Protected Attributes inherited from CSE::SObject | |
| std::string | m_hash |
Protected Attributes inherited from CSE::ReflectionObject | |
| std::string | m_class |
Definition at line 31 of file CameraComponent.h.
| enum CSE::CameraComponent::CAMERATYPE |
Definition at line 33 of file CameraComponent.h.
|
overridevirtual |
Reimplemented from CSE::SComponent.
Definition at line 46 of file CameraComponent.cpp.
|
overridevirtual |
Reimplemented from CSE::SComponent.
Definition at line 86 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::SObject.
Definition at line 22 of file CameraComponent.cpp.
|
overridevirtual |
Reimplemented from CSE::CameraBase.
Definition at line 246 of file CameraComponent.cpp.
| mat4 CameraComponent::GetCameraMatrix | ( | ) | const |
Definition at line 146 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::CameraBase.
Definition at line 234 of file CameraComponent.cpp.
| vec3 CameraComponent::GetCameraPosition | ( | ) | const |
Definition at line 150 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::CameraBase.
Definition at line 238 of file CameraComponent.cpp.
|
inline |
Definition at line 60 of file CameraComponent.h.
|
overridevirtual |
Implements CSE::SISComponent.
Definition at line 27 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::VariableBinder.
Definition at line 212 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::CameraBase.
Definition at line 250 of file CameraComponent.cpp.
| void CameraComponent::SetBackgroundColor | ( | vec3 && | color | ) |
Definition at line 290 of file CameraComponent.cpp.
| void CameraComponent::SetBackgroundSkybox | ( | STexture * | skyboxTexture = nullptr | ) |
Definition at line 277 of file CameraComponent.cpp.
| void CameraComponent::SetBackgroundType | ( | CameraBase::BackgroundType | type | ) |
Definition at line 294 of file CameraComponent.cpp.
| void CameraComponent::SetCameraType | ( | CAMERATYPE | type | ) |
Definition at line 108 of file CameraComponent.cpp.
| void CameraComponent::SetCubeCamera | ( | ) |
Definition at line 138 of file CameraComponent.cpp.
| void CameraComponent::SetFrameBuffer | ( | SFrameBuffer * | frameBuffer | ) |
Definition at line 242 of file CameraComponent.cpp.
| void CameraComponent::SetOrtho | ( | float | left, |
| float | right, | ||
| float | top, | ||
| float | bottom ) |
Definition at line 130 of file CameraComponent.cpp.
| void CameraComponent::SetPerspective | ( | float | fov, |
| float | near, | ||
| float | far ) |
Definition at line 122 of file CameraComponent.cpp.
| void CameraComponent::SetPerspectiveFov | ( | float | fov | ) |
Definition at line 112 of file CameraComponent.cpp.
| void CameraComponent::SetProjectionMatrix | ( | ) | const |
Definition at line 155 of file CameraComponent.cpp.
| void CameraComponent::SetTarget | ( | SGameObject * | gameObject | ) |
Definition at line 100 of file CameraComponent.cpp.
| void CameraComponent::SetTargetVector | ( | const vec3 & | target | ) |
Definition at line 96 of file CameraComponent.cpp.
| void CameraComponent::SetUp | ( | const vec3 & | up | ) |
Definition at line 104 of file CameraComponent.cpp.
|
overridevirtual |
Used to get serialized values. All classes that inherit from VariableBinder will unconditionally call this function first during initialization.
| name_str | Name of values |
| value | Serialized values |
Implements CSE::VariableBinder.
Definition at line 175 of file CameraComponent.cpp.
| void CameraComponent::SetZDepthRange | ( | float | near, |
| float | far ) |
Definition at line 116 of file CameraComponent.cpp.
|
overridevirtual |
Implements CSE::SISComponent.
Definition at line 35 of file CameraComponent.cpp.