Epok Engine

EPOK RUNTIME

epok::Camera2D

Struct

Struct

---- Camera2D ------------------------------------------------------------------------ Projection convention (no dependency whatsoever on the 3D camera or on projection_focal): screen = viewport_center + R(-camera.rotation) * (world - camera.position) * k with k = zoom * pixels_per_unit_2d, and the screen Y axis pointing DOWN while the world Y axis points UP, so the Y component is negated.

Namespace
epok
Header
world2d.hpp
Include
#include "world2d.hpp"
Module
world2d
Source
runtime/world2d.hpp:213

Basic usage

This minimal snippet shows the normal syntax for reaching the type. Open a member below for an operation-specific example.

C++ example
#include "world2d.hpp"

epok::Camera2D& value = /* obtain a valid instance from your game */;

Fields and constants