CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    10

    How to print with OpenGL?

    When I try to create OpenGL rendering device context for printer DC, wglCreateContext() returns NULL. Are there need to be any other initialization before calling this function? I tried to use SetPixelFormat() with all possible flags and parameters, but nothing changes.
    Thanks for help


  2. #2
    Join Date
    May 1999
    Location
    Toulouse, France
    Posts
    171

    Re: How to print with OpenGL?

    Have a look to the section code of this site; there are 3 articles to print with OpenGL.

    Printing OpenGL in MFC - John Wagner (1998/08/08)
    Printing and Print Preview OpenGL with MFC - Wenfei Wu (1998/11/02)
    Printing with OpenGL - Another method - Andrew Bryan (1998/12/15)

    K.

    Ash to ash and clay to clay, if the enemy doesn't get you, your own folk may.
    We're talking ****, 'cause life is a 'biz
    You know it is
    Everybody tryin' to get rich
    God ****!
    All I wanna do is live !

    KoRn, Children of the Korn

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured