Package com.badlogic.gdx.backends.lwjgl3
Class Lwjgl3Graphics
- java.lang.Object
-
- com.badlogic.gdx.AbstractGraphics
-
- com.badlogic.gdx.backends.lwjgl3.Lwjgl3Graphics
-
- All Implemented Interfaces:
com.badlogic.gdx.Graphics,com.badlogic.gdx.utils.Disposable
public class Lwjgl3Graphics extends com.badlogic.gdx.AbstractGraphics implements com.badlogic.gdx.utils.Disposable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLwjgl3Graphics.Lwjgl3DisplayModestatic classLwjgl3Graphics.Lwjgl3Monitor
-
Constructor Summary
Constructors Constructor Description Lwjgl3Graphics(Lwjgl3Window window)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voidenableCubeMapSeamless(boolean enable)Enable or disable cubemap seamless feature.intgetBackBufferHeight()intgetBackBufferWidth()com.badlogic.gdx.Graphics.BufferFormatgetBufferFormat()floatgetDeltaTime()com.badlogic.gdx.Graphics.DisplayModegetDisplayMode()com.badlogic.gdx.Graphics.DisplayModegetDisplayMode(com.badlogic.gdx.Graphics.Monitor monitor)com.badlogic.gdx.Graphics.DisplayMode[]getDisplayModes()com.badlogic.gdx.Graphics.DisplayMode[]getDisplayModes(com.badlogic.gdx.Graphics.Monitor monitor)longgetFrameId()intgetFramesPerSecond()com.badlogic.gdx.graphics.GL20getGL20()com.badlogic.gdx.graphics.GL30getGL30()com.badlogic.gdx.graphics.GL31getGL31()com.badlogic.gdx.graphics.GL32getGL32()com.badlogic.gdx.graphics.glutils.GLVersiongetGLVersion()intgetHeight()intgetLogicalHeight()intgetLogicalWidth()com.badlogic.gdx.Graphics.MonitorgetMonitor()com.badlogic.gdx.Graphics.Monitor[]getMonitors()floatgetPpcX()floatgetPpcY()floatgetPpiX()floatgetPpiY()com.badlogic.gdx.Graphics.MonitorgetPrimaryMonitor()intgetSafeInsetBottom()intgetSafeInsetLeft()intgetSafeInsetRight()intgetSafeInsetTop()com.badlogic.gdx.Graphics.GraphicsTypegetType()intgetWidth()Lwjgl3WindowgetWindow()booleanisContinuousRendering()booleanisFullscreen()booleanisGL30Available()booleanisGL31Available()booleanisGL32Available()com.badlogic.gdx.graphics.CursornewCursor(com.badlogic.gdx.graphics.Pixmap pixmap, int xHotspot, int yHotspot)voidrequestRendering()voidresetDeltaTime()voidsetContinuousRendering(boolean isContinuous)voidsetCursor(com.badlogic.gdx.graphics.Cursor cursor)voidsetForegroundFPS(int fps)Sets the target framerate for the application, when using continuous rendering.booleansetFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode displayMode)voidsetGL20(com.badlogic.gdx.graphics.GL20 gl20)voidsetGL30(com.badlogic.gdx.graphics.GL30 gl30)voidsetGL31(com.badlogic.gdx.graphics.GL31 gl31)voidsetGL32(com.badlogic.gdx.graphics.GL32 gl32)voidsetResizable(boolean resizable)voidsetSystemCursor(com.badlogic.gdx.graphics.Cursor.SystemCursor systemCursor)voidsetTitle(java.lang.String title)voidsetUndecorated(boolean undecorated)voidsetVSync(boolean vsync)booleansetWindowedMode(int width, int height)booleansupportsCubeMapSeamless()booleansupportsDisplayModeChange()booleansupportsExtension(java.lang.String extension)
-
-
-
Constructor Detail
-
Lwjgl3Graphics
public Lwjgl3Graphics(Lwjgl3Window window)
-
-
Method Detail
-
supportsCubeMapSeamless
public boolean supportsCubeMapSeamless()
- Returns:
- whether cubemap seamless feature is supported.
-
enableCubeMapSeamless
public void enableCubeMapSeamless(boolean enable)
Enable or disable cubemap seamless feature. Default is true if supported. Should only be called if this feature is supported. (seesupportsCubeMapSeamless())- Parameters:
enable-
-
getWindow
public Lwjgl3Window getWindow()
-
isGL30Available
public boolean isGL30Available()
- Specified by:
isGL30Availablein interfacecom.badlogic.gdx.Graphics
-
isGL31Available
public boolean isGL31Available()
- Specified by:
isGL31Availablein interfacecom.badlogic.gdx.Graphics
-
isGL32Available
public boolean isGL32Available()
- Specified by:
isGL32Availablein interfacecom.badlogic.gdx.Graphics
-
getGL20
public com.badlogic.gdx.graphics.GL20 getGL20()
- Specified by:
getGL20in interfacecom.badlogic.gdx.Graphics
-
getGL30
public com.badlogic.gdx.graphics.GL30 getGL30()
- Specified by:
getGL30in interfacecom.badlogic.gdx.Graphics
-
getGL31
public com.badlogic.gdx.graphics.GL31 getGL31()
- Specified by:
getGL31in interfacecom.badlogic.gdx.Graphics
-
getGL32
public com.badlogic.gdx.graphics.GL32 getGL32()
- Specified by:
getGL32in interfacecom.badlogic.gdx.Graphics
-
setGL20
public void setGL20(com.badlogic.gdx.graphics.GL20 gl20)
- Specified by:
setGL20in interfacecom.badlogic.gdx.Graphics
-
setGL30
public void setGL30(com.badlogic.gdx.graphics.GL30 gl30)
- Specified by:
setGL30in interfacecom.badlogic.gdx.Graphics
-
setGL31
public void setGL31(com.badlogic.gdx.graphics.GL31 gl31)
- Specified by:
setGL31in interfacecom.badlogic.gdx.Graphics
-
setGL32
public void setGL32(com.badlogic.gdx.graphics.GL32 gl32)
- Specified by:
setGL32in interfacecom.badlogic.gdx.Graphics
-
getWidth
public int getWidth()
- Specified by:
getWidthin interfacecom.badlogic.gdx.Graphics
-
getHeight
public int getHeight()
- Specified by:
getHeightin interfacecom.badlogic.gdx.Graphics
-
getBackBufferWidth
public int getBackBufferWidth()
- Specified by:
getBackBufferWidthin interfacecom.badlogic.gdx.Graphics
-
getBackBufferHeight
public int getBackBufferHeight()
- Specified by:
getBackBufferHeightin interfacecom.badlogic.gdx.Graphics
-
getLogicalWidth
public int getLogicalWidth()
-
getLogicalHeight
public int getLogicalHeight()
-
getFrameId
public long getFrameId()
- Specified by:
getFrameIdin interfacecom.badlogic.gdx.Graphics
-
getDeltaTime
public float getDeltaTime()
- Specified by:
getDeltaTimein interfacecom.badlogic.gdx.Graphics
-
resetDeltaTime
public void resetDeltaTime()
-
getFramesPerSecond
public int getFramesPerSecond()
- Specified by:
getFramesPerSecondin interfacecom.badlogic.gdx.Graphics
-
getType
public com.badlogic.gdx.Graphics.GraphicsType getType()
- Specified by:
getTypein interfacecom.badlogic.gdx.Graphics
-
getGLVersion
public com.badlogic.gdx.graphics.glutils.GLVersion getGLVersion()
- Specified by:
getGLVersionin interfacecom.badlogic.gdx.Graphics
-
getPpiX
public float getPpiX()
- Specified by:
getPpiXin interfacecom.badlogic.gdx.Graphics
-
getPpiY
public float getPpiY()
- Specified by:
getPpiYin interfacecom.badlogic.gdx.Graphics
-
getPpcX
public float getPpcX()
- Specified by:
getPpcXin interfacecom.badlogic.gdx.Graphics
-
getPpcY
public float getPpcY()
- Specified by:
getPpcYin interfacecom.badlogic.gdx.Graphics
-
supportsDisplayModeChange
public boolean supportsDisplayModeChange()
- Specified by:
supportsDisplayModeChangein interfacecom.badlogic.gdx.Graphics
-
getPrimaryMonitor
public com.badlogic.gdx.Graphics.Monitor getPrimaryMonitor()
- Specified by:
getPrimaryMonitorin interfacecom.badlogic.gdx.Graphics
-
getMonitor
public com.badlogic.gdx.Graphics.Monitor getMonitor()
- Specified by:
getMonitorin interfacecom.badlogic.gdx.Graphics
-
getMonitors
public com.badlogic.gdx.Graphics.Monitor[] getMonitors()
- Specified by:
getMonitorsin interfacecom.badlogic.gdx.Graphics
-
getDisplayModes
public com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes()
- Specified by:
getDisplayModesin interfacecom.badlogic.gdx.Graphics
-
getDisplayModes
public com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes(com.badlogic.gdx.Graphics.Monitor monitor)
- Specified by:
getDisplayModesin interfacecom.badlogic.gdx.Graphics
-
getDisplayMode
public com.badlogic.gdx.Graphics.DisplayMode getDisplayMode()
- Specified by:
getDisplayModein interfacecom.badlogic.gdx.Graphics
-
getDisplayMode
public com.badlogic.gdx.Graphics.DisplayMode getDisplayMode(com.badlogic.gdx.Graphics.Monitor monitor)
- Specified by:
getDisplayModein interfacecom.badlogic.gdx.Graphics
-
getSafeInsetLeft
public int getSafeInsetLeft()
- Specified by:
getSafeInsetLeftin interfacecom.badlogic.gdx.Graphics
-
getSafeInsetTop
public int getSafeInsetTop()
- Specified by:
getSafeInsetTopin interfacecom.badlogic.gdx.Graphics
-
getSafeInsetBottom
public int getSafeInsetBottom()
- Specified by:
getSafeInsetBottomin interfacecom.badlogic.gdx.Graphics
-
getSafeInsetRight
public int getSafeInsetRight()
- Specified by:
getSafeInsetRightin interfacecom.badlogic.gdx.Graphics
-
setFullscreenMode
public boolean setFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode displayMode)
- Specified by:
setFullscreenModein interfacecom.badlogic.gdx.Graphics
-
setWindowedMode
public boolean setWindowedMode(int width, int height)- Specified by:
setWindowedModein interfacecom.badlogic.gdx.Graphics
-
setTitle
public void setTitle(java.lang.String title)
- Specified by:
setTitlein interfacecom.badlogic.gdx.Graphics
-
setUndecorated
public void setUndecorated(boolean undecorated)
- Specified by:
setUndecoratedin interfacecom.badlogic.gdx.Graphics
-
setResizable
public void setResizable(boolean resizable)
- Specified by:
setResizablein interfacecom.badlogic.gdx.Graphics
-
setVSync
public void setVSync(boolean vsync)
- Specified by:
setVSyncin interfacecom.badlogic.gdx.Graphics
-
setForegroundFPS
public void setForegroundFPS(int fps)
Sets the target framerate for the application, when using continuous rendering. Must be positive. The cpu sleeps as needed. Use 0 to never sleep. If there are multiple windows, the value for the first window created is used for all. Default is 0.- Specified by:
setForegroundFPSin interfacecom.badlogic.gdx.Graphics- Parameters:
fps- fps
-
getBufferFormat
public com.badlogic.gdx.Graphics.BufferFormat getBufferFormat()
- Specified by:
getBufferFormatin interfacecom.badlogic.gdx.Graphics
-
supportsExtension
public boolean supportsExtension(java.lang.String extension)
- Specified by:
supportsExtensionin interfacecom.badlogic.gdx.Graphics
-
setContinuousRendering
public void setContinuousRendering(boolean isContinuous)
- Specified by:
setContinuousRenderingin interfacecom.badlogic.gdx.Graphics
-
isContinuousRendering
public boolean isContinuousRendering()
- Specified by:
isContinuousRenderingin interfacecom.badlogic.gdx.Graphics
-
requestRendering
public void requestRendering()
- Specified by:
requestRenderingin interfacecom.badlogic.gdx.Graphics
-
isFullscreen
public boolean isFullscreen()
- Specified by:
isFullscreenin interfacecom.badlogic.gdx.Graphics
-
newCursor
public com.badlogic.gdx.graphics.Cursor newCursor(com.badlogic.gdx.graphics.Pixmap pixmap, int xHotspot, int yHotspot)- Specified by:
newCursorin interfacecom.badlogic.gdx.Graphics
-
setCursor
public void setCursor(com.badlogic.gdx.graphics.Cursor cursor)
- Specified by:
setCursorin interfacecom.badlogic.gdx.Graphics
-
setSystemCursor
public void setSystemCursor(com.badlogic.gdx.graphics.Cursor.SystemCursor systemCursor)
- Specified by:
setSystemCursorin interfacecom.badlogic.gdx.Graphics
-
dispose
public void dispose()
- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
-