Interface GraphicsManager

All Superinterfaces:
AutoCloseable, Closeable, Renderer

public interface GraphicsManager extends Closeable, Renderer
The GraphicsManager interface is a wrapper around the platform's graphics API. It's a simple class that provides a few functions for drawing to the screen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    init(PlatformInit platformInit)
    Initializes the platform graphics
    void
    The function sets the position of the camera in a 2D space.
    boolean
    Returns true if the user has requested that the application close.
    void
    start(Color clearColor)
     
    void
    This function updates the icon the window using a texture.

    Methods inherited from interface java.io.Closeable

    close

    Methods inherited from interface com.xebisco.yield.rendering.Renderer

    draw
  • Method Details

    • init

      void init(PlatformInit platformInit)
      Initializes the platform graphics
      Parameters:
      platformInit - This is a struct that contains the parameters that will be used to init the graphics.
    • updateWindowIcon

      void updateWindowIcon(Texture icon, FileIOManager ioManager)
      This function updates the icon the window using a texture.
      Parameters:
      icon - The "icon" parameter is a Texture object that represents the image that will be used as the icon for the window. This function updates the icon of the window to the specified texture.
      ioManager - The ioManager used to load the window icon file.
    • shouldClose

      boolean shouldClose()
      Returns true if the user has requested that the application close.
      Returns:
      A boolean value.
    • start

      void start(Color clearColor)
    • finish

      void finish()
    • setCamera

      void setCamera(Transform2D camera)
      The function sets the position of the camera in a 2D space.
      Parameters:
      camera - The parameter "camera" is a Vector2D object that represents the position of the camera in a 2D space.