Stereo On Gdk::Window

View: New views
2 Messages — Rating Filter:   Alert me  

Stereo On Gdk::Window

by xabila :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I would like to add the  GLX_STEREO, 1, attribute to my Gtk::Window, in order to  display active stereo on my window.
But i don't know how to do it.

Right now i initalised my window like this : 
//Create the GdkWindow:
GdkWindowAttr attributes;
memset(&attributes, 0, sizeof(attributes));

Gtk::Allocation allocation = get_allocation();

//Set initial position and size of the Gdk::Window:
attributes.x = allocation.get_x();
attributes.y = allocation.get_y();
attributes.width = allocation.get_width();
attributes.height = allocation.get_height();
attributes.event_mask = GDK_EXPOSURE_MASK | GDK_POINTER_MOTION_MASK;
attributes.window_type = GDK_WINDOW_CHILD;
attributes.wclass = GDK_INPUT_OUTPUT;

m_refGdkWindow = Gdk::Window::create(get_window(), &attributes, GDK_WA_X | GDK_WA_Y);
     
Any ideas ? 
Thanks


_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Stereo On Gdk::Window

by Daniel Elstner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Am Freitag, den 03.07.2009, 15:50 +0200 schrieb Xavier Larrodé:

> I would like to add the  GLX_STEREO, 1, attribute to my Gtk::Window,
> in order to  display active stereo on my window.
> But i don't know how to do it.
>      
> Any ideas ?

GDK itself has nothing to do with OpenGL or GLX.  You may want to look
at the documentation of gtkglext or gtkglextmm.

In any case, just setting the stereo attribute on the GL context will
not magically give you stereo rendering -- you'll have to take care of
that yourself.

--Daniel



_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list