摘要:
直线生成算法 要设计一条直线生成算法,我们可以利用直线方程进行迭代计算。假设给定直线段的起点坐标为 (x1, y1) 和终点坐标为 (x2, y2),我们可以得到直线方程为: Y = mx + b 其中 m 为斜率,b 为截距。斜率 m 和截距 b 的计算公式如下: m = (y2 - y1) / 阅读全文
摘要:
状态机 As long as you keep in mind that OpenGl is basiclly one large state mchine,most of its functionality will make more sense. OPengl是一个巨大的状态机,变量(描述该如 阅读全文