⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 font.h

📁 NES game Emulator in Linux.c and asm codes.
💻 H
字号:
/*

SNEeSe, an Open Source Super NES emulator.


Copyright (c) 1998-2004 Charles Bilyue'.
Portions Copyright (c) 2003-2004 Daniel Horchner.

This is free software.  See 'LICENSE' for details.
You must read and accept the license prior to use.

*/

#ifndef SNEeSe_font_h
#define SNEeSe_font_h

class WINDOW;
typedef WINDOW * pWINDOW;
struct GUI_FONT;
typedef GUI_FONT * pGUI_FONT;

class GUI_FONT {
protected:
 unsigned char *xlat;
 unsigned char *faces;
 int width,widthspace;
 int height,heightspace;
public:
 int get_width(){ return width; }
 int get_widthspace(){ return widthspace; }
 int get_height(){ return height; }
 int get_heightspace(){ return heightspace; }

 friend void PlotChar(pWINDOW window,pGUI_FONT font,
  char Character,int x,int y,int bcolor,int fcolor);
 friend void PlotCharT(pWINDOW window,pGUI_FONT font,
  char Character,int x,int y,int color);
 friend void PlotCharTDirect(pGUI_FONT font,char Character,
  int x,int y,int color);

 GUI_FONT(unsigned char *xlat,unsigned char *faces,int width,int height,
  int widthspace,int heightspace){
  this->xlat=xlat; this->faces=faces;
  this->width=width; this->height=height;
  this->widthspace=widthspace; this->heightspace=heightspace;
 }
};

typedef GUI_FONT * pGUI_FONT;

extern "C" unsigned char Xlat_ZSNES_6x6[256];
extern "C" unsigned char Font_ZSNES_6x6[25];
extern "C" unsigned char Font_Modified_6x6[25];
extern "C" unsigned char Xlat_6x8[256];
extern "C" unsigned char Font_6x8[48];

#define Font_Width_ZSNES 5
#define Font_Height_ZSNES 5
#define Font_WidthSpace_ZSNES 6
#define Font_HeightSpace_ZSNES 6
#define Font_Width_Old 6
#define Font_Height_Old 8
#define Font_WidthSpace_Old 7
#define Font_HeightSpace_Old 8

#include "misc.h"

#endif /* !defined(SNEeSe_font_h) */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -