Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: MFC and GLFW

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2018
    Posts
    9

    MFC and GLFW

    Hello,

    My question is how to embed opengl into mfc application? I know it is possible, but I can't figure it out or find good source on internet. I have basic mfc application running, but how to initialize glfw, and how to create a window using glfw? Where do I write code for rendering?

    Thanks.
    Last edited by princip; 07-20-2018 at 04:33 AM.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,887
    I'm fairly sure that MFC and GLFW are mutually exclusive. If you want to use MFC, you'll need to use MFC to create the window and use the wgl* functions directly to create an OpenGL context for the window.

    A web search for "MFC OpenGL" suggests that there are examples out there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •