Android – OpenGL ES 1

  • OpenGL ES 1 – Tutorial 7 – Blending Colors

    In the following screenshot, the two squares have a common area and their colors are mixed. In our case, the RGBA components of the green square are multiplied by 1 and added to the RGBA components of the red square multiplied by 1.

  • OpenGL ES 1 – Tutorial 6 – Apply Texture

    In the “onSurfaceCreated()” method is enabled the use of textures and the textures are loaded with the “LoadTexture()” method. With “DrawTexture()” we draw the square specifying which texture to use through an index that coincides with the loading order.

  • OpenGL ES 1 – Tutorial 5 – Draw Squares

    Every shape we want to draw must be brought back into triangles, therefore OpenGL will draw the square with 2 triangles. The “indices” variable specifies the vertices to be taken from “vertices” for each triangle (counterclockwise). For the first triangle, pair of coordinates x,y: 0, 1 and 2, for the second triangle, pair of coordinates x,y: 2, 1 and 3.

Electronics

  • BJT

    The BJT (bipolar junction transistor) is an active electronic component with three terminals (base – collector – emitter). Its interior is composed of two alternately doped semiconductor junctions n and p. The two types of BJT that can be obtained are: the npn model and the pnp model.

  • Diode – Lab 2

    We measure the voltage VD across the diode, the voltage VR across the resistor and the current ID flowing in the circuit for each value of Vi ranging from 0V to 2V with 0.1V intervals. Finally we graphically represent VD and VR.

  • Diode – Lab 1

    With a multimeter it is possible to check the integrity of a diode. The “diode test” function allows you to measure the voltage drop across it. By connecting the anode to the positive and the cathode to the negative, we will read the voltage drop value on the multimeter. By reversing the link, we will not read any values.

Android – OpenGL ES 2

  • OpenGL ES 2 – Tutorial 7 – Blending Colors

    In the following screenshot, the two squares have a common area and their colors are mixed. In our case, the RGBA components of the green square are multiplied by 1 and added to the RGBA components of the red square multiplied by 1.

  • OpenGL ES 2 – Tutorial 6 – Apply Texture

    In the “onSurfaceCreated()” method is enabled the use of textures and the textures are loaded with the “LoadTexture()” method. With “DrawTexture()” we draw the square specifying which texture to use through an index that coincides with the loading order.

  • OpenGL ES 2 – Tutorial 5 – Draw Squares

    Every shape we want to draw must be brought back into triangles, therefore OpenGL will draw the square with 2 triangles. The “indices” variable specifies the vertices to be taken from “vertices” for each triangle (counterclockwise). For the first triangle, pair of coordinates x,y: 0, 1 and 2, for the second triangle, pair of coordinates x,y: 2, 1 and 3.