This paper mainly describes how to achieve the single document SDI and OpenGL Multi-view Segmentation window under VC + + environment, the final interface is similar to the 3DMAX main interface. First give me what I realized:
The entire implementation process there are a lot of scattered blog posts on the network, please do your own search, in a dialog-based, single document or multi-document implementation of multi-view split window principle is consistent. This paper retrieves a number of related papers, and found several very detailed papers written. Thank the relevant authors here. The following gives Shong's original paper, you can read and study carefully. I'm sure we can make the desired effect. However, the definition and initialization of global variables will not be compiled in vc++2015 environment. After troubleshooting, it is found that these global variables are not initialized at the time of definition. The following code is in the paper:
HGLRC g_pblrc=null;//left Lower RCHGLRC g_pbrrc=null;//right lower RCHGLRC g_ptlrc=null;//left upper RCHGLRC g_ptrrc=null;//right Upper Rccdc*g_ pbldc=null;//left Lower dccdc*g_pbrdc=null;//right lower dccdc*g_ptldc=null;//left upper dccdc*g_ptrdc=null;//right upper DC
should be modified to:
HGLRC g_pblrc;//left Lower RCHGLRC g_pbrrc;//right lower RCHGLRC g_ptlrc;//left upper RCHGLRC g_ptrrc;//right Upper rccdc*g_pbldc;//left Lower DCCDC*G_PBRDC ;//Right lower dccdc*g_ptldc;//left upper dccdc*g_ptrdc;//right upper DC
In the VC++2015 environment can be compiled through, link and execution can pass normally. The use of external global variables can be referred to VC + + definition of global variables and extern usage.
Reference Paper Download: VC + + and OpenGL multi-view split window design and implementation reference paper
Example Source Download:
1, RSQUICKLOOK-MFC sd+opengl Multi-partition window rendering frame-vc++2015-20180429i
2, MFC and OpenGL multi-document MDI partition window implementation
3, Vcpp
4, Glbase
VC + + Environment Single document SDI and OpenGL Multi-view split window implementation-similar to the 3DMAX main interface