public class Mini2DxMockGraphics
extends com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
Constructor and Description |
---|
Mini2DxMockGraphics(HeadlessMini2DxConfig config) |
Modifier and Type | Method and Description |
---|---|
int |
getBackBufferHeight() |
int |
getBackBufferWidth() |
com.badlogic.gdx.Graphics.BufferFormat |
getBufferFormat() |
float |
getDeltaTime() |
float |
getDensity() |
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() |
int |
getHeight() |
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() |
float |
getRawDeltaTime() |
com.badlogic.gdx.Graphics.GraphicsType |
getType() |
int |
getWidth() |
void |
incrementFrameId() |
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 |
setContinuousRendering(boolean isContinuous) |
void |
setCursor(com.badlogic.gdx.graphics.Cursor cursor) |
boolean |
setFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode displayMode) |
void |
setSystemCursor(com.badlogic.gdx.graphics.Cursor.SystemCursor systemCursor) |
void |
setTitle(java.lang.String title) |
void |
setVSync(boolean vsync) |
boolean |
setWindowedMode(int width,
int height) |
void |
sleepTillDeltaTime(long fpsDeltaNanos) |
boolean |
supportsDisplayModeChange() |
boolean |
supportsExtension(java.lang.String extension) |
void |
updateTime() |
public Mini2DxMockGraphics(HeadlessMini2DxConfig config)
public boolean isGL30Available()
isGL30Available
in interface com.badlogic.gdx.Graphics
isGL30Available
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.graphics.GL20 getGL20()
getGL20
in interface com.badlogic.gdx.Graphics
getGL20
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.graphics.GL30 getGL30()
getGL30
in interface com.badlogic.gdx.Graphics
getGL30
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public int getWidth()
getWidth
in interface com.badlogic.gdx.Graphics
getWidth
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public int getHeight()
getHeight
in interface com.badlogic.gdx.Graphics
getHeight
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public int getBackBufferWidth()
getBackBufferWidth
in interface com.badlogic.gdx.Graphics
getBackBufferWidth
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public int getBackBufferHeight()
getBackBufferHeight
in interface com.badlogic.gdx.Graphics
getBackBufferHeight
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public long getFrameId()
getFrameId
in interface com.badlogic.gdx.Graphics
getFrameId
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public float getDeltaTime()
getDeltaTime
in interface com.badlogic.gdx.Graphics
getDeltaTime
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public float getRawDeltaTime()
getRawDeltaTime
in interface com.badlogic.gdx.Graphics
getRawDeltaTime
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public int getFramesPerSecond()
getFramesPerSecond
in interface com.badlogic.gdx.Graphics
getFramesPerSecond
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.Graphics.GraphicsType getType()
getType
in interface com.badlogic.gdx.Graphics
getType
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public float getPpiX()
getPpiX
in interface com.badlogic.gdx.Graphics
getPpiX
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public float getPpiY()
getPpiY
in interface com.badlogic.gdx.Graphics
getPpiY
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public float getPpcX()
getPpcX
in interface com.badlogic.gdx.Graphics
getPpcX
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public float getPpcY()
getPpcY
in interface com.badlogic.gdx.Graphics
getPpcY
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public float getDensity()
getDensity
in interface com.badlogic.gdx.Graphics
getDensity
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public boolean supportsDisplayModeChange()
supportsDisplayModeChange
in interface com.badlogic.gdx.Graphics
supportsDisplayModeChange
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes()
getDisplayModes
in interface com.badlogic.gdx.Graphics
getDisplayModes
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.Graphics.DisplayMode getDisplayMode()
getDisplayMode
in interface com.badlogic.gdx.Graphics
getDisplayMode
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public boolean setFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode displayMode)
setFullscreenMode
in interface com.badlogic.gdx.Graphics
setFullscreenMode
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public boolean setWindowedMode(int width, int height)
setWindowedMode
in interface com.badlogic.gdx.Graphics
setWindowedMode
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public void setTitle(java.lang.String title)
setTitle
in interface com.badlogic.gdx.Graphics
setTitle
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public void setVSync(boolean vsync)
setVSync
in interface com.badlogic.gdx.Graphics
setVSync
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.Graphics.BufferFormat getBufferFormat()
getBufferFormat
in interface com.badlogic.gdx.Graphics
getBufferFormat
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public boolean supportsExtension(java.lang.String extension)
supportsExtension
in interface com.badlogic.gdx.Graphics
supportsExtension
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public void setContinuousRendering(boolean isContinuous)
setContinuousRendering
in interface com.badlogic.gdx.Graphics
setContinuousRendering
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public boolean isContinuousRendering()
isContinuousRendering
in interface com.badlogic.gdx.Graphics
isContinuousRendering
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public void requestRendering()
requestRendering
in interface com.badlogic.gdx.Graphics
requestRendering
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public boolean isFullscreen()
isFullscreen
in interface com.badlogic.gdx.Graphics
isFullscreen
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public void updateTime()
updateTime
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public void sleepTillDeltaTime(long fpsDeltaNanos)
public void incrementFrameId()
incrementFrameId
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.graphics.Cursor newCursor(com.badlogic.gdx.graphics.Pixmap pixmap, int xHotspot, int yHotspot)
newCursor
in interface com.badlogic.gdx.Graphics
newCursor
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public void setCursor(com.badlogic.gdx.graphics.Cursor cursor)
setCursor
in interface com.badlogic.gdx.Graphics
setCursor
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public void setSystemCursor(com.badlogic.gdx.graphics.Cursor.SystemCursor systemCursor)
setSystemCursor
in interface com.badlogic.gdx.Graphics
setSystemCursor
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.Graphics.Monitor getPrimaryMonitor()
getPrimaryMonitor
in interface com.badlogic.gdx.Graphics
getPrimaryMonitor
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.Graphics.Monitor getMonitor()
getMonitor
in interface com.badlogic.gdx.Graphics
getMonitor
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.Graphics.Monitor[] getMonitors()
getMonitors
in interface com.badlogic.gdx.Graphics
getMonitors
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes(com.badlogic.gdx.Graphics.Monitor monitor)
getDisplayModes
in interface com.badlogic.gdx.Graphics
getDisplayModes
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics
public com.badlogic.gdx.Graphics.DisplayMode getDisplayMode(com.badlogic.gdx.Graphics.Monitor monitor)
getDisplayMode
in interface com.badlogic.gdx.Graphics
getDisplayMode
in class com.badlogic.gdx.backends.headless.mock.graphics.MockGraphics