Hi! I have a simple VC++ 6.0 console application with an opengl setting and Cg vertex and fragment shaer.
This time I would like to create a MFC application that uses an opengl and cg vertex shader and fragment shader. But I don’t know how to start. Is there any good examples to follow.
There is not much to learn, you create an MFC application with the wizard and use the different event handlers the same was as you do in a non MFC app, OnCreate, OnSize, OnPaint and so on.
The HDC and HWND variables are just hidden inside the CPaintDC and CWnd classes.
If you know how to use the ordinary GDI functions you should not havce any problems.