Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package model; import javax.vecmath.Vector3f; import org.lwjgl.opengl.GL11; /** * * @author Mati */ public class Voxel implements Renderable { VoxelKind kind; int displayList; Vector3f position; @Override public void render() { GL11.glBegin(GL11.GL_QUADS); GL11.glCallList(kind.displayList); GL11.glEnd(); } }