libsc 2.8.7.187-a49fd
The SC library provides support for parallel scientific applications.
Loading...
Searching...
No Matches
Data Fields
sc_camera Struct Reference

Represents a camera with parameters for rendering a 3D scene. More...

#include <sc_camera.h>

Data Fields

sc_camera_vec3_t position
 The position of the camera in world coordinates.
 
sc_camera_vec4_t rotation
 Rotation from world space to view space, represented as a unit quaternion.
 
double FOV
 Horizontal field of view (in radians), defining the frustum's opening angle horizontally.
 
int width
 Image width in pixels, used to determine the aspect ratio.
 
int height
 Image height in pixels, used to determine the aspect ratio.
 
sc_camera_coords_t near_plane
 Distance to the near clipping plane.
 
sc_camera_coords_t far_plane
 Distance to the far clipping plane.
 
sc_camera_vec4_t frustum_planes [6]
 The bounding planes of the view frustum (see sc_camera_get_frustum).
 

Detailed Description

Represents a camera with parameters for rendering a 3D scene.

The sc_camera object stores essential properties of a camera, including its position, rotation, field of view, viewport dimensions, and clipping planes. These parameters define how the camera projects the 3D world onto the 2D image plane.


The documentation for this struct was generated from the following file: