什么是硬件光标,它是如何工作的? [英] What is hardware cursor and how does it work?

查看:312
本文介绍了什么是硬件光标,它是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人可以解释如何硬件光标工作准确?它如何与我在屏幕上绘制的图形相关?我使用OpenGL绘制,硬件光标如何与OpenGL图形相关?

Is there anyone who can explain how hardware cursor works precisely? How does it relate to the graphics I'm drawing on the screen? I'm using OpenGL to draw, how does hardware cursor relate to OpenGL graphics?

编辑:对于那些可能对未来感兴趣的人,我只是实现什么是需要用硬件显示光标。实现是在内核和使用它简单的ioctl的是足够的。工作完美。

For those who may be interested in this in the future I just implemented what is needed to show the cursor with the hardware. The implementation was in the kernel and to use it simple ioctl's were sufficient. Works perfectly.

推荐答案

硬件游标意味着GPU提供在屏幕帧缓冲区上绘制位置可以由GPU上的两个寄存器(大约)来改变。

Hardware Cursor means, that the GPU provides to draw a (small) overlay picture over the screen framebuffer, which position can be changed by two registers (or so) on the GPU. So moving around the pointer doesn't require to redraw the portions of the framebuffer that were previously obstructed.

与OpenGL的关系:无!

Relation to OpenGL: None!

这篇关于什么是硬件光标,它是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