Class LJ_GDX.Graphics_K.LIP

java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX.Graphics_K.LIP
All Implemented Interfaces:
com.badlogic.gdx.Graphics, com.esotericsoftware.kryo.KryoSerializable
Enclosing class:
LJ_GDX.Graphics_K

public static class LJ_GDX.Graphics_K.LIP extends InterfaceProxy implements com.badlogic.gdx.Graphics
  • Method Details

    • getBackBufferHeight

      public int getBackBufferHeight()
      Specified by:
      getBackBufferHeight in interface com.badlogic.gdx.Graphics
      Returns:
      the height of the framebuffer in physical pixels
    • getBackBufferScale

      public float getBackBufferScale()
      Specified by:
      getBackBufferScale in interface com.badlogic.gdx.Graphics
      Returns:
      amount of pixels per logical pixel (point)
    • getBackBufferWidth

      public int getBackBufferWidth()
      Specified by:
      getBackBufferWidth in interface com.badlogic.gdx.Graphics
      Returns:
      the width of the framebuffer in physical pixels
    • getBufferFormat

      public com.badlogic.gdx.Graphics.BufferFormat getBufferFormat()
      Specified by:
      getBufferFormat in interface com.badlogic.gdx.Graphics
      Returns:
      the format of the color, depth and stencil buffer in a Graphics.BufferFormat instance
    • getDeltaTime

      public float getDeltaTime()
      Specified by:
      getDeltaTime in interface com.badlogic.gdx.Graphics
      Returns:
      the time span between the current frame and the last frame in seconds.
    • getDensity

      public float getDensity()
      Description copied from interface: com.badlogic.gdx.Graphics
      This is a scaling factor for the Density Independent Pixel unit, following the same conventions as android.util.DisplayMetrics#density, where one DIP is one pixel on an approximately 160 dpi screen. Thus on a 160dpi screen this density value will be 1; on a 120 dpi screen it would be .75; etc. If the density could not be determined, this returns a default value of 1. Depending on the underlying platform implementation this might be a relatively expensive operation. Therefore it should not be called continously on each frame.
      Specified by:
      getDensity in interface com.badlogic.gdx.Graphics
      Returns:
      the Density Independent Pixel factor of the display.
    • getDisplayMode

      public com.badlogic.gdx.Graphics.DisplayMode getDisplayMode()
      Specified by:
      getDisplayMode in interface com.badlogic.gdx.Graphics
      Returns:
      the current Graphics.DisplayMode of the monitor the window is on.
    • getDisplayMode

      public com.badlogic.gdx.Graphics.DisplayMode getDisplayMode(com.badlogic.gdx.Graphics.Monitor p1)
      Specified by:
      getDisplayMode in interface com.badlogic.gdx.Graphics
      Returns:
      the current Graphics.DisplayMode of the given Graphics.Monitor
    • getDisplayModes

      public com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes()
      Specified by:
      getDisplayModes in interface com.badlogic.gdx.Graphics
      Returns:
      the supported fullscreen Graphics.DisplayMode(s) of the monitor the window is on
    • getDisplayModes

      public com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes(com.badlogic.gdx.Graphics.Monitor p1)
      Specified by:
      getDisplayModes in interface com.badlogic.gdx.Graphics
      Returns:
      the supported fullscreen Graphics.DisplayModes of the given Graphics.Monitor
    • getFrameId

      public long getFrameId()
      Description copied from interface: com.badlogic.gdx.Graphics
      Returns the id of the current frame. The general contract of this method is that the id is incremented only when the application is in the running state right before calling the ApplicationListener.render() method. Also, the id of the first frame is 0; the id of subsequent frames is guaranteed to take increasing values for 263-1 rendering cycles.
      Specified by:
      getFrameId in interface com.badlogic.gdx.Graphics
      Returns:
      the id of the current frame
    • getFramesPerSecond

      public int getFramesPerSecond()
      Specified by:
      getFramesPerSecond in interface com.badlogic.gdx.Graphics
      Returns:
      the average number of frames per second
    • getGL20

      public com.badlogic.gdx.graphics.GL20 getGL20()
      Specified by:
      getGL20 in interface com.badlogic.gdx.Graphics
      Returns:
      the GL20 instance
    • getGL30

      public com.badlogic.gdx.graphics.GL30 getGL30()
      Specified by:
      getGL30 in interface com.badlogic.gdx.Graphics
      Returns:
      the GL30 instance or null if not supported
    • getGL31

      public com.badlogic.gdx.graphics.GL31 getGL31()
      Specified by:
      getGL31 in interface com.badlogic.gdx.Graphics
      Returns:
      the GL31 instance or null if not supported
    • getGL32

      public com.badlogic.gdx.graphics.GL32 getGL32()
      Specified by:
      getGL32 in interface com.badlogic.gdx.Graphics
      Returns:
      the GL32 instance or null if not supported
    • getGLVersion

      public com.badlogic.gdx.graphics.glutils.GLVersion getGLVersion()
      Specified by:
      getGLVersion in interface com.badlogic.gdx.Graphics
      Returns:
      the GLVersion of this Graphics instance
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface com.badlogic.gdx.Graphics
      Returns:
      the height of the client area in logical pixels
    • getMonitor

      public com.badlogic.gdx.Graphics.Monitor getMonitor()
      Specified by:
      getMonitor in interface com.badlogic.gdx.Graphics
      Returns:
      the monitor the application's window is located on
    • getMonitors

      public com.badlogic.gdx.Graphics.Monitor[] getMonitors()
      Specified by:
      getMonitors in interface com.badlogic.gdx.Graphics
      Returns:
      the currently connected Graphics.Monitors
    • getPpcX

      public float getPpcX()
      Specified by:
      getPpcX in interface com.badlogic.gdx.Graphics
      Returns:
      the pixels per centimeter on the x-axis
    • getPpcY

      public float getPpcY()
      Specified by:
      getPpcY in interface com.badlogic.gdx.Graphics
      Returns:
      the pixels per centimeter on the y-axis.
    • getPpiX

      public float getPpiX()
      Specified by:
      getPpiX in interface com.badlogic.gdx.Graphics
      Returns:
      the pixels per inch on the x-axis
    • getPpiY

      public float getPpiY()
      Specified by:
      getPpiY in interface com.badlogic.gdx.Graphics
      Returns:
      the pixels per inch on the y-axis
    • getPrimaryMonitor

      public com.badlogic.gdx.Graphics.Monitor getPrimaryMonitor()
      Specified by:
      getPrimaryMonitor in interface com.badlogic.gdx.Graphics
      Returns:
      the primary monitor
    • getRawDeltaTime

      public float getRawDeltaTime()
      Specified by:
      getRawDeltaTime in interface com.badlogic.gdx.Graphics
      Returns:
      the time span between the current frame and the last frame in seconds, without smoothing
    • getSafeInsetBottom

      public int getSafeInsetBottom()
      Specified by:
      getSafeInsetBottom in interface com.badlogic.gdx.Graphics
      Returns:
      the inset from the bottom which avoids display cutouts or floating gesture bars, in logical pixels
    • getSafeInsetLeft

      public int getSafeInsetLeft()
      Specified by:
      getSafeInsetLeft in interface com.badlogic.gdx.Graphics
      Returns:
      the inset from the left which avoids display cutouts in logical pixels
    • getSafeInsetRight

      public int getSafeInsetRight()
      Specified by:
      getSafeInsetRight in interface com.badlogic.gdx.Graphics
      Returns:
      the inset from the right which avoids display cutouts in logical pixels
    • getSafeInsetTop

      public int getSafeInsetTop()
      Specified by:
      getSafeInsetTop in interface com.badlogic.gdx.Graphics
      Returns:
      the inset from the top which avoids display cutouts in logical pixels
    • getType

      public com.badlogic.gdx.Graphics.GraphicsType getType()
      Specified by:
      getType in interface com.badlogic.gdx.Graphics
      Returns:
      the Graphics.GraphicsType of this Graphics instance
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface com.badlogic.gdx.Graphics
      Returns:
      the width of the client area in logical pixels.
    • isContinuousRendering

      public boolean isContinuousRendering()
      Specified by:
      isContinuousRendering in interface com.badlogic.gdx.Graphics
      Returns:
      whether rendering is continuous.
    • isFullscreen

      public boolean isFullscreen()
      Description copied from interface: com.badlogic.gdx.Graphics
      Whether the app is fullscreen or not
      Specified by:
      isFullscreen in interface com.badlogic.gdx.Graphics
    • isGL30Available

      public boolean isGL30Available()
      Description copied from interface: com.badlogic.gdx.Graphics
      Returns whether OpenGL ES 3.0 is available. If it is you can get an instance of GL30 via Graphics.getGL30() to access OpenGL ES 3.0 functionality. Note that this functionality will only be available if you instructed the Application instance to use OpenGL ES 3.0!
      Specified by:
      isGL30Available in interface com.badlogic.gdx.Graphics
      Returns:
      whether OpenGL ES 3.0 is available
    • isGL31Available

      public boolean isGL31Available()
      Description copied from interface: com.badlogic.gdx.Graphics
      Returns whether OpenGL ES 3.1 is available. If it is you can get an instance of GL31 via Graphics.getGL31() to access OpenGL ES 3.1 functionality. Note that this functionality will only be available if you instructed the Application instance to use OpenGL ES 3.1!
      Specified by:
      isGL31Available in interface com.badlogic.gdx.Graphics
      Returns:
      whether OpenGL ES 3.1 is available
    • isGL32Available

      public boolean isGL32Available()
      Description copied from interface: com.badlogic.gdx.Graphics
      Returns whether OpenGL ES 3.2 is available. If it is you can get an instance of GL32 via Graphics.getGL32() to access OpenGL ES 3.2 functionality. Note that this functionality will only be available if you instructed the Application instance to use OpenGL ES 3.2!
      Specified by:
      isGL32Available in interface com.badlogic.gdx.Graphics
      Returns:
      whether OpenGL ES 3.2 is available
    • newCursor

      public com.badlogic.gdx.graphics.Cursor newCursor(com.badlogic.gdx.graphics.Pixmap p1, int p2, int p3)
      Description copied from interface: com.badlogic.gdx.Graphics
      Create a new cursor represented by the Pixmap. The Pixmap must be in RGBA8888 format, width & height must be powers-of-two greater than zero (not necessarily equal) and of a certain minimum size (32x32 is a safe bet), and alpha transparency must be single-bit (i.e., 0x00 or 0xFF only). This function returns a Cursor object that can be set as the system cursor by calling Graphics.setCursor(Cursor) .
      Specified by:
      newCursor in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - the mouse cursor image as a Pixmap
      p2 - the x location of the hotspot pixel within the cursor image (origin top-left corner)
      p3 - the y location of the hotspot pixel within the cursor image (origin top-left corner)
      Returns:
      a cursor object that can be used by calling Graphics.setCursor(Cursor) or null if not supported
    • requestRendering

      public void requestRendering()
      Description copied from interface: com.badlogic.gdx.Graphics
      Requests a new frame to be rendered if the rendering mode is non-continuous. This method can be called from any thread.
      Specified by:
      requestRendering in interface com.badlogic.gdx.Graphics
    • setContinuousRendering

      public void setContinuousRendering(boolean p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Sets whether to render continuously. In case rendering is performed non-continuously, the following events will trigger a redraw:
      • A call to Graphics.requestRendering()
      • Input events from the touch screen/mouse or keyboard
      • A Runnable is posted to the rendering thread via Application.postRunnable(Runnable). In the case of a multi-window app, all windows will request rendering if a runnable is posted to the application. To avoid this, post a runnable to the window instead.
      Life-cycle events will also be reported as usual, see ApplicationListener. This method can be called from any thread.
      Specified by:
      setContinuousRendering in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - whether the rendering should be continuous or not.
    • setCursor

      public void setCursor(com.badlogic.gdx.graphics.Cursor p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Only viable on the lwjgl-backend and on the gwt-backend. Browsers that support cursor:url() and support the png format (the pixmap is converted to a data-url of type image/png) should also support custom cursors. Will set the mouse cursor image to the image represented by the Cursor. It is recommended to call this function in the main render thread, and maximum one time per frame.
      Specified by:
      setCursor in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - the mouse cursor as a Cursor
    • setForegroundFPS

      public void setForegroundFPS(int p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Sets the target framerate for the application when using continuous rendering. Might not work on all platforms. Is not generally advised to be used on mobile platforms.
      Specified by:
      setForegroundFPS in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - the targeted fps; default differs by platform
    • setFullscreenMode

      public boolean setFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Sets the window to full-screen mode.
      Specified by:
      setFullscreenMode in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - the display mode.
      Returns:
      whether the operation succeeded.
    • setGL20

      public void setGL20(com.badlogic.gdx.graphics.GL20 p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Set the GL20 instance
      Specified by:
      setGL20 in interface com.badlogic.gdx.Graphics
    • setGL30

      public void setGL30(com.badlogic.gdx.graphics.GL30 p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Set the GL30 instance
      Specified by:
      setGL30 in interface com.badlogic.gdx.Graphics
    • setGL31

      public void setGL31(com.badlogic.gdx.graphics.GL31 p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Set the GL31 instance
      Specified by:
      setGL31 in interface com.badlogic.gdx.Graphics
    • setGL32

      public void setGL32(com.badlogic.gdx.graphics.GL32 p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Set the GL32 instance
      Specified by:
      setGL32 in interface com.badlogic.gdx.Graphics
    • setResizable

      public void setResizable(boolean p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Sets whether or not the window should be resizable. Ignored on Android. Note that immediate behavior of this method may vary depending on the implementation. It may be necessary for the window to be recreated in order for the changes to take effect. Consult the documentation for the backend in use for more information. Supported on all GDX desktop backends.
      Specified by:
      setResizable in interface com.badlogic.gdx.Graphics
    • setSystemCursor

      public void setSystemCursor(com.badlogic.gdx.graphics.Cursor.SystemCursor p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Sets one of the predefined Cursor.SystemCursors
      Specified by:
      setSystemCursor in interface com.badlogic.gdx.Graphics
    • setTitle

      public void setTitle(String p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Sets the title of the window. Ignored on Android.
      Specified by:
      setTitle in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - the title.
    • setUndecorated

      public void setUndecorated(boolean p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Sets the window decoration as enabled or disabled. On Android, this will enable/disable the menu bar. Note that immediate behavior of this method may vary depending on the implementation. It may be necessary for the window to be recreated in order for the changes to take effect. Consult the documentation for the backend in use for more information. Supported on all GDX desktop backends and on Android (to disable the menu bar).
      Specified by:
      setUndecorated in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - true if the window border or status bar should be hidden. false otherwise.
    • setVSync

      public void setVSync(boolean p1)
      Description copied from interface: com.badlogic.gdx.Graphics
      Enable/Disable vsynching. This is a best-effort attempt which might not work on all platforms.
      Specified by:
      setVSync in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - vsync enabled or not.
    • setWindowedMode

      public boolean setWindowedMode(int p1, int p2)
      Description copied from interface: com.badlogic.gdx.Graphics
      Sets the window to windowed mode.
      Specified by:
      setWindowedMode in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - the width in pixels
      p2 - the height in pixels
      Returns:
      whether the operation succeeded
    • supportsDisplayModeChange

      public boolean supportsDisplayModeChange()
      Description copied from interface: com.badlogic.gdx.Graphics
      Whether the given backend supports a display mode change via calling Graphics.setFullscreenMode(DisplayMode)
      Specified by:
      supportsDisplayModeChange in interface com.badlogic.gdx.Graphics
      Returns:
      whether display mode changes are supported or not.
    • supportsExtension

      public boolean supportsExtension(String p1)
      Specified by:
      supportsExtension in interface com.badlogic.gdx.Graphics
      Parameters:
      p1 - the extension name
      Returns:
      whether the extension is supported