mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Initial commit
This commit is contained in:
29
arm9/source/themes/background/IThemeBackground.h
Normal file
29
arm9/source/themes/background/IThemeBackground.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
class GraphicsContext;
|
||||
class VramContext;
|
||||
class IVramManager;
|
||||
class ITheme;
|
||||
|
||||
class IThemeBackground
|
||||
{
|
||||
public:
|
||||
virtual ~IThemeBackground() = 0;
|
||||
|
||||
/// @brief Updates the background.
|
||||
virtual void Update() { }
|
||||
|
||||
/// @brief Draws the background.
|
||||
/// @param graphicsContext The graphics context to use.
|
||||
virtual void Draw(GraphicsContext& graphicsContext) { }
|
||||
|
||||
/// @brief Performs vblank processes for the background.
|
||||
virtual void VBlank() { }
|
||||
|
||||
/// @brief Loads the resources for this background.
|
||||
/// @param theme The theme the background belongs to.
|
||||
/// @param vramContext The vram context.
|
||||
virtual void LoadResources(const ITheme& theme, const VramContext& vramContext) { }
|
||||
};
|
||||
|
||||
inline IThemeBackground::~IThemeBackground() { }
|
||||
Reference in New Issue
Block a user