Class GLCanvas

All Implemented Interfaces:
Drawable

public class GLCanvas extends Canvas
GLCanvas is a widget capable of displaying OpenGL content.
Since:
3.2
See Also:
  • Constructor Details

    • GLCanvas

      public GLCanvas(Composite parent, int style, GLData data)
      Create a GLCanvas widget using the attributes described in the GLData object provided.
      Parameters:
      parent - a composite widget
      style - the bitwise OR'ing of widget styles
      data - the requested attributes of the GLCanvas
      Throws:
      IllegalArgumentException -
      • ERROR_NULL_ARGUMENT when the data is null
      • ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided