Questions tagged [glx]

GLX (initialism for "OpenGL Extension to the X Window System") provides the interface connecting OpenGL and the X Window System: it enables programs wishing to use OpenGL to do so within a window provided by the X Window System.

179 questions
5
votes
1 answer

How to catch X errors?

I tried searching the web, but I must note that finding materials about this aspect of X programming is not really easy. I use X with GLX to create OpenGL contexts. I already know my current graphics card driver only supports up to OpenGL API…
Oragon Efreet
  • 1,114
  • 1
  • 8
  • 25
5
votes
2 answers

Creating an OpenGL 4.3 Context Crashes GLX

I'm using SDL2 and C++11 to build a game engine (just as a personal project, for fun and for practice), and one of the things I want to do is try and have the graphics driver use the latest supported version of OpenGL, and vary how the graphics…
OniLink
  • 53
  • 1
  • 5
4
votes
2 answers

Request the most recent version of OpenGL context

I'm developing an application that can use any OpenGL version from 4.6 down to 2.0 by gradually disabling some features and optimizations. This means that it can live with 2.0 but prefers the latest supported version to be able to use all the…
devoln
  • 396
  • 4
  • 12
4
votes
1 answer

How to link against libGL on OSX using cmake?

I'm trying to compile camera_calibration on OSX 10.11 and after a few hurdles with a few X11 related dependencies I find myself still stuck with a few linking errors: Undefined symbols for architecture x86_64: "_glXChooseVisual", referenced from: …
George Profenza
  • 50,687
  • 19
  • 144
  • 218
4
votes
1 answer

Having trouble using X11 forwarding with GLX

Covid has me working remotely, and I'm pretty stuck here. I've had no problem using X11 forwarding for UIs and even for 3D OpenSceneGraph visualizations, but a new application I need to run gives the following error on the remote computer: X Error…
Alex Kyriazis
  • 311
  • 1
  • 4
  • 11
4
votes
1 answer

OpenGL Without GUI

Let's say I run a Linux and I have no desktop environment installed. I boot up my system and all I have is my shell. Is it possible to compile a program that uses the OpenGL libraries or directly uses the GPU driver to draw to the screen? As far as…
Kaloyan Manev
  • 406
  • 6
  • 20
4
votes
1 answer

New mesa installed but glxinfo show the older one

I am doing some work using Google Cloud Platform,that's to say I use ssh to login. When I run a script(mayavi/test_drawline.py) from others, it tells me: ERROR: In /work/standalone-x64-build/VTKsource/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx,…
Tron Li
  • 43
  • 1
  • 4
4
votes
1 answer

OpenGL SuperSampling Anti-Aliasing?

At office we're working with an old GLX/Motif software that uses OpenGL's AccumulationBuffer to implement anti-aliasing for saving images. Our problem is that Apple removed the AccumulationBuffer from all of its drivers (starting from OS X 10.7.5),…
Fravadona
  • 13,917
  • 1
  • 23
  • 35
4
votes
1 answer

Sharing OpenGL objects between contexts on Linux

To share OpenGL objects between different contexts (presumably running in different threads) we use wglShareLists() on Windows.How is it done for Linux?Has glx an API to do this kind of things?
Michael IV
  • 11,016
  • 12
  • 92
  • 223
4
votes
1 answer

glXChooseFBConfig() setting for anti-aliasing?

According to this post, it is stated that To request a visual with multisampling with XLib, use these two attributes in the list to glXChooseFBConfig(): GLX_SAMPLE_BUFFERS - its value should be True. This is an on/off toggle. GLX_SAMPLES -…
null
  • 63
  • 6
4
votes
1 answer

When do I have to call XInitThreads?

I understand that if there are two or more threads sharing a single X display connection, XInitThreads must be called before any other Xlib call. But what if every thread has its own connection to the display and operates only on that connection? Is…
hpsMouse
  • 2,004
  • 15
  • 20
4
votes
1 answer

NV-GLX missing extension in OS X Lion

I connect to a remote linux machine using "ssh -X machine", and then I run a graphical application, so its window is displayed on my local OS X Lion machine using X Window. I get the error "Xlib: extension "NV-GLX" missing on display…
Open the way
  • 26,225
  • 51
  • 142
  • 196
3
votes
0 answers

C++ OpenGL texture not rendering as it should

I've successfully got some triangles to show up on screen together with some textures and a couple of event listeners. However, my texture is not rendering properly, it seems like pixels between 0 and 255 in brightness gets disorted while completely…
Snakehater
  • 145
  • 1
  • 9
3
votes
1 answer

How can I use OpenGL to render to memory without requiring any windowing system library?

I would like to use OpenGL (version 1.5) to render images to memory, without displaying them on screen (I can e.g. just save them as image files or render them as ASCII in terminal). I do not want any I/O. I've found similar question at SO but none…
Miloslav Číž
  • 557
  • 4
  • 18
3
votes
1 answer

Is there a better/more efficient way to capture composite X windows in Linux?

As per subject I have the following pseudo-code to setup window capture in X (Linux): xdisplay = XOpenDisplay(NULL); win_capture = ...find the window to capture... XCompositeRedirectWindow(xdisplay, win_capture,…
Emanuele
  • 1,408
  • 1
  • 15
  • 39
1
2
3
11 12