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

📄 swemul.h

📁 wince下的源代码集合打包
💻 H
字号:
/*Copyright (c) 1995-2000 Microsoft Corporation.  All rights reserved.*/#ifndef __SWEMUL_H__#define __SWEMUL_H__//// SMEMUL.h//// This file contains public class definitions and prototypes for the software graphics// primitives provided in swblt.cpp, swline.cpp, swfill.cpp, and swconvert.cpp//////////////////////////////////////////////////////////////////////////////////// Software Blt emulation//// swblt.cpp// The non stretch emulated blt can handle any combination of brushes, ROP4s,// color conversion.// The stretch emulated blt is a simple SRCCOPY with no masking, brushes, or color// conversion.// For stretch blts requiring more functionality than EmulatedStretchBlt provides,// a temporary surface must be created. The source is stretched onto the temporary// surface and then EmulatedBlt is called using the temporary surface// as the source argument.SCODE GPE::EmulatedBlt( GPEBltParms *pParms );////////////////////////////////////////////////////////////////////////////////// Software line drawing emulation//// swline.cppSCODE GPE::EmulatedLine( GPELineParms *pParms );////////////////////////////////////////////////////////////////////////////////// Software polygon fill emulation//// swfill.cpp// For software filling of a polygon, construct a GPEBltParms as if preparing// to Blt to the screen using a solid color or a patterned brush, and call// GPE::Blt( &GPEBltParms, gpePrepare ).// Then call EdgeList::AddEdge for each edge in the polygon, passing in the edges using// coordinates in 28.4 fixed point format.// Finally call EdgeList::Fill for each cliprect in the clip region./* A polygon edge */struct Edge;class EdgeList{	Edge			*m_aEdge;	Edge			*m_pFirstTop;	Edge			*m_pFirstBottom;	Edge			*m_pFirstActive;	int				m_nListSize;	int				m_nNumEdges;	int				m_nyMin;	int				m_nyMax;public:					EdgeList(int nAlloc);					~EdgeList();	SCODE			Fill( GPEBltParms *pParms, RECTL *prclClip, GPE *pGPE );	SCODE 			AddEdge(						signed long fx0,						signed long fy0,						signed long fx1,						signed long fy1 );};#endif // __SWEMUL_H__

⌨️ 快捷键说明

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