Skip to content

Graphics

0880 edited this page Apr 5, 2024 · 1 revision

Methods

getWidth()

  • Returns the width of the graphics viewport.

getHeight()

  • Returns the height of the graphics viewport.

setWindowMode(int width, int height)

  • Sets the windowed mode with the specified width and height.

setFullscreenMode()

  • Sets the fullscreen mode.

isFullscreen()

  • Returns true if the application is running in fullscreen mode, false otherwise.

setTitle(String title)

  • Sets the title of the application window.

setResizable(boolean resizable)

  • Sets whether the application window is resizable.

setUndecorated(boolean undecorated)

  • Sets whether the application window is undecorated.

setVSync(boolean vsync)

  • Sets vertical synchronization.

setForegroundFPS(int fps)

  • Sets the maximum foreground (rendering) frame rate.

setCursor(Cursor cursor)

  • Sets the system cursor appearance based on the provided enum value.

Clone this wiki locally