Etterna 0.74.4
Loading...
Searching...
No Matches
Background.h
1#ifndef BACKGROUND_H
2#define BACKGROUND_H
3
4#include "Etterna/Actor/Base/ActorFrame.h"
5#include "Etterna/Models/Misc/BackgroundUtil.h"
6
7class Song;
10class Background : public ActorFrame
11{
12 public:
13 Background();
14 ~Background() override;
15 void Init();
16
17 virtual void LoadFromSong(const Song* pSong);
18 virtual void Unload();
19
20 void FadeToActualBrightness();
21 void SetBrightness(float fBrightness); // overrides pref and Cover
22
23 // One more piece of the puzzle that puts the notefield board above the bg
24 // and under everything else. m_disable_draw exists so that
25 // ScreenGameplay can draw the background manually, and still have it as a
26 // child. -Kyz
27 bool m_disable_draw;
28 bool EarlyAbortDraw() const override { return m_disable_draw; }
29
30 void GetLoadedBackgroundChanges(
31 std::vector<BackgroundChange>** pBackgroundChangesOut);
32
33 protected:
34 BackgroundImpl* m_pImpl;
35};
36
37#endif
A container for other Actors.
Definition ActorFrame.h:8
Definition Background.cpp:75
the Background that is behind the notes while playing.
Definition Background.h:11
bool EarlyAbortDraw() const override
Allow the Actor to be aborted early.
Definition Background.h:28
Holds all music metadata and steps for one song.
Definition Song.h:65