Graphics::Raylib::Util - Utility functions for use With Graphics::Raylib:XS
version 0.004
use Graphics::Raylib::Util; # returns Vector2 or Vector3 depending on scalar @coords my $vector = Graphics::Raylib::Util::vector(@coords);
Raylib deals a lot in value-passed structs. This module builds these structs.
Constructs a Vector2 or Vector3 depending on number of arguments. Croaks otherwise.
Vector2
Vector3
Constructs a Rectangle.
Rectangle
http://github.com/athreef/Graphics-Raylib
Graphics::Raylib Graphics::Raylib::Color
Ahmad Fatoum <athreef@cpan.org>, http://a3f.at
<athreef@cpan.org>
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.
To install Graphics::Raylib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graphics::Raylib
CPAN shell
perl -MCPAN -e shell install Graphics::Raylib
For more information on module installation, please visit the detailed CPAN module installation guide.