Fwd: [GtkGLExt] Use of GdkGLPixmap





---------- Forwarded message ----------
From: Roberto Huelga <rhuelga gmail com>
Date: Jan 20, 2006 12:00 PM
Subject: Re: [GtkGLExt] Use of GdkGLPixmap
To: Jean Bréfort <jean brefort normalesup org>


On 1/20/06, Jean Bréfort <jean brefort normalesup org> wrote:
Le vendredi 20 janvier 2006 à 11:09 +0100, Roberto Huelga a écrit :
> This sample doesn't work on win32, but it should on GNU/linux,
> what's your system, version, and gtk version?

(gentoo linux for amd64, gtk+- 2.8.10)

I found the problem. Seems that the depth is 16, not 24. Thanks for all.

You are right I should use gdk_gl_config_get_depth, instead of hard code it as 24.
 

(And in my program, I used a GdkGLConfig with GDK_GL_MODE_DOUBLE mode,
which does not work for pixmaps (why should it work?)).

With the GDK_GL_MODE_DOUBLE activate I don't get any error, but I only receive trash from
the pixmap.


> On 1/20/06, Jean Bréfort <jean brefort normalesup org> wrote:
>         Le jeudi 19 janvier 2006 à 19:48 +0100, Roberto Huelga a
>         écrit :
>         > Here you get one.
>         >
>         > I hope it will help you.
>
>         Thanks for this sample, but it does not work either on my
>         machine. Here
>         is the console output:
>
>         OpenGL extension version - 1.2
>
>
>         (gdkglpixmap_sample:18583): GdkGLExt-WARNING **: cannot create
>         GdkGLPixmap
>
>
>         (gdkglpixmap_sample:18583): GdkGLExt-CRITICAL **:
>         gdk_gl_context_new:
>         assertion `GDK_IS_GL_DRAWABLE (gldrawable)' failed
>         Can't create the opengl offscreen context
>
>         >
>         > On 1/19/06, Jean Bréfort < jean brefort normalesup org>
>         wrote:
>         >         Hi,
>         >
>         >         I tried to use a GdkGLPixmap to render off-screen,
>         bt I could
>         >         not
>         >         succeed. The pixmap is unchanged after drawing. I
>         probably
>         >         missed
>         >         something. Does it exist a working sample somewhere?
>         >
>         >         Thanks, best regards,
>         >         Jean Bréfort
>
>
>
>




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