What is hardware cursor and how does it work?

前端 未结 3 988
醉话见心
醉话见心 2020-12-08 07:47

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 hardw

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 07:59

    The hardware cursor is not rendered or supported by OpenGL. Some small piece of hardware overlays it on whatever image is going out the display connector - it's inserted directly into the bitstream at scan-out of each frame. Because of that, it can be moved around by changing a pair of hardware registers containing its coordinates. In the old days, these were called sprites and various numbers of them were supported on different systems.

提交回复
热议问题