計算機圖形學畫圖代碼總結

///DDA畫直線 #include <cstdio> using namespace std; void Line(int x1, int y1, int x2, int y2, int color) { CDC *pDC = GetDC();///獲取圖形設備環境 float t, x, y, step; step = 1.0/(sqrt((x2-x1)*(x2-x1)
相關文章
相關標籤/搜索