An OPENGL terrain generation code and operation