开发者

Drawing on top of every windows on X11

I am trying to make an arcade machine. The user will purchase credits, which will allow him to play for X minutes. I want to write "9:42 minutes left" at the left corner of the screen, even if he's playing a full screen game (UrbanTerror, for example).

I would really like if I could do this with Ruby, but any other开发者_StackOverflow language is OK. Any ideas?

Thanks in advance.


A good example of such an application is XOSD.

Problem is, that will probably fail over any GLX context, which is what fullscreen games like Urban Terror work with. Even if it would draw, the game will overdraw it almost instantly, so the best thing you would get is heavy flicker.

Probably you are better off with a cheap hardware solution, like a small secondary display (there are some USB 7" displays out there) or a LCD device. I would even claim that's good for usability.

Perhaps this is of help for you, but I don't know whether it works for several applications and fullscreen mode applications: http://doc.trolltech.com/3.3/opengl-x11-overlays.html

The idea is to use a special overlay capability of the graphics card, which is typically used for popup windows. Perhaps you can create such an overlay at the topmost level and it will also work in fullscreen -- perhaps not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