Brunot
Loading...
Searching...
No Matches
Camera.cpp File Reference
#include "Camera.h"
#include <GLFW/glfw3.h>
#include "Framework/Engine.h"
Include dependency graph for Camera.cpp:

Functions

static auto lookAt (const Eigen::Vector3f &eye, const Eigen::Vector3f center, const Eigen::Vector3f up) -> Eigen::Matrix4f
static auto calculateScreen (float w, float h)
static void calculateProjection (int width, int height, Eigen::Vector3f cameraPos)
static auto resizeViewport (GLFWwindow *window, int width, int height) -> void

Variables

static Eigen::Matrix4f viewTransform
static Eigen::Matrix4f projectionTransform
static Eigen::Matrix4f NDCToScreen

Function Documentation

◆ calculateProjection()

void calculateProjection ( int width,
int height,
Eigen::Vector3f cameraPos )
static
Here is the caller graph for this function:

◆ calculateScreen()

auto calculateScreen ( float w,
float h )
static
Here is the caller graph for this function:

◆ lookAt()

auto lookAt ( const Eigen::Vector3f & eye,
const Eigen::Vector3f center,
const Eigen::Vector3f up )->Eigen::Matrix4f
static
Here is the caller graph for this function:

◆ resizeViewport()

auto resizeViewport ( GLFWwindow * window,
int width,
int height )->void
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ NDCToScreen

Eigen::Matrix4f NDCToScreen
static

◆ projectionTransform

Eigen::Matrix4f projectionTransform
static

◆ viewTransform

Eigen::Matrix4f viewTransform
static