81 tooltip=
"Half the visible height in world units (Orthographic).", editor_default=540)
110 ES_PROPERTY(flags, tooltip=
"Which buffers to clear before rendering this camera.")
116 tooltip=
"Snap the camera to the pixel grid for crisp pixel-art (Orthographic).")
121 ES_PROPERTY(bitmask_source=sortingLayers, tooltip=
"Which sorting layers this camera renders.")
128 ES_PROPERTY(advanced, tooltip=
"Render into a RenderTexture instead of the screen (0 = screen). Set at run time.")
Math utilities and GLM configuration for ESEngine.
Reflection and metadata system for automatic binding generation.
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
#define ES_ENUM(...)
Mark an enum that should be exposed to scripts.
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Core type definitions and utilities for ESEngine.
ClearFlags
Camera clear flags.
ProjectionType
Camera projection type.
std::int32_t i32
Signed 32-bit integer.
std::uint32_t u32
Unsigned 32-bit integer.
std::uint8_t u8
Unsigned 8-bit integer.
float f32
32-bit floating point
u32 renderTarget
Offscreen target this camera draws into; 0 = the screen. A RenderTexture handle, so it is created at ...
f32 nearPlane
Near clipping plane distance.
bool pixelPerfect
Snap the camera to the world-space pixel grid (Orthographic) so static pixel art renders crisp,...
i32 priority
Priority for determining active camera (higher = preferred).
f32 orthoSize
Orthographic size (half-height in world units).
u32 cullingMask
Sorting layers this camera renders (bit i = layer i). UI belongs to its Canvas' layer....
glm::vec4 viewport
Viewport rectangle (x, y, width, height) in normalized coords.
f32 aspectRatio
Aspect ratio (width / height), 0 = auto from viewport.
f32 farPlane
Far clipping plane distance.
ProjectionType projectionType
Projection type.
f32 fov
Field of view in degrees (perspective only).
bool isActive
Whether this is the active camera.