gl.glEnable(GL_TEXTURE_2D);
gl.glActiveTexture(GL_TEXTURE0);
gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
Texture backgroundTexture =
textureManager.getTextureForFile(backgroundImage);
backgroundTexture.enable(gl);
backgroundTexture.bind(gl);
gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
int texWidth = backgroundTexture.getImageWidth();
int texHeight = backgroundTexture.getImageHeight();
/* draw quad */
gl.glBegin( GL_QUADS ); {
gl.glTexCoord2f(