summaryrefslogtreecommitdiff
path: root/include/unk_0201E7D8.h
blob: 6c3f922d3ed483ae4d7c40856ce04b1e66601d1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef POKEDIAMOND_UNK_0201E7D8_H
#define POKEDIAMOND_UNK_0201E7D8_H

#include "fx.h"


struct CameraHistory
{
    s32 count;
    s32 readIdx;
    s32 writeIdx;
    s32 writeIdxInit;
    BOOL overrideEnabled;
    BOOL enableUpdateX;
    BOOL enableUpdateY;
    BOOL enableUpdateZ;
    VecFx32 * vecs;
};

struct CameraAngle
{
    u16 x;
    u16 y;
    u16 z;
    u16 unused;
};

struct CameraPerspective
{
    fx32 fovySin;
    fx32 fovyCos;
    fx32 aspect;
    fx32 near;
    fx32 far;
};

struct CameraLookAt
{
    VecFx32 camPos;
    VecFx32 camTarget;
    VecFx32 camUp;
};

struct CameraWork
{
    struct CameraPerspective perspective;
    struct CameraLookAt lookAt;
    fx32 distance;
    struct CameraAngle angle;
    u8 perspectiveType;
    u16 perspectiveAngle;
    VecFx32 lastTarget;
    const VecFx32 * currTarget_p;
    BOOL enableOffsetX;
    BOOL enableOffsetY;
    BOOL enableOffsetZ;
    struct CameraHistory * history;
};


#endif //POKEDIAMOND_UNK_0201E7D8_H