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

📄 flood.h

📁 linux嵌入式开发程序
💻 H
字号:
/*===========================================================================
	2D Graphics Library
	ALL RIGHTS RESERVED, COPYRIGHT (C) FUJITSU LIMITED 1993-2002
	LICENSED MATERIAL - PROGRAM PROPERTY OF FUJITSU LIMITED
 ===========================================================================*/

#if     _ix86
#define dprint  printf
#define dpause  getchar()
#else
#define dprint
#define dpause
#endif

#define SEGNOTHING  0   /* None        */
#define SEGUPTO     1   /* Up          */
#define SEGDWTO     2   /* Down        */
#define SEGUPDW     3   /* Up and Down */
#define SEGOPEN     4   /* Open        */

/* Variable reference MACRO for flood */
#define flbc        (fl->_bc)
#define fldrawtbl   (fl->_drawtbl)
#define flopentbl   (fl->_opentbl)
#define flcntdraw   (fl->_cntdraw)
#define flcntopen   (fl->_cntopen)
#define flsegopen   (fl->_segopen)
#define flskind     (fl->_skind)
#define flsskind    (fl->_sskind)
#define flflag      (fl->_flag)
#define flxl        (fl->_xl)
#define fly         (fl->_y)
#define flxr        (fl->_xr)
#define flxxl       (fl->_xxl)
#define flyy        (fl->_yy)
#define flxxr       (fl->_xxr)

/*
int
GL_SearchEdge(GL_WP *gp, FLOODWORK *fl);

 * Searches drawing segment from current raster(Y coordinate).
 * Starting position of searching is expressed by (flxxl,flyy).
 * Output data are flxxl, flxxr and X coordinate of both end points of drawing
 * segment.
 * If the segment is not found, return value is !0.
 * If the segment is found, return value is 0.
 *
 * If specified coordinates is not at boundary color, searches right-and-left
 * boundary color or bondary of drawing area and outpust both end points of
 * drawing segment.
 *
 * If specified coordinates is at boundary color, action is changed according
 * to flflag.
 *  flflag==0
 *    Process is terminated because end point is not found. Return value
 *    is !0.
 *  flflag==!0
 *    Searches the left point of drawing segment rightward from specified
 *    point. Range for searching  is within flxr.
 *
 *    If the point is not found, process is terminated because end point is
 *    not found. Return value is !0.
 *    (Boundary of drawing area is not examined because flxr exists inside of
 *    drawing area.)
 *
 *    If the point is found, searches right boundary color or bondary of
 *    drawing area and outputs both end points of drawing segment.
 *
 * [Input parameter]
 *  gp  Pointer to work area for GL
 *  fl  Pointer to work area for Flood
 *      flxxl   X coordinate of starting point
 *      flyy    Y coordinate of starting point
 *      flbc    Boundary color
 *      flxr    (if flflag!=0) right end point of last drawn segment
 *              Searching are of left point of this time.
 *      flflag  Way of serching
 * [Return value/Output value]
 *  0   Normal termination (End point exists)
 *      flxxl  X coordinate of left end point
 *      flxxr  Y coordinate of right end point
 *  !0  End point does not exist.
 */

⌨️ 快捷键说明

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