JSI Tip 4681. Microsoft OpenGL DIBSections sample renders interesting graphic.

Download Gldib1.exe and extract Gldib1.exe. I quote:


The GLDib sample (contained in the self-extracting executable, GLDIB1.EXE) 
provides a demonstration of how to render an OpenGL scene into a DIBSection 
(a device-independent bitmap). It also demonstrates how to display and print the 
DIBSection, thus, effectively, rendering OpenGL to the printer.

The sample creates a DIBSection which is of the same format as the screen, 
thus avoiding the need for system-translation the DIB at display time.  This can 
yield relatively fast animation for unaccelerated systems.

The FPS (frames per second) animation rate is displayed in the title bar of 
the window.  You can reset this calculation (after resizing the window for 
instance) by hitting the 'R' (or 'r') key on your keyboard.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.