From mlaks@post.harvard.edu Sun Sep 6 13:22:16 2009 Return-Path: X-Original-To: gtkglext-list@gnome.org Delivered-To: gtkglext-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D4F077500E0 for ; Sun, 6 Sep 2009 13:22:16 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.445 X-Spam-Level: X-Spam-Status: No, score=-2.445 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] X-Amavis-OS-Fingerprint: Linux 2.4-2.6 (up: 1143 hrs), (distance 19, link: ethernet/modem), [209.86.89.66] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id naHGtAG2l2Zq for ; Sun, 6 Sep 2009 13:22:09 +0000 (GMT) Received: from elasmtp-spurfowl.atl.sa.earthlink.net (elasmtp-spurfowl.atl.sa.earthlink.net [209.86.89.66]) by menubar.gnome.org (Postfix) with ESMTP id 1A5B9750066 for ; Sun, 6 Sep 2009 13:22:00 +0000 (GMT) Received: from [64.131.242.69] (helo=Rashi.rishonim.com) by elasmtp-spurfowl.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1MkHgs-00088y-DZ for gtkglext-list@gnome.org; Sun, 06 Sep 2009 09:21:58 -0400 Received: from mlaks by Rashi.rishonim.com with local (Exim 4.69) (envelope-from ) id 1MkHgr-00086i-N0 for gtkglext-list@gnome.org; Sun, 06 Sep 2009 09:21:57 -0400 Date: Sun, 6 Sep 2009 09:21:57 -0400 From: Mitchell Laks To: gtkglext-list@gnome.org Message-ID: <20090906132157.GB6649@earthlink.net> Mail-Followup-To: gtkglext-list@gnome.org References: <20090827143711.28af3cdc008dee1b3ee5150ac2884d76.f503bcacd9.wbe@email.secureserver.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090827143711.28af3cdc008dee1b3ee5150ac2884d76.f503bcacd9.wbe@email.secureserver.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-ELNK-Trace: f5f10c2ce8b81b4674bf435c0eb9d47808d2c250afd99a339a13253f14d31011c1be01114704dc97350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 64.131.242.69 Subject: Re: [GtkGLExt] Updated example source code using GtkBuilder and GtkGLExt.. X-BeenThere: gtkglext-list@gnome.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of GtkGLExt, gtkglextmm, and PyGtkGLExt" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2009 13:22:17 -0000 On 14:37 Thu 27 Aug , axora@axora.net wrote: > (Update)

Hi folks, to help out anyone who is looking into > using OpenGL within GTK windows (using GtkGLExt) I have released fully > documented sample code in C to be used freely as you wish. >
> >
It provides safe render-process locking and smooth timer-based > rendering while being simple, efficient and easy to understand what is > going on. >
> >
> The demo has been updated to use GtkBuilder and is now hosted on Sourceforge: http://gtkglapp.sourceforge.net/ >
> >
> To import the project into Eclipse IDE: >
> Open the menu 'File->Import...'. >
> From the 'General' options folder, select 'Existing Projects into Workspace' and click on the 'Next >' button. >
> Choose the 'Select archive file:' option and next to it click on the 'Browse...' button to navigate to the project archive (ending in '.tgz') you downloaded. >
> The project name will appear below - click on 'Finish'. >
> The project will be imported and opened in your Eclipse workspace. >
> >
> For command-line users: >
Please note that to run the application successfully outside of the > Eclipse IDE environment (e.g. from a 'make' within the "../Debug/" > directory) the GUI file "gtk_gl_tester.gtk" must reside in the same > directory as the compiled binary for it to run.


Regards,
    Jose.

