Launch OpenGL app straight from a windowless Linux Terminal

后端 未结 4 902
执念已碎
执念已碎 2021-02-01 09:31

How exactly would one go about getting an OpenGL app to run fullscreen straight from the terminal (Ubuntu Server 9.04)? I\'ve developed an application for visual diagnostics on

4条回答
  •  太阳男子
    2021-02-01 09:49

    As yves pointed out, you can avoid running the X server if you use the framebuffer. Actually, the framebuffer modules are often yet available (for example, they are used to have the tux logo during the kernel start or a text terminal with fancy images in the background), this anyway depends on the distribution and the settings you are using.

    The kernel side is quite primitive so I'd suggest to use some higher level library such as DirectFB. The framebuffer is usable without problems but don't expect the same maturity level than a full blown X server.

提交回复
热议问题