📄 polydisp.h
字号:
// PolyDisp.h: interface for the CPolyDisp class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_POLYDISP_H__CE28A63C_5BC6_4ECE_994D_B4CD7B417392__INCLUDED_)
#define AFX_POLYDISP_H__CE28A63C_5BC6_4ECE_994D_B4CD7B417392__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define round(x) ((x>0)?(int)(x+0.5):(int)(x-0.5))
struct edge
{
int ymax;
float xi;
float m;
struct edge *next;
};
class CPolyDisp
{
public:
CPolyDisp();
virtual ~CPolyDisp();
CDC *pDC;
CPolyDisp(CDC *poDC);
//void lineDDA(int x1, int y1, int x2, int y2, COLORREF crColor=RGB(255, 0, 0));
void poly_fill(CDC*,int,int *,COLORREF);
void insert_et(struct edge *anedge,struct edge **p_deges);
short insert_aet(struct edge *p,struct edge **p_aet);
void draw_line(int x1,int x2,int y,COLORREF crColor);
};
#endif // !defined(AFX_POLYDISP_H__CE28A63C_5BC6_4ECE_994D_B4CD7B417392__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -