c++ sdl: can i have an sdl-opengl window inside a menu and buttons i created with glade?
I used glade to create some gtk buttons.
- is it possible to add an sdl-opengl window to a glade application ? if so, how ?
- 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.
精彩评论