Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ Developer Release Notes: BeOS Release 4, The OpenGL Kit

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Developer Release Notes: BeOS Release 4, The OpenGL Kit


The OpenGL Kit
Developer Release Notes
BeOS Release 4

Bug Fixes and Improvements

  • In R3, culling was backwards -- the front faces were culled and you ended up seeing the back of the object.  This has been fixed.

  • Single-buffering is now supported.

  • BGLScreen now works in 15- and 16-bit modes (it always worked in 32, and never in 8).  If you try to set the object to an 8-bit mode, the constructor returns B_ERROR in the error argument.

  • BGLView can now draw in a BDirectWindow (see below).  In most cases, this will drastically improve drawing performance.


BGLView

  • BGLView objects can now do Game Kit-style "direct drawing".  Here's how you do it:

    • Construct a BDirectWindow and attach your BGLView to it.

    • Use the new EnableDirectMode() function to turn direct drawing on (the function takes a boolean argument).  Note that you can toggle this state dynamically, regardless of the type of window your view is attached to.

    • In your BDirectWindow's implementation of DirectConnected(), call BGLView's (new) version of DirectConnected() and pass along the info argument:

      void MyDirectWindow::DirectConnected(direct_buffer_info info)
      {
         ...
         MyGLView->DirectConnected(info);
         ...
      }





BeOS Release 4




Copyright © 1998 Be, Inc.  All rights reserved.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026