jeu-de-combat/src/engine/Primitive.java
Antoine e4c1c80e4a Ajout du rectangle dans les primitives ajout de la gestion de l'EBO dans scene et VertexArray.
Mode Wireframe avec le touche space.
Gestion des inputs dans la classe Input
2021-05-13 21:51:40 +02:00

28 lines
626 B
Java

package engine;
public class Primitive {
public static float[] triangle = new float[] {
0.0f, 0.5f, 0.0f,
0.5f, -0.5f, 0.0f,
-0.5f, -0.5f, 0.0f,
};
public static byte[] triangle_indices = new byte[]{
0, 1, 2
};
public static float[] rectangle = new float[] {
0.5f, 0.5f, 0.0f, // top right
0.5f, -0.5f, 0.0f, // bottom right
-0.5f, -0.5f, 0.0f, // bottom left
-0.5f, 0.5f, 0.0f // top left
};
public static byte[] rectangle_indices = new byte[] {
0, 1, 3,
1, 2, 3
};
}