Function set_gfx_mode

  • Allegro

    Enables graphics.

    Parameters

    • card: number

      Graphics mode, fullscreen attatches a listener to fullscreen when clicked

    • w: number

      canvas width in pixels, 0 for don't care (will use actual canvas size)

    • h: number

      canvas height in pixels, 0 for don't care (will use actual canvas size)

    • v_w: number = 0

      Video width (not supported)

    • v_h: number = 0

      video height (not supported)

    Returns number

    0 on success or -1 on error

    1.9.7

    Remarks

    This function should be before calling any other graphics routines. It selects the canvas element for rendering and sets the resolution. It also loads the default font.

Generated using TypeDoc