GtkGLArea with GtkOffscreenWindow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

   Consider the following program:


int main()
{
gtk_init(nullptr,nullptr);

auto window = gtk_offscreen_window_new();
auto gl_area = gtk_gl_area_new();

gtk_container_add(GTK_CONTAINER(window),gl_area);

gtk_widget_realize(gl_area);

gtk_widget_show_all(window);

auto glContext = gtk_gl_area_get_context(GTK_GL_AREA(gl_area));

std::cout << "Context is " << glContext << std::endl;

gtk_main();
}
  

The glContext is null. Can GtkGLArea work with GtkOffscreenWindow?


Thanks,

Rob Conde

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux