Rendering OpenGL flowers in C++ and Java