To make OpenGL calls,you must get an OpenGL render context (RC).
uiModelView_c::InitializeShading()； CClientDC dC(CWnd* parentWindow); HGLRC hRc = ::wglCreateContext(dC.m_hDC); }
I don't quite understand how to get the RC, what does "uiModelView_c" refer to ? and how to pragram the above codes properly?
Thanks in advance!