0

I would like to write some C/C++ program to take control over monitor/projector attached to my computer. What I want is to generate arbitrary output on it and I want that only my application can draw on that screen. I've googled around, but I couldn't find almost anything that would lead me in some direction.

Do you know where I can learn about it?

What I would like to do is to write "Hello world" on an external monitor. It would be also nice to have some "monitor emulator" that will act as the physically attached monitor (or to write a program to emulate it). I'm not sure if it is possible. I couldn't find anything like this.

I'm working on Ubuntu 9.10 with Gnome.

4

1 回答 1

1

您的要求非常模糊,所以我将解释我是如何解释它的。

“控制监视器/投影仪”并不是指:关闭/打开它,切换分辨率或深度。(如果你想要这些东西,你应该看看 xrandr。)你想要什么:全屏生成任意输出。

实现这一目标的最简单方法是使用 OpenGL/GLUT/GLEW。有很多可用的资源,我相信你会自己找到你正在寻找的东西。

我完全不确定您期望在外接显示器甚至投影仪上会有什么不同。外接显示器的处理方式取决于 WM、Xorg...

于 2010-04-25T16:04:26.183 回答