?? graapi.h
字號(hào):
/* SCCSID @(#)graapi.h 1.3 2/6/98 */ /************************************************************************** * * Copyright 1996, ESS Technology, Inc. * *************************************************************************/register volatile int *mvd asm("r27");#define kG_COPY 0#define kG_XOR 1#define kG_OR 2#define kG_AND 3#define ADD 1#define DEL 0#define Scrn_W 11typedef char B;typedef short H;typedef long W;typedef unsigned char UB;typedef unsigned short UH;typedef unsigned long UW;typedef long COLOR;typedef unsigned char ENTRY;typedef struct FGPNT { W fX,fY;}FGPNT;typedef union FGRECT { struct { W fLeft; W fTop; W fRight; W fBottom; } fC; struct { FGPNT fLefttop; FGPNT fRightbot; } fP;} FGRECT;void GPOpenENV(void );void GPActiveENV(W in_env );W GPGetActiveENV(void );void GPCloseENV(W in_env );void GPDrawPoint(W in_x, W in_y, unsigned char in_color, W in_mode );void GPDrawLine(FGPNT in_p1, FGPNT in_p2, UW in_attr, unsigned char in_color, W in_mode );void GPFrameRect(FGRECT in_r, UW in_attr, unsigned char in_color, W in_mode);void GPFillRect( FGRECT in_r, unsigned char in_color, W in_mode );W GPFrameOval(FGPNT in_r, UW in_attr, unsigned char in_color, W in_mode);W GPFillOval(FGPNT in_r, unsigned char in_color, W in_mode );W GPPutImage(W in_dstx, W in_dsty, W in_width, W in_height, void *in_bitmap );W GPGetImage(W in_srcx, W in_srcy, W in_width, W in_height, void *out_bitmap );W GPBitBlt(W in_dstx, W in_dsty, W in_dstwidth, W in_dstheight, W in_srcx, W in_srcy, W in_srcwidth, W in_srcheight, unsigned char *in_bitmap, W in_bitmapwidth, W in_bitmapheight, W in_mode);W GPScrollRect(FGRECT in_r, W in_x, W in_y );W GPSetClipRect(FGRECT in_r );W GPGetStringWidth(B *in_str, W in_len );W GPGetStringHeight(B *in_str, W in_len );void GPDrawStringAtPosition(W in_x, W in_y, B *in_str, W in_len, unsigned char in_color, W in_mode );/* in_mode 0: erase 1: add*/void GPSetFont(int w, int h, char* p);W GPSetColorEntry( W in_p, COLOR *in_color, W in_num );W GPGetColorEntry( W in_p, COLOR *out_color, W in_num );W GPSetCursor( W in_cursorid );W GPShowCursor( W in_show );W GPSetCursorPosition( FGPNT in_pos );void WrRGBmem(int col, int row, ENTRY colr, W in_mode);void dot(int col,int row, ENTRY color,W in_mode);void ShowPage(void);void GPClearScrn(unsigned char in_color);void Scroll_scn_V(int startx, int starty, int endx, int endy, int grace);void Copy_buf(int sx, int sy, int tx, int ty, int len, int height);void Scroll_scn_H(int startx, int starty, int endx, int endy, int grace);void Fillimage(int addr, int lx, int ly, int rx, int ry, int mode);/* mode 0: erase 1: add*/ void initpattern(int addr, int target);/* addr: from where (normal is in cache addressi, in the future it should be CDROM) target: to which object buffer (0: first, 1: second...)*/void Clear_OBJ_Buf();void Overlay(int obj, int lx, int ly, int rx, int ry);void ShowIt(int,int);void delayshow(int);/* lx,ly,rx,ry are relative not absolute */void change_flag(int x1, int x2, int y1, int y2);int get_random_number(unsigned char mod_number);GBLDEF(int Scrn_H , 0);#ifndef MKROM#define STOP {while(abc)VCX_service(); abc = 1;}#else#define STOP VCX_service();#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -