Scene, VertexArray, Shader, ShaderUtils, BufferUtils, FileUtils, Matrix4f, Vector3f Ajout des shaders de test: vert.vert et frag.frag dans le dossier shaders
15 lines
341 B
Java
15 lines
341 B
Java
package engine;
|
|
|
|
import org.lwjgl.glfw.GLFW;
|
|
import org.lwjgl.glfw.GLFWKeyCallback;
|
|
|
|
public class Input extends GLFWKeyCallback {
|
|
|
|
public static boolean[] keys = new boolean[65536];
|
|
|
|
@Override
|
|
public void invoke(long window, int key, int scancode, int action, int mods) {
|
|
keys[key] = action != GLFW.GLFW_RELEASE;
|
|
}
|
|
}
|