public class IOSGraphics
extends com.badlogic.gdx.AbstractGraphics
| Constructor and Description |
|---|
IOSGraphics(IOSApplication app,
IOSApplicationConfiguration config,
IOSInput input,
boolean useGLES30) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(org.robovm.apple.glkit.GLKView view,
org.robovm.apple.coregraphics.CGRect rect) |
int |
getBackBufferHeight() |
float |
getBackBufferScale() |
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() |
com.badlogic.gdx.graphics.glutils.GLVersion |
getGLVersion() |
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() |
int |
getSafeInsetBottom() |
int |
getSafeInsetLeft() |
int |
getSafeInsetRight() |
int |
getSafeInsetTop() |
com.badlogic.gdx.Graphics.GraphicsType |
getType() |
int |
getWidth() |
boolean |
isContinuousRendering() |
boolean |
isFullscreen() |
boolean |
isGL30Available() |
com.badlogic.gdx.graphics.Cursor |
newCursor(com.badlogic.gdx.graphics.Pixmap pixmap,
int xHotspot,
int yHotspot) |
void |
pause() |
void |
requestRendering() |
void |
resume() |
void |
setContinuousRendering(boolean isContinuous) |
void |
setCursor(com.badlogic.gdx.graphics.Cursor cursor) |
void |
setForegroundFPS(int fps)
Sets the preferred framerate for the application.
|
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 |
supportsDisplayModeChange() |
boolean |
supportsExtension(java.lang.String extension) |
void |
update(org.robovm.apple.glkit.GLKViewController controller) |
protected void |
updateSafeInsets() |
void |
willPause(org.robovm.apple.glkit.GLKViewController controller,
boolean pause) |
public IOSGraphics(IOSApplication app, IOSApplicationConfiguration config, IOSInput input, boolean useGLES30)
public void resume()
public void pause()
public void draw(org.robovm.apple.glkit.GLKView view,
org.robovm.apple.coregraphics.CGRect rect)
public void update(org.robovm.apple.glkit.GLKViewController controller)
public void willPause(org.robovm.apple.glkit.GLKViewController controller,
boolean pause)
public com.badlogic.gdx.graphics.GL20 getGL20()
public void setGL20(com.badlogic.gdx.graphics.GL20 gl20)
public boolean isGL30Available()
public com.badlogic.gdx.graphics.GL30 getGL30()
public void setGL30(com.badlogic.gdx.graphics.GL30 gl30)
public int getWidth()
public int getHeight()
public int getBackBufferWidth()
public int getBackBufferHeight()
public float getBackBufferScale()
getBackBufferScale in interface com.badlogic.gdx.GraphicsgetBackBufferScale in class com.badlogic.gdx.AbstractGraphicspublic float getDeltaTime()
public int getFramesPerSecond()
public com.badlogic.gdx.Graphics.GraphicsType getType()
public com.badlogic.gdx.graphics.glutils.GLVersion getGLVersion()
public float getPpiX()
public float getPpiY()
public float getPpcX()
public float getPpcY()
public float getDensity()
getDensity in interface com.badlogic.gdx.GraphicsgetDensity in class com.badlogic.gdx.AbstractGraphicspublic boolean supportsDisplayModeChange()
public com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes()
public com.badlogic.gdx.Graphics.DisplayMode getDisplayMode()
public com.badlogic.gdx.Graphics.Monitor getPrimaryMonitor()
public com.badlogic.gdx.Graphics.Monitor getMonitor()
public com.badlogic.gdx.Graphics.Monitor[] getMonitors()
public com.badlogic.gdx.Graphics.DisplayMode[] getDisplayModes(com.badlogic.gdx.Graphics.Monitor monitor)
public com.badlogic.gdx.Graphics.DisplayMode getDisplayMode(com.badlogic.gdx.Graphics.Monitor monitor)
protected void updateSafeInsets()
public int getSafeInsetLeft()
public int getSafeInsetTop()
public int getSafeInsetBottom()
public int getSafeInsetRight()
public boolean setFullscreenMode(com.badlogic.gdx.Graphics.DisplayMode displayMode)
public boolean setWindowedMode(int width,
int height)
public void setTitle(java.lang.String title)
public void setUndecorated(boolean undecorated)
public void setResizable(boolean resizable)
public void setVSync(boolean vsync)
public void setForegroundFPS(int fps)
fps - the preferred fpspublic com.badlogic.gdx.Graphics.BufferFormat getBufferFormat()
public boolean supportsExtension(java.lang.String extension)
public void setContinuousRendering(boolean isContinuous)
public boolean isContinuousRendering()
public void requestRendering()
public boolean isFullscreen()
public long getFrameId()
public com.badlogic.gdx.graphics.Cursor newCursor(com.badlogic.gdx.graphics.Pixmap pixmap,
int xHotspot,
int yHotspot)
public void setCursor(com.badlogic.gdx.graphics.Cursor cursor)
public void setSystemCursor(com.badlogic.gdx.graphics.Cursor.SystemCursor systemCursor)