Raylib-FFI
view release on metacpan or search on metacpan
lib/Raylib/FFI.pm view on Meta::CPAN
Get current screen width.
=head2 GetScreenHeight() : int
Get current screen height.
=head2 GetRenderWidth() : int
Get current render width (it considers HiDPI).
=head2 GetRenderHeight() : int
Get current render height (it considers HiDPI).
=head2 GetMonitorCount() : int
Get number of connected monitors.
=head2 GetCurrentMonitor() : int
Get current connected monitor.
=head2 GetMonitorPosition( $monitor ) : Raylib::FFI::Vector2D
Get specified monitor position in screen space.
=head2 GetMonitorWidth( $monitor ) : int
Get specified monitor width (current video mode used by monitor).
=head2 GetMonitorHeight( $monitor ) : int
Get specified monitor height (current video mode used by monitor).
=head2 GetMonitorPhysicalWidth( $monitor ) : int
Get specified monitor physical width in millimetres.
=head2 GetMonitorPhysicalHeight( $monitor ) : int
Get specified monitor physical height in millimetres.
=head2 GetMonitorRefreshRate( $monitor ) : int
Get specified monitor refresh rate.
=head2 GetWindowPosition() : Raylib::FFI::Vector2D
Get window position XY on monitor.
=head2 GetWindowScaleDPI() : Raylib::FFI::Vector2D
Get window scale factor on HiDPI monitors.
=head2 GetMonitorName( $monitor ) : string
Get the human-readable, UTF-8 encoded name of the monitor.
=head2 SetClipboardText( $text )
Set clipboard text content.
=head2 GetClipboardText() : string
Get clipboard text content.
=head2 GetClipboardImage() : Raylib::FFI::Image
Get clipboard image content.
=head2 EnableEventWaiting()
Enable waiting for events on EndDrawing, automatic event polling.
=head2 DisableEventWaiting()
Disable waiting for events on EndDrawing, manual event polling.
=head2 ShowCursor()
Show cursor.
=head2 HideCursor()
Hide cursor.
=head2 IsCursorHidden() : bool
Check if cursor is not visible.
=head2 EnableCursor()
Enable cursor (unlock cursor).
=head2 DisableCursor()
Disable cursor (lock cursor).
=head2 IsCursorOnScreen() : bool
Check if cursor is on the screen.
=head2 ClearBackground( $color )
Set background color (framebuffer clear color).
=head2 BeginDrawing()
Setup canvas (framebuffer) to start drawing
=head2 EndDrawing()
End canvas drawing and swap buffers (double buffering).
=head2 BeginMode2D( $camera )
Begin 2D mode with custom camera (2D).
=head2 EndMode2D()
Ends 2D mode with custom camera.
=head2 BeginMode3D( $camera )
Begin 3D mode with custom camera (3D).
=head2 EndMode3D()
Ends 3D mode and returns to default 2D orthographic mode.
( run in 0.416 second using v1.01-cache-2.11-cpan-2398b32b56e )