RE: GdkOffscreenWindow and texture_from_pixmap extension
- From: Shawn Bakhtiar <shashaness hotmail com>
- To: <juanpablougarte gmail com>, <gtk-app-devel-list gnome org>
- Subject: RE: GdkOffscreenWindow and texture_from_pixmap extension
- Date: Fri, 2 Apr 2010 17:58:20 -0400
Juan,
Let me know if you find a good way to do this with GtkGLExt, it is something I need to do on the OS X
platform. I think this will help you, here is where I first came across on the apple devnet:
http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_offscreen/opengl_offscreen.html#//apple_ref/doc/uid/TP40001987-CH403-SW2
and here is the actual opengl reference to it:
http://www.opengl.org/registry/specs/EXT/framebuffer_object.txt
You can use OpenGL Extensions to create buffers (original was only for texture maps apparently), render to
them, and place them in scene as texture, or pictures, or even video, the best thing is there is a whole set
of utils to take the buffer, and render directly to objects, and can be done so in a single context, of your
choosing. This is how OS X does its fancy iChat AV
In general rendering to offscreen will be much slower then rendering directly to a video framebuffer.
EMAILING FOR THE GREATER GOOD
Join me
Date: Thu, 1 Apr 2010 20:25:11 -0700
Subject: GdkOffscreenWindow and texture_from_pixmap extension
From: juanpablougarte gmail com
To: gtk-app-devel-list gnome org
Hello everyone.
I want to do some OpenGL widget compositing using GtkGLExt and
GdkOffscreenWindow.
I implemented a offscreen widget as the ones in gtk-demo to be able to
use the offscreen GdkPixmap as the source for a texture.
But I am having some problems while trying to bind the GdkPixmap to the texture
So does anyone know how to ge a Pixmap, as returned by
XcompositeNameWindowPixmap(), from a GdkOffscreenWindow in order to
use it in glxCreatePixmap()?
thanks
Juan Pablo
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]