NAME

Graphics::Raylib::Util - Utility functions for use With Graphics::Raylib:XS

VERSION

version 0.012

SYNOPSIS

use Graphics::Raylib::Util;

# returns Graphics::Raylib::XS::{Vector2,Vector3} depending on scalar @coords
my $vector = Graphics::Raylib::Util::vector(@coords);

DESCRIPTION

Raylib deals a lot in value-passed structs. This module builds these structs.

METHODS AND ARGUMENTS

vector(@coords)

Constructs a Graphics::Raylib::XS::Vector2 or Graphics::Raylib::XS::Vector3 depending on number of arguments. Croaks otherwise.

rectangle(x => $x, y => $y, width => $width, height => $height)

Constructs a Graphics::Raylib::XS::Rectangle.

GIT REPOSITORY

http://github.com/athreef/Graphics-Raylib

SEE ALSO

Graphics::Raylib Graphics::Raylib::Color

AUTHOR

Ahmad Fatoum <athreef@cpan.org>, http://a3f.at

COPYRIGHT AND LICENSE

Copyright (C) 2017 Ahmad Fatoum

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.