sphere.h

来自「这个压缩包里是计算机图形学一书的pdf版本」· C头文件 代码 · 共 37 行

H
37
字号
// Sphere.h: interface for the CVirtualSphere class.

#ifndef _CVSPHERE_H
#define _CVSPHERE_H

class CSphere  
{
public:
	CSphere(int nRadius);
	virtual ~CSphere();

public:

	void SetColor(BYTE byRed, BYTE byGreen, BYTE byBlue);
	void SetPrecision(int nDifPrecision, int nSpePrecision);
	void Draw(CDC* pDC, int x, int y);

private:

	//半径
	int m_nRadius;

	//主体颜色
	BYTE m_byRed, m_byGreen, m_byBlue;
	
	//精细程度

	//扩散色区域的逼近次数
	int m_nDifPrecision;

	//高光区域的逼近次数
	int m_nSpePrecision;

};

#endif 

⌨️ 快捷键说明

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