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

📄 bline.h

📁 计算机图形学原理及算法教程(VC++版)程序代码
💻 H
字号:
// BLine.h: interface for the CBLine class.
//基于 z-buffer 和 color-buffer 的 Bresenham 直线生成算法

#ifndef _CBLINE_H
#define _CBLINE_H

#include "ColorBuffer.h"
#include "ZBuffer.h"

class CBLine  
{
public:
	CBLine();
	virtual ~CBLine();

public:
	void Draw(int x1,int y1, int x2, int y2, float z1, float z2, FLOATCOLORRGBA clr1, FLOATCOLORRGBA clr2, CColorBuffer* pCB, CZBuffer* pZB);
	void Draw(POINT pt1, POINT pt2, float z1, float z2, FLOATCOLORRGBA clr1, FLOATCOLORRGBA clr2, CColorBuffer* pCB, CZBuffer* pZB);
};

#endif 

⌨️ 快捷键说明

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