Some more screen class things.

This commit is contained in:
StackZ
2021-01-14 16:18:07 +01:00
parent 4ea3a8233c
commit 1ff3ba6534
3 changed files with 47 additions and 1 deletions
+25
View File
@@ -29,6 +29,7 @@
#include "font.hpp"
#include "image.hpp"
#include "screen.hpp"
#include "sprite.hpp"
#include <nds/ndstypes.h>
@@ -83,6 +84,30 @@ namespace Graphics {
* @param layer The layer to draw to
*/
void drawRectangle(int x, int y, int w, int h, u8 color1, u8 color2, bool top, bool layer);
/**
* @brief Draws the setted screen
*/
void drawScreen();
/**
* @brief The current screen logic
* @param hDown The keysDown variable
* @param hHeld The keysHeld variable
* @param touch The TouchPosition variable
*/
void screenLogic(u32 hDown, u32 hHeld, touchPosition touch);
/**
* @brief Set a specific Screen with the Screen class
* @param screen The screen which to set
*/
void setScreen(std::unique_ptr<Screen> screen);
/**
* @brief Goes a screen back
*/
void screenBack();
}
#endif
+1 -1
View File
@@ -28,7 +28,7 @@
#define _UNIVERSAL_CORE_SCREEN_HPP
#include <memory>
#include <nds/ndstypes.h>
#include <nds.h>
class Screen {
public: