Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is hardware cursor and how does it work?

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?

EDIT: 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.

like image 723
Luca Carlon Avatar asked Aug 05 '11 13:08

Luca Carlon


People also ask

Is cursor a hardware or software?

A computer mouse is a handheld hardware input device that controls a cursor in a GUI (graphical user interface) for pointing, moving and selecting text, icons, files, and folders on your computer.

How does a cursor work on computer?

A cursor is a moveable icon (generally moved with the mouse) that shows the user where any input into the computer will be placed or where an action will occur. For example, if the cursor is moved on the screen to a button in a program or application and the mouse left button is clicked, it will action.

What is the function of the cursor?

1) A cursor is the position indicator on a computer display screen where a user can enter text. In an operating system with a graphical user interface (GUI), the cursor is also a visible and moving pointer that the user controls with a mouse, touch pad, or similar input device.


1 Answers

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.

Relation to OpenGL: None!

like image 66
datenwolf Avatar answered Sep 25 '22 02:09

datenwolf