Euphoria
Classes | Namespaces | Functions
camera.h File Reference
#include "eu/render/space.h"

Go to the source code of this file.

Classes

struct  eu::render::Camera
 The current perspective camera representation. More...
 
struct  eu::render::OrthoCamera
 A orthographic camera representation. More...
 
struct  eu::render::CompiledCamera
 A "compiled" camera for use in rendering. More...
 

Namespaces

namespace  eu
 
namespace  eu::render
 

Functions

CameraVectors eu::render::create_vectors (const Camera &camera)
 Capture the current local space of the camera.
 
m4 eu::render::create_view_from_world_mat (const v3 &pos, const CameraVectors &cv)
 
CompiledCamera eu::render::compile (const Camera &, const Size &window_size)
 "Compile" a camera to a perspective so it can be used in rendering.
 
CompiledCamera eu::render::compile (const OrthoCamera &, const Size &window_size)
 "Compile" a camera to an orthographic view so it can be used in rendering.
 
v2 eu::render::screen_from_world (const CompiledCamera &cam, const v3 &world_pos, const v2 &resolution)
 Calculate the screen coordinate of a 3d world position.