Starting Rendering Modes

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.


  • Pc folder icon pack analysis at MainKeys

    Posted by on 12/12/2012 02:32pm

    By WebOsPublisher Drawing Mp3 Downloads | GoShopPie.Com GoShopPie.Com home, garden, Jewelry, cosmetics, clothing, etc Home Home » Product » drawing mp3 downloads drawing mp3 downloads SPECIAL OFFER /* ================= Style for Plugin Container ================= */ #container background:#fff; /* Mozilla: */ background: -moz-linear-gradient(top, #, #); /* Chrome, Safari:*/ background: -webkit-gradient(linear, left top, left bottom, from(#), to(#)); /* MSIE */ filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#', EndColorStr='#', GradientType=0); color:#000; border-width:1px; border-style:Dashed; border-color:#Dashed; border-radius: 10px; /* ================= Style for Custom Message ================= */ #cmessage background:#fff; color:#000; /* ================= Style for Product Title ================= */ Starting Rendering Modes a color:#000; Starting Rendering Modes a:hover text-decoration:none; /* ================= Style for Price Save ================= */ #pricesave color:#; font-size:18px; text-decoration:blink; Deal of the Day already Sold OutCheck again soon Categories Baby Beauty Grocery $ Gourmet Food Home $ Garden Home $ Kitchen Home Improvement Jewelry Shopping Tips Special Offer Sports $ Outdoors Recent Posts Hamilton Beach 33967 Set ‘n Forget 6-Quart Programmable Slow Cooker Broadway Basketeers Christmas Chocolate Gift Tower Ferrero Rocher 48 Piece Thanksgiving Christmas Holiday Gift Box Assortment Lifesmart Rock Solid Hydromaster 7 Person Spa Hot Tub With 30 Jets Laguna Bay Spas 5-Person 19-Jet Hot Tub with 110V GFCI Plug Popular Search TermsBack to Schoolshoppingbest clothe shopsхэллоуин детские фотографии Go Shop | Theme Amazon Store By :

  • Re:

    Posted by icon package on 09/19/2012 08:08am

    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 12: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 12: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 11:19am

      r u my friend from hyd?

  • So Good.

    Posted by Legacy on 07/14/2003 12: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 12:00am

    Originally posted by: Nanda

    It's nice work

  • Excellent

    Posted by Legacy on 02/13/2003 12: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 12: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 12: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 12: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...

  • Loading, Please Wait ...

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

Top White Papers and Webcasts

  • U.S. companies are desperately trying to recruit and hire skilled software engineers and developers, but there's simply not enough quality talent to go around. In response, companies often resort to inferior solutions -- hiring substandard developers and engineers, recruiting talent on a part-time or temporary basis, poaching people from competitors, or burdening an already stressed IT staff for more of their labor. Fortunately, there's a better solution. Read this white paper to learn the business value of …

  • Lenovo recommends Windows 8 Pro. "I dropped my laptop getting out of the taxi." This probably sounds familiar to most IT professionals. If your employees are traveling, you know their devices are in for a rough go. Whether it's a trip to the conference room or a convention out of town, any time equipment leaves a user's desk it is at risk of being put into harm's way. Stay connected at all times, whether at the office or on the go, with agile, durable, and flexible devices like the Lenovo® …

Most Popular Programming Stories

More for Developers

RSS Feeds

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