summaryrefslogtreecommitdiff
path: root/src/engine/sky/Sky.h
blob: 12c94f5a0ca52dd0eb47bd13de26d2ec75d9eaa3 (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
#ifndef SKY_H
#define SKY_H

#ifdef __cplusplus

#include <libultraship/libultraship.h>
#include <libultraship/libultra/gbi.h>

#include "SkyActor.h"

#include "defines.h"

EXTERN_C_START
#include "code_800029B0.h"
EXTERN_C_END

class Sky {
public:
    static Sky* Instance;
    Sky();
    virtual void Draw(ScreenContext* screen);
    virtual void DrawFloor(ScreenContext* screen);
    Sky* GetSky();
    void SetColours(Vtx* skybox);
    void InitActors(ScreenContext* screen);
    std::vector<std::unique_ptr<SkyActor>>& GetSkyActors();
private:
    Mtx mSkyboxMatrix;
    static Vtx mSkyboxScreenOne[8];
    static Vtx mSkyboxScreenTwo[8];
    static Vtx mSkyboxScreenThree[8];
    static Vtx mSkyboxScreenFour[8];

    std::vector<std::unique_ptr<SkyActor>> mSkyActors;
};
#endif // __cplusplus

/** C Compatible functions **/
EXTERN_C void InitSkyActors(ScreenContext* screen);
EXTERN_C void TickSkyActors();
EXTERN_C void DrawSkyActors(ScreenContext* screen, s32 arg0);

#endif // SKY_H