📄 libmsdos.h
字号:
/* Copyright 2001, ESS Technology, Inc. /* SCCSID @(#)libmsdos.h 1.8 04/25/02 *//* * $Log$ *//** EMULib Emulation Library *********************************//** **//** LibMSDOS.h **//** **//** This file contains definitions and declarations for **//** routines in LibMSDOS.c. **//** **//** Copyright (C) Marat Fayzullin 1996-2001 **//** You are not allowed to distribute this software **//** commercially. Please, notify me, if you make any **//** changes to this file. **//*************************************************************/#ifndef LIBMSDOS_H#define LIBMSDOS_H/*** Bitmap Images *******************************************/#ifdef GAMEBOY#ifndef CD_GAMEint *gm_sys_pal;int *gm_yuv_pal;int *gm_startY;int *gm_startU;int *gm_startV;void GM_init_disp();void GM_ld_syspal();void GM_ld_yuvpal(unsigned char *Palette,unsigned char *xpal);#define GM_RGB1_START ((30 * 32) / 2)#define GM_RGB2_START ((32 * 32) / 2)#define GM_RGB3_START ((34 * 32) / 2)#define GM_RGB4_START ((32 * 32) / 2)#define GM_RGB5_START ((34 * 32) / 2)#define GM_Y1_START 0#define GM_Y2_START (( 2 * 32) / 2)#define GM_U420_START ((34 * 32) / 2)#define GM_V420_START ((35 * 32) / 2)typedef struct { unsigned char *Data;int W,H; } Image;#endif /*CD_GAME*/typedef unsigned char pixel;Image Img; /* For VGAPutImage */#ifndef CD_GAMEvoid GM_hscale_recover(void);void GM_hscale(int width);void VGAPutImage(Image *Img,int X,int Y,int W,int H);void VGASetColor(int N,int R,int G,int B, int *pallete);#endif /*CD_GAME*/pixel *VGANewImage(Image *Img,int W,int H);/*************************************************************//*** Color Allocation ****************************************/ /* Set color N (0..255) to a given RGB value. *//*************************************************************/#endif /*GAMEBOY*/#endif /* LIBMSDOS_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -