开发者

c++ sdl: can i have an sdl-opengl window inside a menu and buttons i created with glade?

开发者 https://www.devze.com 2022-12-25 11:30 出处:网络
I used glade to create some gtk buttons. is it possible to add an sdl-opengl window to a glade application ? if so, how ?

I used glade to create some gtk buttons.

  1. is it possible to add an sdl-opengl window to a glade application ? if so, how ?
  2. how 开发者_StackOverflowcan I interact between the gtk events and the sdl events inside the gtk window ?

thanks


There are at least two extensions to GTK that might help you: GtkGLExt and Gtksdl.

Gtksdl appears to be abandoned, but may contian some useful code. GtkGLExt is great if you're not relying on much SDL functionality beyond core OpenGL and events handling.

0

精彩评论

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

关注公众号