EntropyCanvas::CameraComponent
EntropyCanvas::CameraComponent
Section titled “EntropyCanvas::CameraComponent”Camera component for viewports and render-to-texture. More…
#include <CameraComponent.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| glm::mat4 | viewProjectionMatrix(const Transform & transform) const Compute the combined view-projection matrix. |
| glm::mat4 | viewMatrix(const Transform & transform) Compute the view matrix from a transform. |
| glm::mat4 | projectionMatrix() const Compute the projection matrix with standard-Z (default). |
| glm::mat4 | projectionMatrix(bool useReverseZ) const Compute the projection matrix with configurable depth strategy. |
| ENTROPY_REGISTER_TYPE(CameraComponent ) | |
| ENTROPY_FIELD(ProjectionType , projectionType ) | |
| ENTROPY_FIELD(float , fov ) | |
| ENTROPY_FIELD(float , orthoSize ) | |
| virtual | ENTROPY_FIELD(float , nearPlane ) =0 |
| ENTROPY_FIELD(float , farPlane ) | |
| ENTROPY_FIELD(float , aspectRatio ) | |
| ENTROPY_FIELD(bool , isActive ) | |
| ENTROPY_FIELD(bool , rendersToSwapchain ) | |
| ENTROPY_FIELD(CameraRenderMode , renderMode ) | |
| virtual | ENTROPY_FIELD(uint32_t , renderWidth ) =0 |
| virtual | ENTROPY_FIELD(uint32_t , renderHeight ) =0 |
Detailed Description
Section titled “Detailed Description”struct EntropyCanvas::CameraComponent;Camera component for viewports and render-to-texture.
Combined with Transform to define view parameters.
Properties are individually addressable via PropertyRegistry for efficient network synchronization (using ENTROPY_FIELD macros).
Public Functions Documentation
Section titled “Public Functions Documentation”function viewProjectionMatrix
Section titled “function viewProjectionMatrix”inline glm::mat4 viewProjectionMatrix( const Transform & transform) constCompute the combined view-projection matrix.
function viewMatrix
Section titled “function viewMatrix”static inline glm::mat4 viewMatrix( const Transform & transform)Compute the view matrix from a transform.
function projectionMatrix
Section titled “function projectionMatrix”inline glm::mat4 projectionMatrix() constCompute the projection matrix with standard-Z (default).
function projectionMatrix
Section titled “function projectionMatrix”inline glm::mat4 projectionMatrix( bool useReverseZ) constCompute the projection matrix with configurable depth strategy.
Parameters:
- useReverseZ If true, swap near/far for reverse-Z projection (better depth precision).
function ENTROPY_REGISTER_TYPE
Section titled “function ENTROPY_REGISTER_TYPE”ENTROPY_REGISTER_TYPE( CameraComponent)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( ProjectionType , projectionType)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( float , fov)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( float , orthoSize)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”virtual ENTROPY_FIELD( float , nearPlane) =0function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( float , farPlane)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( float , aspectRatio)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( bool , isActive)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( bool , rendersToSwapchain)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( CameraRenderMode , renderMode)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”virtual ENTROPY_FIELD( uint32_t , renderWidth) =0function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”virtual ENTROPY_FIELD( uint32_t , renderHeight) =0Updated on 2026-01-26 at 17:14:35 -0500