def setup_fog():
 glEnable(GL_FOG)
 glFogfv(GL_FOG_COLOR, (GLfloat * 4)(0.5, 0.69, 1.0, 1))
 glHint(GL_FOG_HINT, GL_DONT_CARE)
 glFogi(GL_FOG_MODE, GL_LINEAR)
 glFogf(GL_FOG_START, 20.0)
 glFogf(GL_FOG_END, 60.0)

def setup_fog ( ) : glEnable ( GL_FOG ) glFogfv ( GL_FOG_COLOR , ( GLfloat * 4 ) ( 0.5 , 0.69 , 1.0 , 1 ) ) glHint ( GL_FOG_HINT , GL_DONT_CARE ) glFogi ( GL_FOG_MODE , GL_LINEAR ) glFogf ( GL_FOG_START , 20.0 ) glFogf ( GL_FOG_END , 60.0 )
configure the opengl fog properties .