C++ - OpenGL - Creating an equilateral triangle

You succeeded to display a white square on a black background with OpenGL.
Let's see now how to render an equilateral triangle and changing some data.

In this example we are going to:

C - Tips'n Tricks - Retrieve temperature of hardware devices

The file from where we can retrieve temperature depends on the operating system.
For this tutorial I used Ubuntu 12.
The file on which I took temperature is /sys/class/thermal/thermal_zone8/temp.

C - Tips'n Tricks - Creating a clock with six numbers after the decimal point

Everyone knows that a clock is essential in a video game.

And the more the clock is precise, the more we can do things.

That's what we are going to see in this clock tutorial by creating a clock with six numbers after the decimal point.

C++ - OpenGL - Using glRotatef() to rotate around the X, Y and Z axis

In this OpenGL 2.1 tutorial we are going to use the glRotatef() method.

This method is designed to rotate around the 3 axis: X, Y and Z.
In the example below I will use a black background and draw 3 triangles.

UNIX & GNU/Linux - gcc - Option -L for adding libraries during linking

We can add libraries during the linking step.
This tutorial is the same for g++ of course.

UNIX & GNU/Linux - gcc - Option -I for adding includes to the compilation

During the compilation step, we can add includes that will be added to the .o generated.

For that, we use the -I option (this is an uppercase "i", standing for "include") with the path to the includes we want to add.

Eclipse - Debugger - An easy example

Using the debugger is just essantial in a huge complex project.

But even for a tiny program, it is also useful.

For this Eclipse debugguer tutorial we are going to test it with the C++ programming language.

Python 3 - Data types - Using a dictionary

A dictionary is useful when you want to associate a key with a value.

A key is for example the first name of a person and the value his last name.
But this is the same for a car and its color.

Python 3 - Data types - Using a set

A set is a container that enables a way to retrieve unique data inside this container.

It means that if you want to be sure that only one occurrence is present in a container, you have to choose the set one.

For the form, we have to use the curly brackets to declare a set.

Python 3 - Data types - Using a tuple

A tuple is like a list but without possibility to modify it.

We can see a tuple like something declared once to be sure data inside won't be modified in the future.


Subscribe to BadproG.com RSS