VC + + Environment Single document SDI and OpenGL Multi-view split window implementation-similar to the 3DMAX main interface

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.