Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: how to make opengl run in windows aplication form vs2010 ??

  1. #1
    Newbie Newbie
    Join Date
    Dec 2012

    how to make opengl run in windows aplication form vs2010 ??

    have an opengl project and want to run it in vc 2010 in a windows aplication form
    any tutorial or help ???

  2. #2
    Intern Contributor
    Join Date
    Jun 2012
    Do you mean in an application running on the .NET framework, or the older Win API? If it's the former, you can't have OpenGL and CLR (common language runtime) code running at the same time, so you'll need a wrapper like SharpGL or OpenTK. I've used SharpGL before and it's pretty straightforward, except I had some trouble getting shaders to compile properly.

  3. #3
    Newbie Newbie
    Join Date
    Jan 2013
    up bác d?t h*ng nha

  4. #4
    Junior Member Newbie
    Join Date
    Oct 2012
    Let me try to guess, you were asking for native (i.e., not CLR) C/C++ for Windows. Half a year ago I was wondering about he same problem as you, however, you will not find easy and ready to use project for you, since there many different approaches for that. Here is what I would recommend:
    1) Any conventional C/C++ project will suffice for OpenGL development, with some caveats.
    2) If you novice with OpenGL and has no previous experience with Win32 development (its where you have to have callback function like windowsProc and process all messages) start with GLUT library. For this, just create C/C++ Console project and use GLUT for the rest. More details are here One note, this approach will lead your application to have two windows, the console one and the one with OpenGL context. Not nice, but good enough to get started.
    3) Then step by step try to understand how to get rid of all helping methods that GLUT gives you (window creation, OpenGL context creation, mouse and keyboard events, etc.)
    4) Finally, you will be ready for Win32 app that creates its own window without GLUT help and manages the OpenGL context, here is a viable tutorial

    While learning last year, I went through these steps.

    Last edited by idaka82; 01-06-2013 at 03:15 PM. Reason: Added tutorial example

Posting Permissions

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