Package com.prineside.luaj.mapping.parts
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.badlogic.gdx.Graphics
com.badlogic.gdx.Graphics.BufferFormat, com.badlogic.gdx.Graphics.DisplayMode, com.badlogic.gdx.Graphics.GraphicsType, com.badlogic.gdx.Graphics.Monitor
-
Method Summary
Modifier and TypeMethodDescriptionint
float
int
com.badlogic.gdx.Graphics.BufferFormat
float
float
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.com.badlogic.gdx.Graphics.DisplayMode
com.badlogic.gdx.Graphics.DisplayMode
getDisplayMode
(com.badlogic.gdx.Graphics.Monitor p1) com.badlogic.gdx.Graphics.DisplayMode[]
com.badlogic.gdx.Graphics.DisplayMode[]
getDisplayModes
(com.badlogic.gdx.Graphics.Monitor p1) long
Returns the id of the current frame.int
com.badlogic.gdx.graphics.GL20
getGL20()
com.badlogic.gdx.graphics.GL30
getGL30()
com.badlogic.gdx.graphics.GL31
getGL31()
com.badlogic.gdx.graphics.GL32
getGL32()
com.badlogic.gdx.graphics.glutils.GLVersion
int
com.badlogic.gdx.Graphics.Monitor
com.badlogic.gdx.Graphics.Monitor[]
float
getPpcX()
float
getPpcY()
float
getPpiX()
float
getPpiY()
com.badlogic.gdx.Graphics.Monitor
float
int
int
int
int
com.badlogic.gdx.Graphics.GraphicsType
getType()
int
getWidth()
boolean
boolean
Whether the app is fullscreen or notboolean
Returns whether OpenGL ES 3.0 is available.boolean
Returns whether OpenGL ES 3.1 is available.boolean
Returns whether OpenGL ES 3.2 is available.com.badlogic.gdx.graphics.Cursor
newCursor
(com.badlogic.gdx.graphics.Pixmap p1, int p2, int p3) Create a new cursor represented by thePixmap
.void
Requests a new frame to be rendered if the rendering mode is non-continuous.void
setContinuousRendering
(boolean p1) Sets whether to render continuously.void
setCursor
(com.badlogic.gdx.graphics.Cursor p1) Only viable on the lwjgl-backend and on the gwt-backend.void
setForegroundFPS
(int p1) Sets the target framerate for the application when using continuous rendering.boolean
setFullscreenMode
(com.badlogic.gdx.Graphics.DisplayMode p1) Sets the window to full-screen mode.void
setGL20
(com.badlogic.gdx.graphics.GL20 p1) Set the GL20 instancevoid
setGL30
(com.badlogic.gdx.graphics.GL30 p1) Set the GL30 instancevoid
setGL31
(com.badlogic.gdx.graphics.GL31 p1) Set the GL31 instancevoid
setGL32
(com.badlogic.gdx.graphics.GL32 p1) Set the GL32 instancevoid
setResizable
(boolean p1) Sets whether or not the window should be resizable.void
setSystemCursor
(com.badlogic.gdx.graphics.Cursor.SystemCursor p1) Sets one of the predefinedCursor.SystemCursor
svoid
Sets the title of the window.void
setUndecorated
(boolean p1) Sets the window decoration as enabled or disabled.void
setVSync
(boolean p1) Enable/Disable vsynching.boolean
setWindowedMode
(int p1, int p2) Sets the window to windowed mode.boolean
Whether the given backend supports a display mode change via callingGraphics.setFullscreenMode(DisplayMode)
boolean
Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
getBackBufferHeight
public int getBackBufferHeight()- Specified by:
getBackBufferHeight
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the height of the framebuffer in physical pixels
-
getBackBufferScale
public float getBackBufferScale()- Specified by:
getBackBufferScale
in interfacecom.badlogic.gdx.Graphics
- Returns:
- amount of pixels per logical pixel (point)
-
getBackBufferWidth
public int getBackBufferWidth()- Specified by:
getBackBufferWidth
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the width of the framebuffer in physical pixels
-
getBufferFormat
public com.badlogic.gdx.Graphics.BufferFormat getBufferFormat()- Specified by:
getBufferFormat
in interfacecom.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 interfacecom.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 interfacecom.badlogic.gdx.Graphics
- Returns:
- the Density Independent Pixel factor of the display.
-
getDisplayMode
public com.badlogic.gdx.Graphics.DisplayMode getDisplayMode()- Specified by:
getDisplayMode
in interfacecom.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 interfacecom.badlogic.gdx.Graphics
- Returns:
- the current
Graphics.DisplayMode
of the givenGraphics.Monitor
-
getDisplayModes
public com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes()- Specified by:
getDisplayModes
in interfacecom.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 interfacecom.badlogic.gdx.Graphics
- Returns:
- the supported fullscreen
Graphics.DisplayMode
s of the givenGraphics.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 theApplicationListener.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 interfacecom.badlogic.gdx.Graphics
- Returns:
- the id of the current frame
-
getFramesPerSecond
public int getFramesPerSecond()- Specified by:
getFramesPerSecond
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the average number of frames per second
-
getGL20
public com.badlogic.gdx.graphics.GL20 getGL20()- Specified by:
getGL20
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the
GL20
instance
-
getGL30
public com.badlogic.gdx.graphics.GL30 getGL30()- Specified by:
getGL30
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the
GL30
instance or null if not supported
-
getGL31
public com.badlogic.gdx.graphics.GL31 getGL31()- Specified by:
getGL31
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the
GL31
instance or null if not supported
-
getGL32
public com.badlogic.gdx.graphics.GL32 getGL32()- Specified by:
getGL32
in interfacecom.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 interfacecom.badlogic.gdx.Graphics
- Returns:
- the
GLVersion
of this Graphics instance
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfacecom.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 interfacecom.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 interfacecom.badlogic.gdx.Graphics
- Returns:
- the currently connected
Graphics.Monitor
s
-
getPpcX
public float getPpcX()- Specified by:
getPpcX
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the pixels per centimeter on the x-axis
-
getPpcY
public float getPpcY()- Specified by:
getPpcY
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the pixels per centimeter on the y-axis.
-
getPpiX
public float getPpiX()- Specified by:
getPpiX
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the pixels per inch on the x-axis
-
getPpiY
public float getPpiY()- Specified by:
getPpiY
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the pixels per inch on the y-axis
-
getPrimaryMonitor
public com.badlogic.gdx.Graphics.Monitor getPrimaryMonitor()- Specified by:
getPrimaryMonitor
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the primary monitor
-
getRawDeltaTime
public float getRawDeltaTime()- Specified by:
getRawDeltaTime
in interfacecom.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 interfacecom.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 interfacecom.badlogic.gdx.Graphics
- Returns:
- the inset from the left which avoids display cutouts in logical pixels
-
getSafeInsetRight
public int getSafeInsetRight()- Specified by:
getSafeInsetRight
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the inset from the right which avoids display cutouts in logical pixels
-
getSafeInsetTop
public int getSafeInsetTop()- Specified by:
getSafeInsetTop
in interfacecom.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 interfacecom.badlogic.gdx.Graphics
- Returns:
- the
Graphics.GraphicsType
of this Graphics instance
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfacecom.badlogic.gdx.Graphics
- Returns:
- the width of the client area in logical pixels.
-
isContinuousRendering
public boolean isContinuousRendering()- Specified by:
isContinuousRendering
in interfacecom.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 interfacecom.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 ofGL30
viaGraphics.getGL30()
to access OpenGL ES 3.0 functionality. Note that this functionality will only be available if you instructed theApplication
instance to use OpenGL ES 3.0!- Specified by:
isGL30Available
in interfacecom.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 ofGL31
viaGraphics.getGL31()
to access OpenGL ES 3.1 functionality. Note that this functionality will only be available if you instructed theApplication
instance to use OpenGL ES 3.1!- Specified by:
isGL31Available
in interfacecom.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 ofGL32
viaGraphics.getGL32()
to access OpenGL ES 3.2 functionality. Note that this functionality will only be available if you instructed theApplication
instance to use OpenGL ES 3.2!- Specified by:
isGL32Available
in interfacecom.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 thePixmap
. 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 callingGraphics.setCursor(Cursor)
.- Specified by:
newCursor
in interfacecom.badlogic.gdx.Graphics
- Parameters:
p1
- the mouse cursor image as aPixmap
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 interfacecom.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 viaApplication.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.
ApplicationListener
. This method can be called from any thread.- Specified by:
setContinuousRendering
in interfacecom.badlogic.gdx.Graphics
- Parameters:
p1
- whether the rendering should be continuous or not.
- A call to
-
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 theCursor
. It is recommended to call this function in the main render thread, and maximum one time per frame.- Specified by:
setCursor
in interfacecom.badlogic.gdx.Graphics
- Parameters:
p1
- the mouse cursor as aCursor
-
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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 predefinedCursor.SystemCursor
s- Specified by:
setSystemCursor
in interfacecom.badlogic.gdx.Graphics
-
setTitle
Description copied from interface:com.badlogic.gdx.Graphics
Sets the title of the window. Ignored on Android.- Specified by:
setTitle
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.badlogic.gdx.Graphics
- Parameters:
p1
- the width in pixelsp2
- 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 callingGraphics.setFullscreenMode(DisplayMode)
- Specified by:
supportsDisplayModeChange
in interfacecom.badlogic.gdx.Graphics
- Returns:
- whether display mode changes are supported or not.
-
supportsExtension
- Specified by:
supportsExtension
in interfacecom.badlogic.gdx.Graphics
- Parameters:
p1
- the extension name- Returns:
- whether the extension is supported
-