AnsweredAssumed Answered

OpenGL calls and RC

Question asked by Michael Deng on Mar 16, 2015


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!