public class CubeMap {
private Texture[] tex = new Texture[6];
public CubeMap(String left, String right, String top, String bottom, String front, String back) {
TextureManager tm = TextureManager.getInstance();
tex[0] = tm.getCubeMapTexture(right, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB);
tex[1] = tm.getCubeMapTexture(left, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB);
tex[2] = tm.getCubeMapTexture(top, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB);
tex[3] = tm.getCubeMapTexture(bottom, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB);
tex[4] = tm.getCubeMapTexture(back, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB);
tex[5] = tm.getCubeMapTexture(front, ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB);
}