Re: [GtkGLExt] Fwd: Re: GtkGlExt & GTK3



Am 11.02.2014 03:33, schrieb Li Yanrui (李延瑞):
Because qt developers pay close attention to support opengl than gtk
developers. Qt has been providing support for integration with OpenGL
implementations on all platforms. However if without tdz's hacks for
gtkglext, i do not know when gtk 3 can support opengl.

gtk 3 does support OpenGL. With clutter and cogl you can integrate plain
OpenGL into your application. Maybe it's not as smooth as as Qt's OpenGl
widget, but it is better to use than this abandoned GtkGlExt.

2014-02-11 3:19 GMT+08:00 Norman Goldstein <normvcr telus net
<mailto:normvcr telus net>>:

    To bring the list readers up to date, I was helped by Li Yanrui, and
    was able to build GtkGlExt wiith GTK3, with some differences, as
    noted below, from the GTK2 build.  However, I still am unsure
    whether to expect *GtkGlExtMM* to work with GTK3.  Any comments on this?

    With regards to OpenGL working smoothly with GTKExt, I am quite
    satisfied, as both approaches:

    -- gWindow->begin()..... glWikndow->close(), and
    -- glWindow->make_current()

    work well in GTKExt, and, as far as I know, place no restrictions on
    the OpenGL programmer.
    So, I am curious to know in what respects Qt offers a better GTK
    experience for OpenGL programmers, as compared to simply a
    difference in Qt <--> GTK style of programming.

    Thank you for the responses.



    -------- Original Message --------
    Subject:  Re: [GtkGLExt] GtkGlExt & GTK3
    Date:     Mon, 10 Feb 2014 15:54:50 +0800
    From:     Li Yanrui (李延瑞) <liyanrui m2 gmail com>
    <mailto:liyanrui m2 gmail com>
    To:       Norman Goldstein <normvcr telus net> <mailto:normvcr telus net>



    Sorry, i do not know the things of gtkglextmm. If i want to use c++,
    i will think qt + opengl. In fact i am hard to bear gtk+ with opengl :)


    2014-02-10 12:14 GMT+08:00 Norman Goldstein <normvcr telus net
    <mailto:normvcr telus net>>:

        Thanks, my mistake.  I used the wrong git repository.

        One difference from the official install, is that you must do
        the configure in the gtkglext folder.  it does not work to
        create, and work in, a separate "build" folder.  Two mistakes
        occur if you try:
        -- gdk/Makefile.in does not get created
        -- the GOBJECT_INTROSPECTION_CHECK fails.

        The build worked!

        Do you know if *GtkGlExtMM* works with this version 3?






        On 02/09/2014 06:00 PM, Li Yanrui (李延瑞) wrote:
        Tdz's gtkglext supports gtk 3 so you can try it.. The official
        gtkglext has been obsolete for a number of years.



        2014-02-09 2:37 GMT+08:00 Norman Goldstein <normvcr telus net
        <mailto:normvcr telus net>>:

            Thanks for the pointer.  Compile error as shown, below. 
            Currently, I am successfully working with GtkGlExtMM and
            GTK2, so if GTK3 support is still "in the works", maybe it
            is not worth spending time on my GTK3 problem -- unless I
            am able to help to expedite getting GTKGlExtMM working
            with GTK3.   What do you think?

            So, the above being said, here is what I have done:
            (I am on fedora19, 32 bit, x86)

            git clone git://git.gnome.org/gtkglext
            <http://git.gnome.org/gtkglext>

            cd gtkglext
            ./bootstrap

            mkdir build
            cd build
            ../configure  CPPFLAGS=-I/usr/include/nvidia
            make

            Here is the first error:

            gcc -DHAVE_CONFIG_H -I. -I../../../gdk/x11 -I../..
            -DG_LOG_DOMAIN=\"GdkGLExt\" -DGDK_GL_COMPILATION
            -DINSIDE_GDK_GL_X11 -I../../.. -I../../../gdk -I../../gdk
            -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/gtk-3.0
            -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0
            -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
            -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0
            -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
            -I/usr/include/harfbuzz -I/usr/include/freetype2
            -I/usr/include/pixman-1 -I/usr/include/libpng15
            -I/usr/include/libdrm -pthread -I/usr/include/nvidia -g
            -O2 -MT gdkglquery-x11.lo -MD -MP -MF
            .deps/gdkglquery-x11.Tpo -c
            ../../../gdk/x11/gdkglquery-x11.c  -fPIC -DPIC -o
            .libs/gdkglquery-x11.o
            In file included from ../../../gdk/x11/gdkglglxext.h:34:0,
                             from ../../../gdk/x11/gdkglx.h:30,
                             from ../../../gdk/x11/gdkglquery-x11.c:31:
            ../../../gdk/gdkglconfig.h:103:1: error: unknown type name
            'GdkColormap'
             GdkColormap *gdk_gl_config_get_colormap          
            (GdkGLConfig     *glconfig);
             ^




            On 02/08/2014 01:10 AM, Li Yanrui (李延瑞) wrote:
            hi, please see https://github.com/tdz/gtkglext.git/


            2014-02-07 16:30 GMT+08:00 Norman Goldstein
            <normvcr telus net <mailto:normvcr telus net>>:

                The net has conflicting information on the status of
                using GtkGlkExt with GTK3.
                What is the latest scoop, please?

                Thank you


                _______________________________________________
                gtkglext-list mailing list
                gtkglext-list gnome org <mailto:gtkglext-list gnome org>
                https://mail.gnome.org/mailman/listinfo/gtkglext-list




            -- 
            Best regards,

            Li Yanrui (李延瑞)




        -- 
        Best regards,

        Li Yanrui (李延瑞)




    -- 
    Best regards,

    Li Yanrui (李延瑞)



    _______________________________________________
    gtkglext-list mailing list
    gtkglext-list gnome org <mailto:gtkglext-list gnome org>
    https://mail.gnome.org/mailman/listinfo/gtkglext-list




-- 
Best regards,

Li Yanrui (李延瑞)


_______________________________________________
gtkglext-list mailing list
gtkglext-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkglext-list



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