diff options
author | chai <chaifix@163.com> | 2020-02-26 00:01:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-02-26 00:01:07 +0800 |
commit | 27687536844ed3b045bba1abd1aae8bb3692f6cb (patch) | |
tree | b8bfdc74a81ac8bdfdd11f037927f967da874447 /src/extend/camera.h | |
parent | 1a94259666a0d98e98e6999f19cf07475b618e65 (diff) |
*camera
Diffstat (limited to 'src/extend/camera.h')
-rw-r--r-- | src/extend/camera.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/extend/camera.h b/src/extend/camera.h index 98e3e5a..add3684 100644 --- a/src/extend/camera.h +++ b/src/extend/camera.h @@ -8,26 +8,7 @@ #undef near #undef far -// A unity editor style camera -typedef struct Camera { - Transform transform; - float fov, aspect, near, far; - /*matrix*/ - Mat4 cached_view_matrix; /*or WorldToCameraMatrix*/ - Mat4 cached_proj_matrix; - bool is_viewdirty, is_projdirty; - /*operations*/ - float zoom_speed; - Vec2 rotate_sensitivity; - Vec2 move_sensitivity; - Euler euler; - /*events*/ - bool look_around; - Vec2 mouse_prev; - bool move_around; - /*window*/ - wog_Window* wnd; -} Camera; +typedef struct Camera Camera; typedef struct { Vec3 position; |