Skip to content

Tag: opengl

Add OpenGL to Linux Vscode

I followed this tutorial successfully. But it doesn’t explain how to configure on vscode. Glad is in this folder /usr/include and I did use sudo in the terminal to compile and generate a.out. How do I do that in vscode? I have this error output when I try to build task: terminal My tasks is configured l…

LWJGL – OpenGL not rendering

The following LWJGL code is expected to render a blueish square in the center of the screen. Instead, I get a blank white screen. It’s like the rendering is not working at all, or that I am rendering outside of the screen. I’m a complete noob in OpenGL and LWJGL, so I’m out of my depth. I we…

Can not compile shaders with Linux/Mesa

I have a OpenGL 3.0 application which works well when it is used with Windows. My shader programs all start with Now when I stwich over to linux with OpenGL 3.0 Mesa 18.0.5, compiling of these shaders fails with error message What could be the problem here? It is definitely OpenGL 3.0 which should support GLS…

ld fails to find glfw3

I’m trying to build the OpenGL Super Bible 7th edition code samples on Ubuntu 16.04. First I have to run cmake, which seems to work, and then I have to run make to compile. I believe I have installed glfw3 and the Mesa OpenGL packages. When I execute cmake (after installing libglfw3 and libglfw3-dev), I…