mirror of
https://github.com/DarkStore-3DS/Universal-Core.git
synced 2026-07-03 00:39:23 +00:00
Some more screen class things.
This commit is contained in:
@@ -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
@@ -28,7 +28,7 @@
|
||||
#define _UNIVERSAL_CORE_SCREEN_HPP
|
||||
|
||||
#include <memory>
|
||||
#include <nds/ndstypes.h>
|
||||
#include <nds.h>
|
||||
|
||||
class Screen {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user