mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-22 22:48:08 +03:00
Define a dedicated `vmvar_t` type for values stored in variable pages and propagate it through interfaces that expose those values. Keep the type as int for now so this commit does not change runtime behavior. This separates VM storage from ordinary int buffers and makes a later conversion to 16-bit storage mechanically checkable.
63 lines
2.2 KiB
C
63 lines
2.2 KiB
C
/*
|
|
* sactcg.h: CG作成
|
|
*
|
|
* Copyright (C) 1997-1998 Masaki Chikama (Wren) <chikama@kasumi.ipl.mech.nagoya-u.ac.jp>
|
|
* 1998- <masaki-c@is.aist-nara.ac.jp>
|
|
*
|
|
* 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
|
|
*
|
|
*/
|
|
/* $Id: sactcg.h,v 1.2 2003/11/16 15:29:52 chikama Exp $ */
|
|
|
|
#ifndef __SACTCG_H__
|
|
#define __SACTCG_H__
|
|
|
|
#include "portab.h"
|
|
|
|
enum sactcg_type {
|
|
CG_NOTUSED = 0,
|
|
CG_LINKED = 1,
|
|
CG_SET = 2,
|
|
CG_REVERSE = 3,
|
|
CG_STRETCH = 4
|
|
};
|
|
|
|
typedef struct {
|
|
enum sactcg_type type;
|
|
int no;
|
|
struct SDL_Surface *sf;
|
|
int refcnt;
|
|
} cginfo_t;
|
|
|
|
cginfo_t *scg_addref(int no);
|
|
void scg_deref(cginfo_t *cg);
|
|
void scg_create(int wNumCG, int wWidth, int wHeight, int wR, int wG, int wB, int wBlendRate);
|
|
void scg_create_reverse(int NumCG, int wNumSrcCG, int wReverseX, int wReverseY);
|
|
void scg_create_stretch(int wNumCG, int wWidth, int wHeight, int wNumSrcCG);
|
|
void scg_create_blend(int wNumDstCG, int wNumBaseCG, int wX, int wY, int wNumBlendCG, int wAlphaMapMode);
|
|
void scg_create_text(int wNumCG, int wSize, int wR, int wG, int wB, int wText);
|
|
void scg_create_textnum(int wNumCG, int wSize, int wR, int wG, int wB, int wFigs, int wZeroPadding, int wValue);
|
|
void scg_copy(int wNumDstCG, int wNumSrcCG);
|
|
void scg_cut(int wNumDstCG, int wNumSrcCG, int wX, int wY, int wWidth, int wHeight);
|
|
void scg_partcopy(int wNumDstCG, int wNumSrcCG, int wX, int wY, int wWidth, int wHeight);
|
|
void scg_freeall(void);
|
|
void scg_free(int cg);
|
|
int scg_querytype(int wNumCG);
|
|
bool scg_querysize(int wNumCG, vmvar_t *w, vmvar_t *h);
|
|
int scg_querybpp(int wNumCG);
|
|
bool scg_existalphamap(int wNumCG);
|
|
|
|
#endif
|