/* Copyright (C) 2019 Nunuhara Cabbage * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ #ifndef SYSTEM4_SACT_H #define SYSTEM4_SACT_H #include #include #include "queue.h" #include "graphics.h" struct cg; struct sact_sprite { TAILQ_ENTRY(sact_sprite) entry; struct cg *cg; SDL_Color color; Rectangle rect; int z; bool show; }; struct sact_sprite *sact_get_sprite(int sp); int sact_Init(void); int sact_Update(void); int sact_SP_GetUnuseNum(int min); int sact_SP_GetMaxZ(void); int sact_SP_SetCG(int sp, int cg); int sact_SP_Create(int sp, int width, int height, int r, int g, int b, int a); int sact_SP_Delete(int sp); int sact_SP_SetZ(int sp, int z); #endif /* SYSTEM4_SACT_H */