Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在修改这里的源。为了禁用 SDL 窗口上的标题栏和框架,我在源代码中的 SDL_setvideomode 函数中嵌入了 SDL_NOFRAME 标志
SDL_SetVideoMode(h,w,32,SDL_OPENGL | SDL_RESIZABLE | SDL_NOFRAME);
再次编译,但我仍然可以看到标题栏和框架。
我相信 SDL_RESIZABLE 需要存在框架才能使窗口可调整大小,因此您提供了相互冲突的参数,请尝试使用不可调整大小的窗口。
来自维基
SDL_NOFRAME
如果可能,SDL_NOFRAME 会导致 SDL 创建一个没有标题栏或框架装饰的窗口。