0 Replies Latest reply on Mar 16, 2015 10:32 PM by Michael Deng

    OpenGL calls and RC

    Michael Deng


      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!