Examples of GLData


Examples of org.eclipse.swt.opengl.GLData

*    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public GLData getGLData () {
  checkWidget ();
  GLData data = new GLData ();
  long /*int*/ [] value = new long /*int*/ [1];
  pixelFormat.getValues(value, OS.NSOpenGLPFADoubleBuffer, 0);
  data.doubleBuffer = value [0] != 0;
  pixelFormat.getValues(value, OS.NSOpenGLPFAStereo, 0);
  data.stereo = value [0] != 0;
View Full Code Here

Examples of org.eclipse.swt.opengl.GLData

*    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public GLData getGLData () {
  checkWidget ();
  GLData data = new GLData ();
  int /*long*/ [] value = new int /*long*/ [1];
  pixelFormat.getValues(value, OS.NSOpenGLPFADoubleBuffer, 0);
  data.doubleBuffer = value [0] != 0;
  pixelFormat.getValues(value, OS.NSOpenGLPFAStereo, 0);
  data.stereo = value [0] != 0;
View Full Code Here

Examples of org.eclipse.swt.opengl.GLData

    public MainWindow(Composite parent, int flags) {
        super(parent, flags);

        setLayout(new FillLayout());
        GLData data = new GLData();
        data.doubleBuffer = true;
        canvas = new GLCanvas(this, SWT.NONE, data);
        canvas.setCurrent();
        context = GLDrawableFactory.getFactory().createExternalGLContext();
        canvas.addListener(SWT.Resize, new Listener() {
View Full Code Here

Examples of org.eclipse.swt.opengl.GLData

*    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public GLData getGLData () {
  checkWidget ();
  GLData data = new GLData ();
  long /*int*/ [] value = new long /*int*/ [1];
  pixelFormat.getValues(value, OS.NSOpenGLPFADoubleBuffer, 0);
  data.doubleBuffer = value [0] != 0;
  pixelFormat.getValues(value, OS.NSOpenGLPFAStereo, 0);
  data.stereo = value [0] != 0;
View Full Code Here

Examples of org.eclipse.swt.opengl.GLData

      event.doit = false;
    }
  };

  public GLScene(Composite parent) {
    GLData data = new GLData();
    data.doubleBuffer = true;
    data.depthSize = 16;
    canvas = new GLCanvas(parent, SWT.NO_BACKGROUND, data);
    canvas.setCurrent();
View Full Code Here

Examples of org.eclipse.swt.opengl.GLData

        _passedGLData = clone(glData);
        setCurrent();
    }

    private GLData clone(final GLData glData) {
        final GLData rVal = new GLData();
        rVal.accumAlphaSize = glData.accumAlphaSize;
        rVal.accumBlueSize = glData.accumBlueSize;
        rVal.accumGreenSize = glData.accumGreenSize;
        rVal.accumRedSize = glData.accumRedSize;
        rVal.alphaSize = glData.alphaSize;
View Full Code Here

Examples of org.eclipse.swt.opengl.GLData

*    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public GLData getGLData () {
  checkWidget ();
  GLData data = new GLData ();
  int /*long*/ [] value = new int /*long*/ [1];
  pixelFormat.getValues(value, OS.NSOpenGLPFADoubleBuffer, 0);
  data.doubleBuffer = value [0] != 0;
  pixelFormat.getValues(value, OS.NSOpenGLPFAStereo, 0);
  data.stereo = value [0] != 0;
View Full Code Here

Examples of org.eclipse.swt.opengl.GLData

        shell.setSize( 640, 480 );

        final Composite composite = new Composite( shell, SWT.NONE );
        composite.setLayout( new FillLayout() );

        GLData gldata = new GLData();
        gldata.doubleBuffer = true;
        // need SWT.NO_BACKGROUND to prevent SWT from clearing the window
        // at the wrong times (we use glClear for this instead)
        final GLCanvas glcanvas = new GLCanvas( composite, SWT.NO_BACKGROUND, gldata );
        glcanvas.setCurrent();
View Full Code Here

Examples of org.eclipse.swt.opengl.GLData

    });

    shell.setLayout(new FillLayout());
    Composite comp = new Composite(shell, SWT.NO_BACKGROUND);
    comp.setLayout(new FillLayout());
    GLData data = new GLData ();
    data.doubleBuffer = true;
    data.depthSize = 1;
    data.samples = 1;
    data.sampleBuffers = 1;
   
View Full Code Here

Examples of org.eclipse.swt.opengl.GLData

    });

    shell.setLayout(new FillLayout());
    Composite comp = new Composite(shell, SWT.NO_BACKGROUND);
    comp.setLayout(new FillLayout());
    GLData data = new GLData ();
    data.doubleBuffer = true;
    data.depthSize = 1;
    data.samples = 1;
    data.sampleBuffers = 1;
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.