Package playn.java

Class SWTGraphics

java.lang.Object
playn.core.Graphics

public class SWTGraphics
extends LWJGLGraphics
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  SWTGraphics.Hack  

    Nested classes/interfaces inherited from class playn.core.Graphics

    playn.core.Graphics.Orientation, playn.core.Graphics.OrientationDetail
  • Field Summary

    Fields inherited from class playn.core.Graphics

    defaultRenderTarget, deviceOrient, gl, orientDetail, viewSize
  • Constructor Summary

    Constructors
    Constructor Description
    SWTGraphics​(SWTPlatform splat, org.eclipse.swt.widgets.Composite comp)  
  • Method Summary

    Modifier and Type Method Description
    org.eclipse.swt.opengl.GLCanvas canvas()  
    IDimension screenSize()  
    void setSize​(int width, int height, boolean fullscreen)  

    Methods inherited from class playn.core.Graphics

    createCanvas, createCanvas, createTexture, createTexture, scale

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SWTGraphics

      public SWTGraphics​(SWTPlatform splat, org.eclipse.swt.widgets.Composite comp)
  • Method Details

    • canvas

      public org.eclipse.swt.opengl.GLCanvas canvas()
    • screenSize

      public IDimension screenSize()
      Specified by:
      screenSize in class playn.core.Graphics
    • setSize

      public void setSize​(int width, int height, boolean fullscreen)
      Specified by:
      setSize in class JavaGraphics