如何去除 GLUT 创建的窗口的边框?

发布于 2024-12-01 18:28:38 字数 152 浏览 6 评论 0原文

问题很清楚,GLUT 为我们提供了创建窗口应用程序的函数。但目前我需要重新设计标题栏以及边框样式。无论如何要删除边框标题栏吗? (当然我说的是 C++ 或 Visual C++,因为这是一个与 OpenGL 相关的问题)

The question is quite clear, GLUT provides us functions to create a windowed application. But presently I need to re-design the title bar, and also the border styles. Anyway to remove the borders and title bar? (certainly I'm talking about C++ or Visual C++ 'cause this is an OpenGL related question)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

执笏见 2024-12-08 18:28:38

GLUT 是一个简单的框架,没有太多功能。你想做的事情根本不是 GLUT 的特色,也无法用它来完成。实际上,这意味着,您必须推出自己的东西,幸运的是,这并不难。或者您使用 GLUT 的两个开源变体(FreeGLUT 和 OpenGLUT)之一,并根据您的需要扩展它们。

GLUT is a simplicistic framework without much functionality. What you want to do is simply not featured by GLUT and can't be done with it. Practically this means, you have to roll your own thing, which, luckily, is not so hard. Or you use one of the two open source variants of GLUT (FreeGLUT and OpenGLUT) and extend them with your desires.

ぃ双果 2024-12-08 18:28:38

您至少有三个选择:

  1. 修改您的 GLUT 实现以添加此功能。如果您使用 FreeGLUT,请查看 freeglut_window.cfgOpenWindow() 的实现。

  2. 使用支持此功能的不同框架。看起来SFML 应该

  3. 自己管理操作系统界面。

You have at least three options:

  1. Modify your GLUT implementation to add this feature. If you're using FreeGLUT look into the implementation of fgOpenWindow() in freeglut_window.c.

  2. Use a different framework that supports this feature. It looks like SFML should.

  3. Manage the OS interface yourself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文