ufk
ufk

Reputation: 32094

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.

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

thanks

Upvotes: 4

Views: 908

Answers (1)

Ronny Vindenes
Ronny Vindenes

Reputation: 2361

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.

Upvotes: 2

Related Questions