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.
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.
We can add libraries during the linking step. This tutorial is the same for g++ of course.
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.
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.
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.
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.
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.
The list data type is like a container.
So we can manage it like an array in other programming languages.
In this tutorial of the Python 3 data type list, we are going to play with all methods of the list.
In Python 3 we cannot increment a variable directly with "++" before or after this variable.
We have to add + 1 on the variable to increment it. That's a bit annoying but life is life.
In this tutorial we are going to see examples of the Python 3 statements.