This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/loplayer/camera.h
falsycat 80b3b82332 [RELEASE] u22-v04
This version is submitted for U22 final presentation. (squashed 158 commits)
2021-02-07 00:00:00 +00:00

45 lines
843 B
C

#pragma once
#include <stdbool.h>
#include "util/math/vector.h"
#include "core/locommon/position.h"
#include "core/locommon/screen.h"
#include "core/locommon/ticker.h"
#include "core/loentity/entity.h"
#include "core/loshader/posteffect.h"
typedef struct {
const locommon_ticker_t* ticker;
float base_brightness;
vec2_t chunk_winsz;
uint64_t corruption_since;
locommon_position_t pos;
float scale;
float pixsort;
loshader_posteffect_drawer_param_t posteffect;
} loplayer_camera_t;
void
loplayer_camera_initialize(
loplayer_camera_t* camera,
const locommon_screen_t* screen,
const locommon_ticker_t* ticker
);
void
loplayer_camera_deinitialize(
loplayer_camera_t* camera
);
void
loplayer_camera_build_matrix(
const loplayer_camera_t* camera,
mat4_t* m
);