public class Lwjgl3Graphics
extends com.badlogic.gdx.AbstractGraphics
implements com.badlogic.gdx.utils.Disposable
| Modifier and Type | Class and Description |
|---|---|
static class |
Lwjgl3Graphics.Lwjgl3DisplayMode |
static class |
Lwjgl3Graphics.Lwjgl3Monitor |
| Constructor and Description |
|---|
Lwjgl3Graphics(Lwjgl3Window window) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
enableCubeMapSeamless(boolean enable)
Enable or disable cubemap seamless feature.
|
int |
getBackBufferHeight() |
int |
getBackBufferWidth() |
com.badlogic.gdx.Graphics.BufferFormat |
getBufferFormat() |
float |
getDeltaTime() |
com.badlogic.gdx.Graphics.DisplayMode |
getDisplayMode() |
com.badlogic.gdx.Graphics.DisplayMode |
getDisplayMode(com.badlogic.gdx.Graphics.Monitor monitor) |
com.badlogic.gdx.Graphics.DisplayMode[] |
getDisplayModes() |
com.badlogic.gdx.Graphics.DisplayMode[] |
getDisplayModes(com.badlogic.gdx.Graphics.Monitor monitor) |
long |
getFrameId() |
int |
getFramesPerSecond() |
com.badlogic.gdx.graphics.GL20 |
getGL20() |
com.badlogic.gdx.graphics.GL30 |
getGL30() |
com.badlogic.gdx.graphics.glutils.GLVersion |
getGLVersion() |
int |
getHeight() |
int |
getLogicalHeight() |
int |
getLogicalWidth() |
com.badlogic.gdx.Graphics.Monitor |
getMonitor() |
com.badlogic.gdx.Graphics.Monitor[] |
getMonitors() |
float |
getPpcX() |
float |
getPpcY() |
float |
getPpiX() |
float |
getPpiY() |
com.badlogic.gdx.Graphics.Monitor |
getPrimaryMonitor() |
int |
getSafeInsetBottom() |
int |
getSafeInsetLeft() |
int |
getSafeInsetRight() |
int |
getSafeInsetTop() |
com.badlogic.gdx.Graphics.GraphicsType |
getType() |
int |
getWidth() |
Lwjgl3Window |
getWindow() |
boolean |
isContinuousRendering() |
boolean |
isFullscreen() |
boolean |
isGL30Available() |
com.badlogic.gdx.graphics.Cursor |
newCursor(com.badlogic.gdx.graphics.Pixmap pixmap,
int xHotspot,
int yHotspot) |
void |
requestRendering() |
void |
resetDeltaTime() |
void |
setContinuousRendering(boolean isContinuous) |
void |
setCursor(com.badlogic.gdx.graphics.Cursor cursor) |
void |
setForegroundFPS(int fps)
Sets the target framerate for the application, when using continuous rendering.
|
boolean |
setFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode displayMode) |
void |
setGL20(com.badlogic.gdx.graphics.GL20 gl20) |
void |
setGL30(com.badlogic.gdx.graphics.GL30 gl30) |
void |
setResizable(boolean resizable) |
void |
setSystemCursor(com.badlogic.gdx.graphics.Cursor.SystemCursor systemCursor) |
void |
setTitle(java.lang.String title) |
void |
setUndecorated(boolean undecorated) |
void |
setVSync(boolean vsync) |
boolean |
setWindowedMode(int width,
int height) |
boolean |
supportsCubeMapSeamless() |
boolean |
supportsDisplayModeChange() |
boolean |
supportsExtension(java.lang.String extension) |
public Lwjgl3Graphics(Lwjgl3Window window)
public boolean supportsCubeMapSeamless()
public void enableCubeMapSeamless(boolean enable)
supportsCubeMapSeamless())enable - public Lwjgl3Window getWindow()
public boolean isGL30Available()
isGL30Available in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.graphics.GL20 getGL20()
getGL20 in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.graphics.GL30 getGL30()
getGL30 in interface com.badlogic.gdx.Graphicspublic void setGL20(com.badlogic.gdx.graphics.GL20 gl20)
setGL20 in interface com.badlogic.gdx.Graphicspublic void setGL30(com.badlogic.gdx.graphics.GL30 gl30)
setGL30 in interface com.badlogic.gdx.Graphicspublic int getWidth()
getWidth in interface com.badlogic.gdx.Graphicspublic int getHeight()
getHeight in interface com.badlogic.gdx.Graphicspublic int getBackBufferWidth()
getBackBufferWidth in interface com.badlogic.gdx.Graphicspublic int getBackBufferHeight()
getBackBufferHeight in interface com.badlogic.gdx.Graphicspublic int getLogicalWidth()
public int getLogicalHeight()
public long getFrameId()
getFrameId in interface com.badlogic.gdx.Graphicspublic float getDeltaTime()
getDeltaTime in interface com.badlogic.gdx.Graphicspublic void resetDeltaTime()
public int getFramesPerSecond()
getFramesPerSecond in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.Graphics.GraphicsType getType()
getType in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.graphics.glutils.GLVersion getGLVersion()
getGLVersion in interface com.badlogic.gdx.Graphicspublic float getPpiX()
getPpiX in interface com.badlogic.gdx.Graphicspublic float getPpiY()
getPpiY in interface com.badlogic.gdx.Graphicspublic float getPpcX()
getPpcX in interface com.badlogic.gdx.Graphicspublic float getPpcY()
getPpcY in interface com.badlogic.gdx.Graphicspublic boolean supportsDisplayModeChange()
supportsDisplayModeChange in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.Graphics.Monitor getPrimaryMonitor()
getPrimaryMonitor in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.Graphics.Monitor getMonitor()
getMonitor in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.Graphics.Monitor[] getMonitors()
getMonitors in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes()
getDisplayModes in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes(com.badlogic.gdx.Graphics.Monitor monitor)
getDisplayModes in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.Graphics.DisplayMode getDisplayMode()
getDisplayMode in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.Graphics.DisplayMode getDisplayMode(com.badlogic.gdx.Graphics.Monitor monitor)
getDisplayMode in interface com.badlogic.gdx.Graphicspublic int getSafeInsetLeft()
getSafeInsetLeft in interface com.badlogic.gdx.Graphicspublic int getSafeInsetTop()
getSafeInsetTop in interface com.badlogic.gdx.Graphicspublic int getSafeInsetBottom()
getSafeInsetBottom in interface com.badlogic.gdx.Graphicspublic int getSafeInsetRight()
getSafeInsetRight in interface com.badlogic.gdx.Graphicspublic boolean setFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode displayMode)
setFullscreenMode in interface com.badlogic.gdx.Graphicspublic boolean setWindowedMode(int width,
int height)
setWindowedMode in interface com.badlogic.gdx.Graphicspublic void setTitle(java.lang.String title)
setTitle in interface com.badlogic.gdx.Graphicspublic void setUndecorated(boolean undecorated)
setUndecorated in interface com.badlogic.gdx.Graphicspublic void setResizable(boolean resizable)
setResizable in interface com.badlogic.gdx.Graphicspublic void setVSync(boolean vsync)
setVSync in interface com.badlogic.gdx.Graphicspublic void setForegroundFPS(int fps)
setForegroundFPS in interface com.badlogic.gdx.Graphicsfps - fpspublic com.badlogic.gdx.Graphics.BufferFormat getBufferFormat()
getBufferFormat in interface com.badlogic.gdx.Graphicspublic boolean supportsExtension(java.lang.String extension)
supportsExtension in interface com.badlogic.gdx.Graphicspublic void setContinuousRendering(boolean isContinuous)
setContinuousRendering in interface com.badlogic.gdx.Graphicspublic boolean isContinuousRendering()
isContinuousRendering in interface com.badlogic.gdx.Graphicspublic void requestRendering()
requestRendering in interface com.badlogic.gdx.Graphicspublic boolean isFullscreen()
isFullscreen in interface com.badlogic.gdx.Graphicspublic com.badlogic.gdx.graphics.Cursor newCursor(com.badlogic.gdx.graphics.Pixmap pixmap,
int xHotspot,
int yHotspot)
newCursor in interface com.badlogic.gdx.Graphicspublic void setCursor(com.badlogic.gdx.graphics.Cursor cursor)
setCursor in interface com.badlogic.gdx.Graphicspublic void setSystemCursor(com.badlogic.gdx.graphics.Cursor.SystemCursor systemCursor)
setSystemCursor in interface com.badlogic.gdx.Graphicspublic void dispose()
dispose in interface com.badlogic.gdx.utils.Disposable