mirror of
https://github.com/Ryuzaki-MrL/savemii.git
synced 2026-04-04 16:35:58 -05:00
25 lines
629 B
C
25 lines
629 B
C
#pragma once
|
|
|
|
#include <coreinit/screen.h>
|
|
#include <ft2build.h>
|
|
#include <tga_reader.h>
|
|
#include FT_FREETYPE_H
|
|
|
|
typedef union _RGBAColor {
|
|
uint32_t c;
|
|
struct {
|
|
uint8_t r;
|
|
uint8_t g;
|
|
uint8_t b;
|
|
uint8_t a;
|
|
};
|
|
} RGBAColor;
|
|
|
|
void flipBuffers();
|
|
void clearBuffers();
|
|
void clearBuffersEx();
|
|
void drawTGA(int x, int y, float scale, uint8_t *fileContent);
|
|
void drawRGB5A3(int x, int y, float scale, uint8_t *pixels);
|
|
int ttfPrintString(int x, int y, char *string, bool wWrap, bool ceroX);
|
|
int ttfStringWidth(char *string, int8_t part);
|
|
void draw_bitmap(FT_Bitmap *bitmap, FT_Int x, FT_Int y); |