Int32Pointer texPtr =
NativeBridge.getInstance().createInt32Pointer(1, true);
gl.glGenTextures(1, texPtr);
gradTexName = texPtr.get(0);
gl.glBindTexture(GLDefs.GL_TEXTURE_1D, gradTexName);
texPtr.free();
gl.glTexParameteri(GLDefs.GL_TEXTURE_1D, GLDefs.GL_TEXTURE_MAG_FILTER, GLDefs.GL_LINEAR);
gl.glTexParameteri(GLDefs.GL_TEXTURE_1D, GLDefs.GL_TEXTURE_MIN_FILTER, GLDefs.GL_LINEAR);
gl.glTexEnvf(GLDefs.GL_TEXTURE_ENV, GLDefs.GL_TEXTURE_ENV_MODE, GLDefs.GL_REPLACE);
// Setup texture coordinates generation