2016년 6월 4일 토요일

How to attach a G3DView to a SDI View.

1. Summary :

Attach a 3D View to a program based on MFC SDI by a GEngine.

2. Requirements :

- Library :
  - GEngine-v0.1
    - https://github.com/gurum77/gengine/tree/master/gengine-0.1
  - DirectX11

- Visual Studio :
  - Visual Studio 2010
or
  - Visual Studio 2013

3. Training :

- Make a SDI program by MFC wizard.

















- Set the project setting.

  - Set the additional include directories.
















  - Set the additional library directories.
















- Include GEngine headers.








- Define member variables for CG3DView, CG3DDB, CGDCDirectX11
- Define handler function for initial of SDI View.












- Registe handling functions to the message map.







- Initialize a CG3DView.
- Call a Redraw() of CG3DView.
- Call a OnResize of CG3DView.




















- The SDI View Attached 3D View











댓글 없음:

댓글 쓰기