/** * Set the texture to be displayed on the given face of the skybox. Replaces any existing texture on that face. * * @param face * the face to set * @param texture * The texture for that side to assume. * @throws IllegalArgumentException * if face is null. */ public void setTexture(final Face face, final Texture texture) { if (face == null) { throw new IllegalArgumentException("Face can not be null."); } _skyboxQuads[face.ordinal()].clearRenderState(RenderState.StateType.Texture); setTexture(face, texture, 0); }
/** * Set the texture to be displayed on the given face of the skybox. Replaces any existing texture on that face. * * @param face * the face to set * @param texture * The texture for that side to assume. * @throws IllegalArgumentException * if face is null. */ public void setTexture(final Face face, final Texture texture) { if (face == null) { throw new IllegalArgumentException("Face can not be null."); } _skyboxQuads[face.ordinal()].clearRenderState(RenderState.StateType.Texture); setTexture(face, texture, 0); }