Raylib-FFI

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    Get current screen width.

 GetScreenHeight() : int

    Get current screen height.

 GetRenderWidth() : int

    Get current render width (it considers HiDPI).

 GetRenderHeight() : int

    Get current render height (it considers HiDPI).

 GetMonitorCount() : int

    Get number of connected monitors.

 GetCurrentMonitor() : int

    Get current connected monitor.

 GetMonitorPosition( $monitor ) : Raylib::FFI::Vector2D

    Get specified monitor position in screen space.

 GetMonitorWidth( $monitor ) : int

    Get specified monitor width (current video mode used by monitor).

 GetMonitorHeight( $monitor ) : int

    Get specified monitor height (current video mode used by monitor).

 GetMonitorPhysicalWidth( $monitor ) : int

    Get specified monitor physical width in millimetres.

 GetMonitorPhysicalHeight( $monitor ) : int

    Get specified monitor physical height in millimetres.

 GetMonitorRefreshRate( $monitor ) : int

    Get specified monitor refresh rate.

 GetWindowPosition() : Raylib::FFI::Vector2D

    Get window position XY on monitor.

 GetWindowScaleDPI() : Raylib::FFI::Vector2D

    Get window scale factor on HiDPI monitors.

 GetMonitorName( $monitor ) : string

    Get the human-readable, UTF-8 encoded name of the monitor.

 SetClipboardText( $text )

    Set clipboard text content.

 GetClipboardText() : string

    Get clipboard text content.

 GetClipboardImage() : Raylib::FFI::Image

    Get clipboard image content.

 EnableEventWaiting()

    Enable waiting for events on EndDrawing, automatic event polling.

 DisableEventWaiting()

    Disable waiting for events on EndDrawing, manual event polling.

 ShowCursor()

    Show cursor.

 HideCursor()

    Hide cursor.

 IsCursorHidden() : bool

    Check if cursor is not visible.

 EnableCursor()

    Enable cursor (unlock cursor).

 DisableCursor()

    Disable cursor (lock cursor).

 IsCursorOnScreen() : bool

    Check if cursor is on the screen.

 ClearBackground( $color )

    Set background color (framebuffer clear color).

 BeginDrawing()

    Setup canvas (framebuffer) to start drawing

 EndDrawing()

    End canvas drawing and swap buffers (double buffering).

 BeginMode2D( $camera )

    Begin 2D mode with custom camera (2D).

 EndMode2D()

    Ends 2D mode with custom camera.

 BeginMode3D( $camera )

    Begin 3D mode with custom camera (3D).

 EndMode3D()

    Ends 3D mode and returns to default 2D orthographic mode.



( run in 1.041 second using v1.01-cache-2.11-cpan-2398b32b56e )