Dear axora, I would love to read you messages but I cant because they were all sent in html mail. I would be very grateful if you could resend them without the html noise :(. Thank you very much! Mitchell > _______________________________________________ > gtkglext-list mailing list > gtkglext-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkglext-list From axora@axora.net Tue Sep 8 12:33:29 2009 Return-Path: X-Original-To: gtkglext-list@gnome.org Delivered-To: gtkglext-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DCAF9750234 for ; Tue, 8 Sep 2009 12:33:29 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.799 X-Spam-Level: X-Spam-Status: No, score=-1.799 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_UNKN=0.8] X-Amavis-OS-Fingerprint: UNKNOWN [S4:47:1:60:M1380,N,N,N,N,N,N,N,N,N,N,N,N,N,N:!:?:?] (NAT!), (link: GPRS, T1, FreeS/WAN), [64.202.165.196] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vhbuA8-H2ojI for ; Tue, 8 Sep 2009 12:33:23 +0000 (GMT) Received: from smtpout04.prod.mesa1.secureserver.net (smtpout04-01.prod.mesa1.secureserver.net [64.202.165.196]) by menubar.gnome.org (Postfix) with SMTP id 01F6D750184 for ; Tue, 8 Sep 2009 12:33:14 +0000 (GMT) Received: (qmail 24554 invoked from network); 8 Sep 2009 12:33:02 -0000 Received: from unknown (87.194.2.228) by smtpout04.prod.mesa1.secureserver.net (64.202.165.196) with ESMTP; 08 Sep 2009 12:33:02 -0000 Message-ID: <4AA64EFC.5040608@axora.net> Date: Tue, 08 Sep 2009 13:33:00 +0100 From: Jose Commins User-Agent: Thunderbird 1.5.0.14 (Macintosh/20071210) MIME-Version: 1.0 To: gtkglext-list@gnome.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [GtkGLExt] [Repost] Re: GdkGLPixmap troubles X-BeenThere: gtkglext-list@gnome.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of GtkGLExt, gtkglextmm, and PyGtkGLExt" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 12:33:30 -0000 Hi, just to note a few caveats when dealing with GL contexts. First, before performing any context reference operations, the GL widget should be +realized+ to manipulate any references inside. I have included some source code that I use in one of my apps to enlighten. with typecasts to make it easier to associate types: // Get OpenGL rendering context. gtk_widget_realize ((GtkWidget *) yourGLCapableWidget); (GdkGLContext *) theSharedGlContext = gtk_widget_get_gl_context ((GtkWidget *) yourGLCapableWidget); // Initialise the other GL areas with the same shared context. (GtkWidget *) anotherGLWidget = GTK_WIDGET (gtk_builder_get_object (yourGTKBuilderXml, "GLwidget2")); // Add OpenGL-capability to the other widget, sharing the same context. gtk_widget_set_gl_capability ((GtkWidget *) anotherGLWidget, glConfig, (GdkGLContext *) theSharedGlContext, TRUE, GDK_GL_RGBA_TYPE); ... etc Note that 'gtk_widget_realize' is essential for the following functions to reference data within. Another caveat is that some drivers align texture data, depending on hardware - after the storage->framebuffer phase the alignment can vary if the hardware is not capable of non-powers-of-two textures. You may find that the driver will texture-split any non-power-of-two rectangles. The solution to this is to make sure that if the driver/hardware does not support non-power-of-two textures, to use the stride value in retrieving data back from the framebuffer. Regards, Jose. From axora@axora.net Tue Sep 8 12:35:27 2009 Return-Path: X-Original-To: gtkglext-list@gnome.org Delivered-To: gtkglext-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E411D750294 for ; Tue, 8 Sep 2009 12:35:26 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.799 X-Spam-Level: X-Spam-Status: No, score=-1.799 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_UNKN=0.8] X-Amavis-OS-Fingerprint: UNKNOWN [S4:47:1:60:M1380,N,N,N,N,N,N,N,N,N,N,N,N,N,N:!:?:?] (NAT!), (link: GPRS, T1, FreeS/WAN), [64.202.165.224] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bgI7hmUqOnoO for ; Tue, 8 Sep 2009 12:35:21 +0000 (GMT) Received: from smtpout06.prod.mesa1.secureserver.net (smtpout06-01.prod.mesa1.secureserver.net [64.202.165.224]) by menubar.gnome.org (Postfix) with SMTP id DE438750184 for ; Tue, 8 Sep 2009 12:35:12 +0000 (GMT) Received: (qmail 14271 invoked from network); 8 Sep 2009 12:35:10 -0000 Received: from unknown (87.194.2.228) by smtpout06.prod.mesa1.secureserver.net (64.202.165.224) with ESMTP; 08 Sep 2009 12:35:10 -0000 Message-ID: <4AA64F7C.5080108@axora.net> Date: Tue, 08 Sep 2009 13:35:08 +0100 From: Jose Commins User-Agent: Thunderbird 1.5.0.14 (Macintosh/20071210) MIME-Version: 1.0 To: gtkglext-list@gnome.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [GtkGLExt] [Repost] Updated example source code using GtkBuilder and GtkGLExt X-BeenThere: gtkglext-list@gnome.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of GtkGLExt, gtkglextmm, and PyGtkGLExt" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 12:35:27 -0000 (Update) Hi folks, to help out anyone who is looking into using OpenGL within GTK windows (using GtkGLExt) I have released fully documented sample code in C to be used freely as you wish. It provides safe render-process locking and smooth timer-based rendering while being simple, efficient and easy to understand what is going on. The demo has been updated to use GtkBuilder and is now hosted on Sourceforge: http://gtkglapp.sourceforge.net/ To import the project into Eclipse IDE: Open the menu 'File->Import...'. From the 'General' options folder, select 'Existing Projects into Workspace' and click on the 'Next >' button. Choose the 'Select archive file:' option and next to it click on the 'Browse...' button to navigate to the project archive (ending in '.tgz') you downloaded. The project name will appear below - click on 'Finish'. The project will be imported and opened in your Eclipse workspace. For command-line users: Please note that to run the application successfully outside of the Eclipse IDE environment (e.g. from a 'make' within the "../Debug/" directory) the GUI file "gtk_gl_tester.gtk" must reside in the same directory as the compiled binary for it to run. Regards, Jose. From axora@axora.net Tue Sep 8 12:38:51 2009 Return-Path: X-Original-To: gtkglext-list@gnome.org Delivered-To: gtkglext-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E2E26750262 for ; Tue, 8 Sep 2009 12:38:50 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.799 X-Spam-Level: X-Spam-Status: No, score=-1.799 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_UNKN=0.8] X-Amavis-OS-Fingerprint: UNKNOWN [S4:49:1:60:M1380,N,N,N,N,N,N,N,N,N,N,N,N,N,N:!:?:?] (NAT!), (link: GPRS, T1, FreeS/WAN), [72.167.82.84] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P74T+TWTfMFA for ; Tue, 8 Sep 2009 12:38:45 +0000 (GMT) Received: from p3plsmtpa01-04.prod.phx3.secureserver.net (p3plsmtpa01-04.prod.phx3.secureserver.net [72.167.82.84]) by menubar.gnome.org (Postfix) with SMTP id 47F41750184 for ; Tue, 8 Sep 2009 12:38:35 +0000 (GMT) Received: (qmail 13531 invoked from network); 8 Sep 2009 12:38:34 -0000 Received: from unknown (87.194.2.228) by p3plsmtpa01-04.prod.phx3.secureserver.net (72.167.82.84) with ESMTP; 08 Sep 2009 12:38:33 -0000 Message-ID: <4AA65048.9030903@axora.net> Date: Tue, 08 Sep 2009 13:38:32 +0100 From: Jose Commins User-Agent: Thunderbird 1.5.0.14 (Macintosh/20071210) MIME-Version: 1.0 To: gtkglext-list@gnome.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [GtkGLExt] [Repost] Re: GdkGLPixmap troubles X-BeenThere: gtkglext-list@gnome.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of GtkGLExt, gtkglextmm, and PyGtkGLExt" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 12:38:51 -0000 Lindley, I think I've just spotted what the problem may be. In your code you have this: gboolean reshapeGL(GtkWidget *widget, GdkEventConfigure *evnt, gpointer data) { GUIWindow* me = (GUIWindow*)data; There's a quirk in using the 'gpointer data' object in a GTK function - it actually gets swapped in the stack if you do so, and is *not recommended* :P. The best approach is to not use the 'gpointer data' at all; instead, if you want to pass your user data to a GTK function, attach a GObject to it like so - in this example I am attaching it to the window containing the GL context: (-in place of setting the user data in your initialisation code-) g_object_set_data ((GObject *)theWindowWithYourGLContext, "myUserData", &theActualData); And then use something like this to retrieve it: gboolean reshapeGL(GtkWidget *widget, GdkEventConfigure *evnt, gpointer data) { GUIWindow* me = g_object_get_data ((GObject *)gtk_widget_get_toplevel (widget), "myUserData"))); In your reshape (and other) functions that need it. Regards, Jose. From axora@axora.net Tue Sep 8 12:40:21 2009 Return-Path: X-Original-To: gtkglext-list@gnome.org Delivered-To: gtkglext-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D87A750294 for ; Tue, 8 Sep 2009 12:40:21 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.06 X-Spam-Level: X-Spam-Status: No, score=0.06 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, L_P0F_UNKN=0.8] X-Amavis-OS-Fingerprint: UNKNOWN [S4:49:1:60:M1380,N,N,N,N,N,N,N,N,N,N,N,N,N,N:!:?:?] (NAT!), (link: GPRS, T1, FreeS/WAN), [72.167.82.85] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C+bFdt1RmO64 for ; Tue, 8 Sep 2009 12:40:15 +0000 (GMT) Received: from p3plsmtpa01-05.prod.phx3.secureserver.net (p3plsmtpa01-05.prod.phx3.secureserver.net [72.167.82.85]) by menubar.gnome.org (Postfix) with SMTP id A8C187502E0 for ; Tue, 8 Sep 2009 12:40:03 +0000 (GMT) Received: (qmail 17637 invoked from network); 8 Sep 2009 12:40:02 -0000 Received: from unknown (87.194.2.228) by p3plsmtpa01-05.prod.phx3.secureserver.net (72.167.82.85) with ESMTP; 08 Sep 2009 12:40:02 -0000 Message-ID: <4AA650A1.7040805@axora.net> Date: Tue, 08 Sep 2009 13:40:01 +0100 From: Jose Commins User-Agent: Thunderbird 1.5.0.14 (Macintosh/20071210) MIME-Version: 1.0 To: gtkglext-list@gnome.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [GtkGLExt] Updated example source code using GtkBuilder and GtkGLExt. (Mitchell Laks) X-BeenThere: gtkglext-list@gnome.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of GtkGLExt, gtkglextmm, and PyGtkGLExt" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 12:40:21 -0000 Hi Mitchell, Hey, thanks for the email! I was using an email client and did not realise it mangled my formatting as such! Have reposted the previous entries to the list. Thanks! Regards, Jose. > Dear axora, > I would love to read you messages but I cant because they were all sent in html mail. I would be very grateful if you could > resend them without the html noise :(. > Thank you very much! > Mitchell > > > > From cfder.maple@gmail.com Tue Sep 15 00:15:15 2009 Return-Path: X-Original-To: gtkglext-list@gnome.org Delivered-To: gtkglext-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 419A5750307 for ; Tue, 15 Sep 2009 00:15:15 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.367 X-Spam-Level: X-Spam-Status: No, score=-2.367 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_GT=0.077, TW_TK=0.077, TW_YG=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ov3NldBrQqUN for ; Tue, 15 Sep 2009 00:15:10 +0000 (GMT) Received: from mail-iw0-f191.google.com (mail-iw0-f191.google.com [209.85.223.191]) by menubar.gnome.org (Postfix) with ESMTP id 7FF047502F6 for ; Tue, 15 Sep 2009 00:15:02 +0000 (GMT) Received: by iwn29 with SMTP id 29so1462523iwn.9 for ; Mon, 14 Sep 2009 17:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=eZgX7Tx3vvKKSi6ndFtE54Mz4QhSSjJcWoUcvTj7fso=; b=T1mL08cj1Nf0E96QtN6ZN3OBSI9RZ98cDAYkqO7XYB+3cchTrb/c+RA/46rKZ6U5Gl zP/J/6VrSzJTFu1sEnJjcgbVq/c4SULK08Yg+BEIMmyEI1IzJCikjvKLBRLOaKt282oe TthHxw7rmtWHSEWEuU7uti710uk7BDQ3Tz86E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=A9vkQuK6qil/m+pmj0iry36QMYGWzLWfGV2nRjCgo2EZJZC+MGtSUdSDTiQs9xX1sR x8Zns2bMGi+qmLZ+s5bur5+gGiVOt0i34rel9gr6ffe97dwqbRrUyBYPuJJ7SP7+CWRh TFdx4GT/t2EimAU9VQqcGpnUUWtEUqWKlhGBo= MIME-Version: 1.0 Received: by 10.231.5.79 with SMTP id 15mr14411151ibu.7.1252973700955; Mon, 14 Sep 2009 17:15:00 -0700 (PDT) Date: Mon, 14 Sep 2009 19:15:00 -0500 Message-ID: <68c4ee660909141715m4e667d57s20bd16145dde09ff@mail.gmail.com> From: Raymond Maple To: gtkglext-list@gnome.org Content-Type: multipart/alternative; boundary=00151774046e5bbdd6047392ace7 Subject: [GtkGLExt] building pygtkglext X-BeenThere: gtkglext-list@gnome.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of GtkGLExt, gtkglextmm, and PyGtkGLExt" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2009 00:15:15 -0000 --00151774046e5bbdd6047392ace7 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am trying to build gtkglext and pygtkglext on a RHEL 5.3 workstation. I downloaded both tarballs, and successfully built the gtkglext library and some of the demos. I do not have root access to this workstation, so I installed everything to $HOME/lib. I then untarred the python wrappers, and attempted to buld them using both setup.py and configure. Setup.py fails when it cannot find the gtkglext install. configure/make also fails, though I don't remember the specific error that occurs - I think it had to do with not finding the gtkglext defs files.. Is there any way to build the python wrappers when the gtkglext libraries are installed in a non-standard location? Thanks, Ray --00151774046e5bbdd6047392ace7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,
=A0=A0 I am trying to build gtkglext and pygtkglext on a RHEL 5.3= workstation.=A0 I downloaded both tarballs, and successfully built the gtk= glext library and some of the demos.=A0=A0 I do not have root access to thi= s workstation,=A0 so I installed everything to $HOME/lib.=A0 I then untarre= d the python wrappers, and attempted to buld them using both setup.py and c= onfigure.=A0 Setup.py fails when it cannot find the gtkglext install.=A0 co= nfigure/make also fails, though I don't remember the specific error tha= t occurs - I think it had to do with not finding the gtkglext defs files..= =A0 Is there any way to build the python wrappers when the gtkglext librari= es are installed in a non-standard location?

