Virtual Developer Workshop: Containerized Development with Docker

Download project files 282KB

Keywords :

  • OpenGL rendering context
  • MFC
  • Rendering mode : wireframe / vertex / faces
  • Gouraud shading
  • Antialiasing
  • Lighting
  • Scaling (with sliders)
  • Rotation (mouse events)
This sample create an OpenGL rendering context in a multidocument / view framework and display the most simple representative object : a sphere. A formview on the left permits to check rendering options, like rendering modes (vertex, wireframe, faces), antialiasing, lighting, gouraud shading (in face and wireframe mode), lighting and back colors, scaling, animation (rotation). Mouse events permits rotation.


  • Re:

    Posted by icon package on 09/19/2012 03:08pm

    You were visited simply with a brilliant idea P.S. Please review Black Toolbar Icons from falcowarecom46

  • Splitter

    Posted by Legacy on 08/25/2003 07:00am

    Originally posted by: Pawel

    A good one right. But I have a problem with it. When I make my own version of an MFC Application without a splitter the view initializes only after refreshing (OnPaint() takes no effect before that).

    Anyone can help?

  • OpenGL

    Posted by Legacy on 08/04/2003 07:00am

    Originally posted by: yendluri

    it's really good.
    but i need some help.
    in my project i need to draw 3D XYZ Scatter Graph,3DXYZ Bars,3D WaterFall,3d color map by reading data from a file that data may be text or excel,wave file etc..........
    so pls help me out how to do.iam new to this open Gl.

    Thank u,
    regards usha

    • Hi

      Posted by dgplinux on 01/17/2005 07:19pm

      r u my friend from hyd?

  • So Good.

    Posted by Legacy on 07/14/2003 07:00am

    Originally posted by: nalini kanth

    The program is very good giving a very high inspiration for the people who are really intrested to work on OpenGL.

    Very Good.

  • Super

    Posted by Legacy on 05/09/2003 07:00am

    Originally posted by: Nanda

    It's nice work

  • Excellent

    Posted by Legacy on 02/13/2003 08:00am

    Originally posted by: J Juno

    An outstanding tutorial, especially for those of us learning how to integrate OGL with MFC. Thanks!


  • Can you map colors and figures onto the sphere surface?

    Posted by Legacy on 12/28/2001 08:00am

    Originally posted by: Michael B. Pliam

    Thanks for this great demo.

    I wonder if it would be possible to map colors and figures onto the surface of your rotatable sphere?

    This would make it very useful for certain types of mathematical mapping demonstrations. Even more so if you could produce 2 separate spheres that rotate in tandem in the same view.

  • file missing:Tool.pch

    Posted by Legacy on 11/15/2000 08:00am

    Originally posted by: Alan

    when I am trying to compile the code, the compiler says Release/Tool.pch is missing.
    What can I do?
    From Alan.

  • "First-chance exception" error

    Posted by Legacy on 04/15/2000 07:00am

    Originally posted by: Mark McLaren

    When I run this program in debug mode, a message saying "First-chance exception in Tool.exe (GDI32.DLL): 0xC0000005: Access Violation." is printed to the debug trace. It doesn't seem to affect the output, I would just like to know what causes it...

  • Change background Color not correct

    Posted by Legacy on 03/16/2000 08:00am

    Originally posted by: Peter

    I learned a lot from you generous contribution. Thank you very much.

    One question in running your progaram is that when I pick a color in the form view for the background, it seems that the background does not display that color sometime. So changing background color only works in Red, Green and Blue. I check your code and can not figure out what is wrong. Is there any possiblity that the color definition in GDI is different from that in OpenGL?

  • Loading, Please Wait ...

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date