bline.h

来自「visual c++数字图像与图形处理中的光盘内容」· C头文件 代码 · 共 32 行

H
32
字号
/////////////////////////////////////////////////////////////////////////////////
//	
// BLine.h: interface for the CBLine class.
//
////////////////////////////////////////////////////////////////////////////////
// 版权所有(2002)
// Copyright(2002)
// 编写者: 向世明
// Author: Xiang Shiming


//基于 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 + =
减小字号Ctrl + -
显示快捷键?