Category Archives: OpenGL

OpenGL

How to get? the GLSL and OpenGL version.

You can get a version from the OpenGL and GL Shading program by:

If don’t initialize the OpenGL you can get it:

Let’s try one simple example.

The output will be print on the shell.

How to create an executable in Linux using OpenGL.

I will try to show you briefly how to create Linux OpenGL applications. We check if the graphics card and settings are done correctly, using the command:

As freeglut devel package provides libraries for OpenGL. Let’s install that package.

Then we see if we have the necessary files.

Let’s try a simple… Read More »

Writing a basic game with C++ and OpenGL libs – part 001.

This is a first part tutorial about Linux game using C++ and OpenGL libs. Writing a C++ game can be difficult. You will need to focus on program structure and then to know how to create the necessary classes. Let’s see the files I used:

The main.cpp file is the main program. This file… Read More »