I know this much about LWJGL and I'd like to continue learning but I can't find anywhere good. I just want to know what to do from here. I'd like to be able to move the square around with the mouse or something like that.


Java Code:
package com.butterfield.mitchell;

import static org.lwjgl.opengl.GL11.*; //imports

import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;

public class Main {
	//Global Variables
	public static final int WD = 800; //the width of the screen
	public static final int HT = 600; //The height of the screen
	public static final String Title = "LWJGL"; //The title
	DisplayMode dm = new DisplayMode(WD, HT); //Initializing the display mode
	public Main(){
		initDisplay(); //function for initializing the display
		initGl(); //function for initializing OpenGL
		gameLoop(); //function for initializing the game loop
	private void initGl(){
		glOrtho(0, WD, 0, HT, 1, -1);
	private void gameLoop(){
			glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //Clear the buffer bits
			glColor3f(0.0f, 0.0f, 1.0f); //set the colors
			glBegin(GL_QUADS); //Begin drawing quad
			Shape.drawGlQuad(100, 100, 200, 200);
			glEnd();//end drawing
		Display.destroy(); //destroy the window and clean up the memory it used
	private void initDisplay(){
			Display.setDisplayMode(dm); //set the display mode to the variable created above
			Display.setTitle(Title); //set title to variable created above
			Display.create(); //create the window
		}catch(LWJGLException e){ //Handles exceptions where the window is not created and prints the exception
			System.err.println("The window could not be created!");

	public static void main(String[] args){
		Main m = new Main(); //creates an object for the java file which runs it

Java Code:
package com.butterfield.mitchell;

import static org.lwjgl.opengl.GL11.*;

public class Shape {

	public static void drawGlQuad(float x, float y, float width, float height){
		glVertex2f(x, y);
		glVertex2f(x + width, y);
		glVertex2f(x + width, y + height);
		glVertex2f(x, y + height);