SavvyManager/include/gfx.hpp
RocketRobz 2f229470fe Complete the SS3 & SS4 character lists
Now also shows the amount of people met for SS3 & SS4 as well
2021-08-21 01:48:54 -06:00

59 lines
1.8 KiB
C++

#ifndef GFX_HPP
#define GFX_HPP
#include "sprites.h"
#include "gameSelSprites.h"
#include "gameShotSprites.h"
#include "gameBgSprites.h"
#include <3ds.h>
#include <citro2d.h>
// Colors.
#define TRANSPARENT C2D_Color32(0, 0, 0, 0)
#define BLACK C2D_Color32(0, 0, 0, 255)
#define WHITE C2D_Color32(255, 255, 255, 255)
#define GRAY C2D_Color32(127, 127, 127, 255)
#define BLUE C2D_Color32(0, 0, 255, 255)
#define GREEN C2D_Color32(0, 255, 0, 255)
#define RED C2D_Color32(255, 0, 0, 255)
#define MSG_BUTTONTEXT C2D_Color32(181, 48, 0, 255)
#define HALF_BLACK C2D_Color32(0, 0, 0, 127)
#define TIME C2D_Color32(16, 0, 0, 223)
typedef u32 Color;
extern bool animateBg;
extern bool bgCanAnimate;
extern bool shiftBySubPixel;
namespace GFX {
// Load & Unload default sheets.
Result loadSheets();
Result unloadSheets();
void loadGameSelSheets();
void unloadGameSelSheets();
// Sprite Functions.
bool loadCharSprite(const char* t3xPathAllSeasons, const char* t3xPathOneSeason);
void loadBgSprite(void);
void unloadBgSprite(void);
void reloadBgSprite(void);
void showBgSprite(int zoomIn);
void animateBgSprite(void);
void showCharSprite(int zoomIn, int fadeAlpha, bool lightingEffects = false);
void DrawGameSelSprite(int img, int x, int y, float ScaleX = 1, float ScaleY = 1);
void DrawGameShotSprite(int img, int x, int y);
void DrawGameBgSprite(int img, int x, int y, float ScaleX = 1, float ScaleY = 1);
void DrawSprite(int img, int x, int y, float ScaleX = 1, float ScaleY = 1);
void DrawSpriteLinear(int img, int x, int y, float ScaleX = 1, float ScaleY = 1);
void DrawSpriteBlend(int img, float x, float y, u32 color, float ScaleX = 1, float ScaleY = 1);
void DrawSpriteLinearBlend(int img, float x, float y, u32 color, float ScaleX = 1, float ScaleY = 1);
// Draw Cursor.
void drawCursor(int cX, int cY);
}
#endif