General work in OpenGL