glx

Create GLX context in specific region of a window

I would like to create an OpenGL context with GLX inside a window. However, I do not want it to span over the whole window region. Instead, it should only cover a subregion. For example, GLUT provides a function for this behaviour. Also major toolkits like GTK+ or QT provide GL widgets, which are only subregions of X windows. However I ...

OpenGL Colorspace Conversion

Does anyone know how to create a texture with a YUV colorspace so that we can get hardware based YUV to RGB colorspace conversion without having to use a fragment shader? I'm using an NVidia 9400 and I don't see an obvious GL extension that seems to do the trick. I've found examples how to use a fragment shader, but the project I'm wor...

Why does my simple GLX app leak memory?

The code below shows a small 48 byte leak in valgrind. #include <X11/Xlib.h> #include <GL/glx.h> #include <unistd.h> int main( int argc, char* argv[] ) { Display* _display; Window _windowHandle; XVisualInfo* _visual; GLXContext _context; Atom _deleteWindowMessage; Atom _pingWindowMessage; _display = XOpenDi...

Rendering OpenGL FBO Texture to GLXPixmap

I'm writing some code which is intended to: 1. Render into an OpenGL texture using an FBO. 2. Draw from the FBO texture to a GLXPixmap, which is attached to an X Pixmap. 3. Draw the X Pixmap to a window on the screen. Step 3 works great, and step 2 works fine if I replace the FBO texture with normal OpenGL drawing. But if I do what's a...

Drawing in several windows with gl/glx

Hi, I am looking at the NeHe OpenGL tutorials (nehe.gamedev.net), which as almost every example also for Linux/glx. But how can open several windows and draw into all of them? Thanks! ...