Pos zangief
This commit is contained in:
parent
6262dd42d7
commit
72c0098f9a
@ -41,6 +41,7 @@ public class Engine {
|
||||
/**
|
||||
* Start the engine
|
||||
* Create the window
|
||||
* Set the color of the background
|
||||
*/
|
||||
public void init() {
|
||||
glfwInit();
|
||||
@ -112,6 +113,10 @@ public class Engine {
|
||||
glfwSwapBuffers(getWindow()); //Envoie le buffer vers le moniteur
|
||||
}
|
||||
|
||||
/**
|
||||
* Add obj to the render queue
|
||||
* @param obj
|
||||
*/
|
||||
public void add_objectGl(ObjectGl obj){
|
||||
objectsGl.add(obj);
|
||||
}
|
||||
@ -164,7 +169,7 @@ public class Engine {
|
||||
ObjectGl zangief = new ObjectGl(0f,60f,80f,10f, path, null);
|
||||
zangief.setTextureWrap(58,0,62,84, ObjectGl.STICK_TOP);
|
||||
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);
|
||||
engine.add_objectGl(smiley2);
|
||||
@ -219,7 +224,7 @@ public class Engine {
|
||||
assert gamepadButton != null;
|
||||
|
||||
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++) {
|
||||
// System.out.println(i + " :" + gamepadAxes.get(i));
|
||||
// }
|
||||
|
Loading…
x
Reference in New Issue
Block a user