MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
ViewTransform.hpp File Reference
#include <glm/gtc/matrix_transform.hpp>
+ Include dependency graph for ViewTransform.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MayaFlux::Kinesis::ViewTransform
 View and projection matrices as a named push constant slot. More...
 

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Kinesis
 

Functions

float MayaFlux::Kinesis::aspect_ratio (uint32_t width, uint32_t height)
 Aspect ratio from pixel dimensions.
 
bool MayaFlux::Kinesis::in_bounds (double window_x, double window_y, uint32_t width, uint32_t height)
 Check if a window-space point is within bounds.
 
ViewTransform MayaFlux::Kinesis::look_at (const glm::vec3 &eye, const glm::vec3 &target, const glm::vec3 &up=glm::vec3(0.0F, 1.0F, 0.0F))
 Construct view matrix from eye position, target, and up vector.
 
ViewTransform MayaFlux::Kinesis::look_at_perspective (const glm::vec3 &eye, const glm::vec3 &target, float fov_radians, float aspect, float near, float far, const glm::vec3 &up=glm::vec3(0.0F, 1.0F, 0.0F))
 Construct complete ViewTransform from look-at and perspective parameters.
 
ViewTransform MayaFlux::Kinesis::ortho (float left, float right, float bottom, float top, float near=-1.0F, float far=1.0F)
 Construct orthographic projection matrix.
 
ViewTransform MayaFlux::Kinesis::perspective (float fov_radians, float aspect, float near, float far)
 Construct perspective projection matrix.
 
glm::vec3 MayaFlux::Kinesis::to_ndc (double window_x, double window_y, uint32_t width, uint32_t height)
 Convert window pixel coordinates to NDC.
 
glm::vec3 MayaFlux::Kinesis::to_ndc_aspect (double window_x, double window_y, uint32_t width, uint32_t height)
 Convert window pixel coordinates to NDC, corrected for aspect ratio.
 
glm::vec2 MayaFlux::Kinesis::to_window (const glm::vec3 &ndc, uint32_t width, uint32_t height)
 Convert NDC to window pixel coordinates.