在图形上下文中,术语“橡皮筋"是什么意思?意思是?

编程入门 行业动态 更新时间:2024-10-28 06:29:02
本文介绍了在图形上下文中,术语“橡皮筋"是什么意思?意思是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在不同的位置,我都看到了指图形绘图时使用的橡皮筋"一词.在这种情况下,人们似乎建议使用XOR进行绘制,而我的印象是该术语是指用于避免重新绘制整个框架的特定绘制技术.

In various locations, I've seen the term "rubberbanding" used when referring to graphics drawing. In such cases, people have seemed to recommending doing drawing using XOR, and I've gotten the impression that the term refers to a particular drawing technique used to avoid redrawing the entire frame.

但是,我一直找不到能准确定义橡皮筋"一词含义的内容.从一般意义上讲,在没有过多讨论实现细节的情况下,橡皮筋"一词的含义是什么?

However, I haven't been able to find anything that defines exactly what the term "rubberbanding" means. Just in a general sense, without discussing implementation details too heavily, what is the meaning of the term "rubberbanding" and what is its purpose?

推荐答案

这是一种非常古老的绘制形状而无需清除屏幕的技术.如果要绘制一个移动的矩形,则想法是仅绘制前一帧与新帧之间的差异(添加新部分,擦除旧部分,使普通部分保持不变).

It's a very old technique for drawing a shape without clearing the screen. If you want to draw a moving rectangle, the idea is to draw only the difference between the previous frame and the new one (adding the new parts, erasing the old ones, leaving the common part untouched).

XOR技巧是,如果您使用它进行绘制,则会将颜色设置为帧缓冲区.如果第二次在同一区域上绘制,它将消除您的颜色.

The XOR trick is that if you draw something with it, it sets your color to the framebuffer. If you draw with it a second time over the same area, it removes your color.

据我所知,自90年代以来(至少在类似PC的平台上)就没有在交​​互式渲染中使用它.

As far as I know this has not been used in interactive rendering since the 90s (at least on PC-like platforms).

更多推荐

在图形上下文中,术语“橡皮筋"是什么意思?意思是?

本文发布于:2023-10-08 14:14:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1472868.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:橡皮筋   文中   术语   图形   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!