J'ai viré les classes useless
This commit is contained in:
@ -4,12 +4,12 @@ import engine.math.Vector3f;
|
||||
|
||||
public class Primitive {
|
||||
|
||||
public static float[] createRectangle(float x, float y, float z, float w, float h){
|
||||
public static float[] createRectangle(float z, float w, float h){
|
||||
return new float[] {
|
||||
x , y , z, // Haut gauche
|
||||
x + w, y , z, // Haut droit
|
||||
x + w, y - h, z, // Bas droit
|
||||
x , y - h, z // Bas gauche
|
||||
0 , 0 , z, // Haut gauche
|
||||
0 + w, 0 , z, // Haut droit
|
||||
0 + w, 0 - h, z, // Bas droit
|
||||
0 , 0 - h, z // Bas gauche
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user