Files
nunuhara_xsystem4/qnt.h
T
Nunuhara Cabbage ee0f72ae2e Refactor SACT2 and fix input
Pull graphics code into sact_graphics.c.
Implement Key_ClearFlag so that SACT2's own input handling code works
properly.
2019-11-21 19:57:24 -08:00

50 lines
1.7 KiB
C

/*
* qnt.h extract QNT cg
*
* Copyright (C) 1997-1998 Masaki Chikama (Wren) <chikama@kasumi.ipl.mech.nagoya-u.ac.jp>
* 1998- <masaki-c@is.aist-nara.ac.jp>
* 2019 Nunuhara Cabbage <nunuhara@haniwa.technology>
*
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @version 1.0 01/07/30 initial version
* @version 1.1 01/11/28 add header size information
*/
#ifndef SYSTEM4_QNT_H
#define SYSTEM4_QNT_H
#include <stdbool.h>
#include <stdint.h>
#include <SDL.h>
#include "cg.h"
struct qnt_header {
int hdr_size; // header size
int x0; // display location x
int y0; // display location y
int width; // image width
int height; // image height
int bpp; // image data depth
int rsv; // reserved data
int pixel_size; // compressed pixel size
int alpha_size; // compressed alpha pixel size
};
bool qnt_checkfmt(uint8_t *data);
SDL_Surface *qnt_extract(uint8_t *data);
#endif /* __QNT_H__ */