NAME
Graphics::Raylib::Util - Utility functions for use With Graphics::Raylib:XS
VERSION
version 0.008
SYNOPSIS
use Graphics::Raylib::Util;
# returns Vector2 or 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
Vector2
orVector3
depending on number of arguments. Croaks otherwise. - rectangle(x => $x, y => $y, width => $width, height => $height)
-
Constructs a
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.