Thanks,
Ray
--00151774046e5bbdd6047392ace7-- From bounces@nabble.com Tue Sep 15 14:50:41 2009 Return-Path: X-Original-To: gtkglext-list@gnome.org Delivered-To: gtkglext-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 23D717501A0 for ; Tue, 15 Sep 2009 14:50:41 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.445 X-Spam-Level: X-Spam-Status: No, score=-2.445 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_GT=0.077, TW_TK=0.077] autolearn=no Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zlEXD6Zk21ZR for ; Tue, 15 Sep 2009 14:50:34 +0000 (GMT) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by menubar.gnome.org (Postfix) with ESMTP id 080907501D4 for ; Tue, 15 Sep 2009 14:50:25 +0000 (GMT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MnZMO-0006FT-QI for gtkglext-list@gnome.org; Tue, 15 Sep 2009 07:50:24 -0700 Message-ID: <25455459.post@talk.nabble.com> Date: Tue, 15 Sep 2009 07:50:24 -0700 (PDT) From: chire To: gtkglext-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: axischire@gmail.com Subject: [GtkGLExt] gtkglextmm and glewinit simple question X-BeenThere: gtkglext-list@gnome.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of GtkGLExt, gtkglextmm, and PyGtkGLExt" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2009 14:50:41 -0000 i have this very simple problem, yet i havent found any solution. i got this code: [code] int main(int argc, char **argv){ GLenum initStatus = glewInit(); if( initStatus != GLEW_OK ){ printf( "*GLEW Cannot Init\n"); } if( GLEW_ARB_vertex_buffer_object == NULL ){ printf( "*GLEW_ARB_vertex_buffer_object = NULL\n"); } Gtk::Main m(argc, argv); // Init gtkglextmm. Gtk::GL::init(argc, argv); // Query OpenGL extension version. int major, minor; Gdk::GL::query_version(major, minor); std::cout << "OpenGL extension version - "<< major << "." << minor << std::endl; GUIVentanaPrincipal gui; m.run(gui); return 0; } [/code] but glewinit fails to initialize this is my output [code] *GLEW Cannot Init *GLEW_ARB_vertex_buffer_object = NULL OpenGL extension version - 1.4 [/code] why this happens when using gtkglextmm and glew?, it only happens on this project im working. -- View this message in context: http://www.nabble.com/gtkglextmm-and-glewinit-simple-question-tp25455459p25455459.html Sent from the Gnome - GtkGLExt mailing list archive at Nabble.com.