📄 nsc_galproto.h
字号:
/* * #define GALFN_ISDISPLAYMODESUPPORTED * #define GALFN_SETDISPLAYMODE * #define GALFN_GETDISPLAYMODE */typedef struct __GAL_DISPLAYMODE{ GAL_HEADER WORD wXres; WORD wYres; WORD wBpp; WORD wRefresh; DWORD dwSupported;}GAL_DISPLAYMODE, *PGAL_DISPLAYMODE;/* * #define GALFN_SETBPP * #define GALFN_GETBPP * #define GALFN_SETPITCH * #define GALFN_GETPITCH * #define GALFN_SETOFFSET * #define GALFN_GETOFFSET */typedef struct __GAL_DISPLAYPARAMS{ GAL_HEADER DWORD dwOffset; WORD wBpp; WORD wPitch;}GAL_DISPLAYPARAMS, *PGAL_DISPLAYPARAMS;/* * #define GALFN_DOTCLKTOREFRESH */typedef struct __GAL_DOTCLKTOREFRESH{ GAL_HEADER DWORD dwDotClock; WORD wXres; WORD wYres; WORD wBpp; WORD wRefreshRate;}GAL_DOTCLKTOREFRESH, *PGAL_DOTCLKTOREFRESH;/* * #define GALFN_GETDISPLAYTIMINGS * #define GALFN_SETDISPLAYTIMINGS */typedef struct __GAL_DISPLAYTIMING{ GAL_HEADER DWORD dwDotClock; WORD wPitch; WORD wBpp; WORD wHTotal; WORD wHActive; WORD wHSyncStart; WORD wHSyncEnd; WORD wHBlankStart; WORD wHBlankEnd; WORD wVTotal; WORD wVActive; WORD wVSyncStart; WORD wVSyncEnd; WORD wVBlankStart; WORD wVBlankEnd; WORD wPolarity;}GAL_DISPLAYTIMING, *PGAL_DISPLAYTIMING;/* * #define GALFN_SETPALETTE_ENTRY * #define GALFN_GETPALETTE_ENTRY */typedef struct __GAL_PALETTE_ENTRY{ GAL_HEADER DWORD dwIndex; DWORD dwPalette;}GAL_PALETTE_ENTRY, *PGAL_PALETTE_ENTRY;/* * #define GALFN_SETPALETTE * #define GALFN_GETPALETTE */typedef struct __GAL_PALETTE{ GAL_HEADER DWORD dwColors[256];}GAL_PALETTE, *PGAL_PALETTE;/* * #define GALFN_COMPRESSIONSTATE */typedef struct __GAL_COMPRESSIONSTATE{ GAL_HEADER BOOLEAN bCompressionState;}GAL_COMPRESSIONSTATE, *PGAL_COMPRESSIONSTATE;#define GAL_COMPRESSION_ENABLE 1#define GAL_COMPRESSION_DISABLE 0#define GAL_COMPRESSION_OFFSET 1#define GAL_COMPRESSION_PITCH 2#define GAL_COMPRESSION_SIZE 4#define GAL_COMPRESSION_ALL 7/* * #define GALFN_COMPRESSIONPARAMS */typedef struct __GAL_COMPRESSIONPARAMS{ GAL_HEADER DWORD dwFlags; DWORD dwCompOffset; WORD dwCompPitch; WORD dwCompSize;}GAL_COMPRESSIONPARAMS, *PGAL_COMPRESSIONPARAMS;#define GAL_SETCURSORENABLE_ENABLE 1#define GAL_SETCURSORENABLE_DISABLE 0/* * #define GALFN_CURSORENABLE */typedef struct __GAL_CURSORENABLE{ GAL_HEADER BOOLEAN bCursorEnable;}GAL_CURSORENABLE, *PGAL_CURSORENABLE;/* * #define GALFN_CURSORPOSITION */typedef struct __GAL_CURSORPOSITION{ GAL_HEADER DWORD dwMemOffset; WORD wXPos; WORD wYPos; WORD wXHot; WORD wYHot;}GAL_CURSORPOSITION, *PGAL_CURSORPOSITION;/* * #define GALFN_SETCURSORSHAPE */typedef struct __GAL_SETCURSORSHAPE{ GAL_HEADER DWORD dwMemOffset; DWORD dwAndMask[32]; /* Most gfx hardware support only 32x32 */ DWORD dwXorMask[32];}GAL_SETCURSORSHAPE, *PGAL_SETCURSORSHAPE;/* * #define GALFN_SETCURSORCOLORS */typedef struct __GAL_CURSORCOLORS{ GAL_HEADER DWORD dwBgColor; DWORD dwFgColor;}GAL_CURSORCOLORS, *PGAL_CURSORCOLORS;/* * #define GALFN_SETSOLIDPATTERN */typedef struct __GAL_SETSOLIDPATTERN{ GAL_HEADER DWORD dwColor;}GAL_SETSOLIDPATTERN, *PGAL_SETSOLIDPATTERN;/* * #define GALFN_SETRASTEROPERATION */typedef struct __GAL_SETRASTEROPERATION{ GAL_HEADER CHAR cRop;}GAL_RASTEROPERATION, *PGAL_RASTEROPERATION;/* * #define GALFN_SETSOLIDSOURCE */typedef struct __GAL_SETSOLIDSOURCE{ GAL_HEADER DWORD dwColor;}GAL_SETSOLIDSOURCE, *PGAL_SETSOLIDSOURCE;/* * #define GALFN_PATTERNFILL */typedef struct __GAL_PATTERNFILL{ GAL_HEADER WORD wXPos; WORD wYPos; WORD wWidth; WORD wHeight;}GAL_PATTERNFILL, *PGAL_PATTERNFILL;/* * #define GALFN_SETMONOSOURCE */typedef struct __GAL_SETMONOSOURCE{ GAL_HEADER DWORD dwBgColor; DWORD dwFgColor; CHAR cTransparency;}GAL_SETMONOSOURCE, *PGAL_SETMONOSOURCE;/* * #define GALFN_SETMONOPATTERN */typedef struct __GAL_SETMONOPATTERN{ GAL_HEADER DWORD dwBgColor; DWORD dwFgColor; DWORD dwData0; DWORD dwData1; CHAR cTransparency;}GAL_SETMONOPATTERN, *PGAL_SETMONOPATTERN;/* * #define GALFN_SCREENTOSCREENBLT */typedef struct __GAL_SCREENTOSCREENBLT{ GAL_HEADER WORD wXStart; WORD wYStart; WORD wXEnd; WORD wYEnd; WORD wWidth; WORD wHeight;}GAL_SCREENTOSCREENBLT, *PGAL_SCREENTOSCREENBLT;/* * #define GALFN_SCREENTOSCREENXBLT */typedef struct __GAL_SCREENTOSCREENXBLT{ GAL_HEADER WORD wXStart; WORD wYStart; WORD wXEnd; WORD wYEnd; WORD wWidth; WORD wHeight; DWORD dwColor;}GAL_SCREENTOSCREENXBLT, *PGAL_SCREENTOSCREENXBLT;/* * #define GALFN_BRESENHAMLINE */typedef struct __GAL_BRESENHAMLINE{ GAL_HEADER WORD wX1; WORD wY1; WORD wLength; WORD wErr; WORD wE1; WORD wE2; WORD wFlags;}GAL_BRESENHAMLINE, *PGAL_BRESENHAMLINE;/* * #define GALFN_COLOR_PATTERNFILL */typedef struct __GAL_COLOR_PATTERNFILL{ GAL_HEADER WORD wDsty; WORD wDstx; WORD wWidth; WORD wHeight; DWORD dwPattern;}GAL_COLOR_PATTERNFILL, *PGAL_COLOR_PATTERNFILL;/* * #define GALFN_COLOR_BITMAP_TO_SCREEN_BLT */typedef struct __GAL_COLOR_BITMAP_TO_SCREEN_BLT{ GAL_HEADER WORD wSrcx; WORD wSrcy; WORD wDstx; WORD wDsty; WORD wWidth; WORD wHeight; DWORD dwData; WORD wPitch;}GAL_COLOR_BITMAP_TO_SCREEN_BLT, *PGAL_COLOR_BITMAP_TO_SCREEN_BLT;/* * #define GALFN_COLOR_BITMAP_TO_SCREEN_XBLT */typedef struct __GAL_COLOR_BITMAP_TO_SCREEN_XBLT{ GAL_HEADER WORD wSrcx; WORD wSrcy; WORD wDstx; WORD wDsty; WORD wWidth; WORD wHeight; DWORD dwData; WORD wPitch; DWORD dwColor;}GAL_COLOR_BITMAP_TO_SCREEN_XBLT, *PGAL_COLOR_BITMAP_TO_SCREEN_XBLT;/* * #define GALFN_MONO_BITMAP_TO_SCREEN_BLT */typedef struct __GAL_MONO_BITMAP_TO_SCREEN_BLT{ GAL_HEADER WORD wSrcx; WORD wSrcy; WORD wDstx; WORD wDsty; WORD wWidth; WORD wHeight; DWORD dwData; WORD wPitch;}GAL_MONO_BITMAP_TO_SCREEN_BLT, *PGAL_MONO_BITMAP_TO_SCREEN_BLT;/* * #define GALFN_TEXT_BLT */typedef struct __GAL_TEXT_BLT{ GAL_HEADER WORD wDstx; WORD wDsty; WORD wWidth; WORD wHeight; DWORD dwData;}GAL_TEXT_BLT, *PGAL_TEXT_BLT; /* * * #define GALFN_VGAMODESWITCH * * #define GALFN_VGACLEARCRTEXT * * #define GALFN_VGASETPITCH * * #define GALFN_VGARESTORE * * #define GALFN_VGASAVE * * #define GALFN_VGASETMODE */typedef struct __GAL_VGAREGS{ int xsize; int ysize; int hz; int clock; unsigned char miscOutput; unsigned char stdCRTCregs[GFX_STD_CRTC_REGS]; unsigned char extCRTCregs[GFX_EXT_CRTC_REGS];}GAL_VGAREGS, *PGAL_VGAREGS;typedef struct __GAL_VGAMODEDATA{ GAL_HEADER DWORD dwFlags; /* Flags for this subfunction */ GAL_VGAREGS sVgaRegs; /* CRT+SEQ+SEQ register data block */ WORD wXres; WORD wYres; WORD wBpp; WORD wRefresh;}GAL_VGAMODEDATA, *PGAL_VGAMODEDATA;typedef struct __GAL_VGATESTPCI{ GAL_HEADER SWORD softvga;}GAL_VGATESTPCI, *PGAL_VGATESTPCI;typedef struct __GAL_VGAGETPCICOMMAND{ GAL_HEADER unsigned char value;}GAL_VGAGETPCICOMMAND, *PGAL_VGAGETPCICOMMAND;typedef struct __GAL_VGASEQRESET{ GAL_HEADER SWORD reset; SWORD statusok;}GAL_VGASEQRESET, *PGAL_VGASEQRESET;typedef struct __GAL_VGASETGRAPHICSBITS{ GAL_HEADER SWORD statusok;}GAL_VGASETGRAPHICSBITS, *PGAL_VGASETGRAPHICSBITS;/******** Panel Support functions *********************//** #define GALFN_PNLSETPARAMS* #define GALFN_PNLGETPARAMS* #define GALFN_PNLINITPANEL* #define GALFN_PNLSAVESTATE* #define GALFN_PNLRESTORESTATE*/typedef struct __GAL_PNLPARAMS{ GAL_HEADER Pnl_PanelParams PanelParams;}GAL_PNLPARAMS, *PGAL_PNLPARAMS;/** #define GALFN_PNLBIOSENABLE* #define GALFN_PNLBIOSINFO*/typedef struct __GAL_PNLBIOS{ GAL_HEADER int state; int XRes; int YRes; int Bpp; int Freq;}GAL_PNLBIOS, *PGAL_PNLBIOS;typedef struct __GAL_ENABLEPANNING{ GAL_HEADER int x; int y;}GAL_ENABLEPANNING, *PGAL_ENABLEPANNING;/* * #define GALFN_SETCRTENABLE * #define GALFN_GETCRTENABLE */typedef struct __GAL_CRTENABLE{ GAL_HEADER WORD wCrtEnable;}GAL_CRTENABLE, *PGAL_CRTENABLE;#define GAL_TVSTATE 0x01#define GAL_TVOUTPUT 0x02#define GAL_TVFORMAT 0x04#define GAL_TVRESOLUTION 0x08#define GAL_TVALL 0x0F/* * #define GALFN_SETTVPARAMS * #define GALFN_GETTVPARAMS * #define GALFN_SETENABLE * #define GALFN_GETENABLE * #define GALFN_ISTVMODESUPPORTED */typedef struct __GAL_TVPARAMS{ GAL_HEADER DWORD dwFlags; WORD wWidth; WORD wHeight; WORD wStandard; WORD wType; WORD wOutput; WORD wResolution; BOOLEAN bState;}GAL_TVPARAMS, *PGAL_TVPARAMS;/* * #define GALFN_SETTVTIMING * #define GALFN_GETTVTIMING */typedef struct __GAL_TVTIMING{ GAL_HEADER DWORD dwFlags; /* not used currently */ unsigned long HorzTim; unsigned long HorzSync; unsigned long VertSync; unsigned long LineEnd; unsigned long VertDownscale; unsigned long HorzScaling; unsigned long TimCtrl1; unsigned long TimCtrl2; unsigned long Subfreq; unsigned long DispPos; unsigned long DispSize; unsigned long Debug;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -