Pos zangief

This commit is contained in:
Antoine 2021-05-24 19:26:36 +02:00
parent 6262dd42d7
commit 72c0098f9a

View File

@ -41,6 +41,7 @@ public class Engine {
/** /**
* Start the engine * Start the engine
* Create the window * Create the window
* Set the color of the background
*/ */
public void init() { public void init() {
glfwInit(); glfwInit();
@ -112,6 +113,10 @@ public class Engine {
glfwSwapBuffers(getWindow()); //Envoie le buffer vers le moniteur glfwSwapBuffers(getWindow()); //Envoie le buffer vers le moniteur
} }
/**
* Add obj to the render queue
* @param obj
*/
public void add_objectGl(ObjectGl obj){ public void add_objectGl(ObjectGl obj){
objectsGl.add(obj); objectsGl.add(obj);
} }
@ -164,7 +169,7 @@ public class Engine {
ObjectGl zangief = new ObjectGl(0f,60f,80f,10f, path, null); ObjectGl zangief = new ObjectGl(0f,60f,80f,10f, path, null);
zangief.setTextureWrap(58,0,62,84, ObjectGl.STICK_TOP); zangief.setTextureWrap(58,0,62,84, ObjectGl.STICK_TOP);
engine.add_objectGl(zangief); engine.add_objectGl(zangief);
zangief.translate(new Vector3f(-5000.0f,0.0f,10.0f)); zangief.translate(new Vector3f(-5000.0f,500.0f,10.0f));
ObjectGl smiley2 = new ObjectGl(0.0f,500.0f,500.0f, 1f, path2, null); ObjectGl smiley2 = new ObjectGl(0.0f,500.0f,500.0f, 1f, path2, null);
engine.add_objectGl(smiley2); engine.add_objectGl(smiley2);
@ -219,7 +224,7 @@ public class Engine {
assert gamepadButton != null; assert gamepadButton != null;
String name = GLFW.glfwGetJoystickName(GLFW_JOYSTICK_1); String name = GLFW.glfwGetJoystickName(GLFW_JOYSTICK_1);
//System.out.println("GamePad Name :" + name); System.out.println("GamePad Name :" + name);
// for (int i =0 ; i < gamepadAxes.capacity(); i++) { // for (int i =0 ; i < gamepadAxes.capacity(); i++) {
// System.out.println(i + " :" + gamepadAxes.get(i)); // System.out.println(i + " :" + gamepadAxes.get(i));
// } // }