2014-12-06 12:57:35 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-07-28 03:58:37 -04:00
|
|
|
#include "3ds/types.h"
|
2015-09-06 18:50:21 +01:00
|
|
|
#ifndef REG_LCDBACKLIGHTMAIN
|
|
|
|
#define REG_LCDBACKLIGHTMAIN (u32)(0x1ED02240 - 0x1EB00000)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef REG_LCDBACKLIGHTSUB
|
|
|
|
#define REG_LCDBACKLIGHTSUB (u32)(0x1ED02A40 - 0x1EB00000)
|
|
|
|
#endif
|
|
|
|
|
2023-07-28 03:58:37 -04:00
|
|
|
void clearScreen(void);
|
2014-12-16 17:08:53 +00:00
|
|
|
|
|
|
|
#define drawPixelRGB(x, y, r, g, b) drawPixelRGBFramebuffer(0, x, y, r, g, b)
|
|
|
|
void drawPixelRGBFramebuffer(u8 *fb, int x, int y, u8 r, u8 g, u8 b);
|
|
|
|
|
|
|
|
#define drawBox(x, y, width, height, r, g, b) drawBoxFramebuffer(0, x, y, width, height, r, g, b)
|
2023-07-28 03:58:37 -04:00
|
|
|
void drawBoxFramebuffer(u8 *fb, int x, int y, int width, int height, u8 r, u8 g, u8 b);
|
2014-12-16 17:08:53 +00:00
|
|
|
|
|
|
|
#define drawString(sx, sy, text, ...) drawStringFramebuffer(0, sx, sy, text, ##__VA_ARGS__)
|
|
|
|
void drawStringFramebuffer(u8 *fb, int sx, int sy, char *text, ...);
|
2015-09-06 18:50:21 +01:00
|
|
|
|
|
|
|
void disableBacklight();
|
|
|
|
void enableBacklight();
|