![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
Classes | |
class | RayEvent |
Raylib Event class. More... | |
class | RayKeyboard |
class | RayMouse |
Raylib Mouse class. More... | |
class | RayModel |
Raylib Model class. More... | |
class | RayPolygon |
class | RaySprite |
Raylib Sprite class. More... | |
class | RayCamera |
Raylib Camera class. More... | |
class | RayWindow |
Raylib Window class. More... | |
Functions | |
RayKeyboard::RayKeyboard (graphic::IEvent *event) | |
std::vector< Keys > | RayKeyboard::whichKey () const override |
Be careful, this function will check every key of the keyboard and return an array of keys that are pressed it's not recommended to use this function in a loop, use isKeyPressed() instead. it's efficient for key detection & binding. | |
bool | RayKeyboard::isKeyPressed (Keys key) const override |
Check if the key is pressed. | |
bool | RayKeyboard::isKeyDown (Keys key) const override |
Check if the key is down. | |
bool | RayKeyboard::isKeyReleased (Keys key) const override |
Check if the key is released. | |
bool | RayKeyboard::isKeyUp (Keys key) const override |
Check if the key is up. | |
void | RayKeyboard::update () override |
Update the keyboard. | |
RayMouse::RayMouse (graphic::IEvent *event) | |
bool | RayMouse::isButtonPressed (Buttons key) const override |
notice if a button is pressed | |
bool | RayMouse::isButtonDown (Buttons key) const override |
notice if a button is down | |
bool | RayMouse::isButtonReleased (Buttons key) const override |
notice if a button is released | |
bool | RayMouse::isButtonUp (Buttons key) const override |
notice if a button is up | |
__v2f_t | RayMouse::getPosition () const override |
get the position of the mouse | |
void | RayMouse::setPosition (__v2f_t position) override |
set the position of the mouse | |
float | RayMouse::GetMouseWheelMove () const override |
get the mouse wheel move | |
void | RayMouse::update () override |
set the mouse wheel move | |
RayModel::RayModel () | |
Construct a new Ray Model object. | |
__v3f_t | RayModel::getPosition () const override |
void | RayModel::setPosition (__v3f_t position) override |
RayPolygon::RayPolygon (std::vector< __v2f_t > points) | |
bool | RayPolygon::isReady () const override |
Get the Position object. | |
__v2f_t | RayPolygon::getPosition () const override |
Get the Position object. | |
void | RayPolygon::setPosition (__v2f_t position) override |
Set the Position object. | |
__color_t | RayPolygon::getColor () const override |
Get the Color object. | |
void | RayPolygon::setColor (__color_t color) override |
Set the Color object. | |
std::vector< __v2f_t > | RayPolygon::getPoints () const override |
Get the Points object. | |
RaySprite::RaySprite (std::string path) | |
bool | RaySprite::isReady () const override |
notice if the sprite is ready | |
__v4f_t | RaySprite::getBounds () const override |
give the bounds of the sprite | |
void | RaySprite::setCrop (__v4f_t rect) override |
__v2f_t | RaySprite::getPosition () const override |
Get the Position object. | |
void | RaySprite::setPosition (__v2f_t position) override |
float | RaySprite::getRotation () const override |
Get the Rotation object. | |
void | RaySprite::setRotation (float angle, bool isRad=false) override |
Set the Rotation object. | |
__v2f_t | RaySprite::getSize () const override |
Get the Sprite size. | |
void | RaySprite::setSize (__v2f_t size) override |
graphic::IWindow * | createWindow (__int32_t screenWidth, __int32_t screenHeight, std::string title) |
create a window | |
void | deleteWindow (graphic::IWindow *window) |
delete a window | |
graphic::ICamera * | createCamera (__v3f_t position) |
create a camera | |
void | deleteCamera (graphic::ICamera *camera) |
delete a camera | |
graphic::IEvent * | createEvent () |
Event. | |
void | deleteEvent (graphic::IEvent *event) |
delete an event | |
graphic::IKeyboard * | createKeyboard (graphic::IEvent *event) |
create a keyboard | |
void | deleteKeyboard (graphic::IKeyboard *keyboard) |
delete a keyboard | |
graphic::IMouse * | createMouse (graphic::IEvent *event) |
create a mouse | |
void | deleteMouse (graphic::IMouse *mouse) |
delete a mouse | |
graphic::IPolygon * | createPolygon (std::vector< __v2f_t > points) |
Graphics. | |
void | deletePolygon (graphic::IPolygon *polygon) |
delete a polygon | |
graphic::ISprite * | createSprite (std::string sprite) |
create a sprite | |
void | deleteSprite (graphic::ISprite *sprite) |
delete a sprite | |
graphic::IModel * | createModel () |
create a model | |
void | deleteModel (graphic::IModel *model) |
delete a model | |
const char * | getName () |
get the name of the library | |
const char * | getType () |
get the type of the library | |
RayCamera::RayCamera () | |
Construct a new Ray Camera object. | |
RayCamera::~RayCamera () | |
Destroy the Ray Camera object. | |
float | RayCamera::getFov () const override |
Get the Fov object. | |
void | RayCamera::setFov (float fov) override |
Set the Fov object. | |
ICamera::Mode | RayCamera::getMode () const override |
Get the Mode object. | |
void | RayCamera::setMode (ICamera::Mode mode) override |
Set the Mode object. | |
__v3f_t | RayCamera::getPosition () const override |
Get the Position object. | |
void | RayCamera::setPosition (__v3f_t position) override |
Set the Position object. | |
ICamera::Projection | RayCamera::getProjection () const override |
Get the Projection object. | |
void | RayCamera::setProjection (ICamera::Projection projection) override |
Set the Projection object. | |
__v3f_t | RayCamera::getTarget () const override |
Get the Target object. | |
void | RayCamera::setTarget (__v3f_t target) override |
Set the Target object. | |
__v3f_t | RayCamera::getUp () const override |
Get the Up object. | |
void | RayCamera::setUp (__v3f_t up) override |
Set the Up object. | |
RayWindow::RayWindow (__int32_t screenWidth, __int32_t screenHeight, std::string title) | |
bool | RayWindow::isOpen () override |
notice if the window is open | |
void | RayWindow::close () override |
close the window | |
void | RayWindow::linkEvent (graphic::IEvent *event) override |
link an event to the window | |
bool | RayWindow::pollEvent () override |
poll the event | |
void | RayWindow::eventClose () override |
update the window | |
void | RayWindow::setFrameLimit (__int32_t limit) override |
Set the Frame Limit object. | |
__int32_t | RayWindow::getDelta () override |
Get the Delta object. | |
void | RayWindow::beginDraw () override |
allowing to draw 2D on the window | |
void | RayWindow::endDraw () override |
end the 2D drawing | |
virtual void | RayWindow::drawPoly (graphic::IPolygon *polygon) override |
draw a polygon | |
virtual void | RayWindow::drawSprite (graphic::ISprite *sprite) override |
draw a sprite | |
void | RayWindow::beginMode3 (graphic::ICamera *camera) override |
allowing to draw 3D on the window | |
virtual void | RayWindow::drawModel (graphic::IModel *model) override |
draw a model | |
void | RayWindow::endMode3 () override |
end the 3D drawing | |
Variables | |
const std::unordered_map< IKeyboard::Keys, int > | RayKeyboard::_keys |
Vector3 | RayModel::_position |
Vector3 | RayModel::_size |
Color | RayPolygon::_color |
Vector2 | RayPolygon::_position |
std::vector< Vector2 > | RayPolygon::_points |
std::vector< graphic::triangle_t > | RayPolygon::_triangles |
Texture2D | RaySprite::_texture |
Vector2 | RaySprite::_position |
Vector2 | RaySprite::_scale |
Rectangle | RaySprite::_crop |
float | RaySprite::_rotation |
Camera | RayCamera::_camera |
CameraMode | RayCamera::_mode |
Friends | |
class | RayKeyboard |
class | RayMouse |
class | RayWindow |
class | RayWindow |
class | RayWindow |
class | RayWindow |
class | RayWindow |
|
inlineoverridevirtual |
allowing to draw 2D on the window
Implements graphic::IWindow.
|
overridevirtual |
|
inlineoverridevirtual |
close the window
Implements graphic::IWindow.
graphic::ICamera * createCamera | ( | __v3f_t | position | ) |
graphic::IEvent * createEvent | ( | ) |
graphic::IKeyboard * createKeyboard | ( | graphic::IEvent * | event | ) |
graphic::IModel * createModel | ( | ) |
create a model
graphic::IMouse * createMouse | ( | graphic::IEvent * | event | ) |
graphic::IPolygon * createPolygon | ( | std::vector< __v2f_t > | points | ) |
graphic::ISprite * createSprite | ( | std::string | sprite | ) |
graphic::IWindow * createWindow | ( | __int32_t | screenWidth, |
__int32_t | screenHeight, | ||
std::string | title ) |
void deleteCamera | ( | graphic::ICamera * | camera | ) |
delete a camera
camera |
void deleteEvent | ( | graphic::IEvent * | event | ) |
delete an event
event |
void deleteKeyboard | ( | graphic::IKeyboard * | keyboard | ) |
delete a keyboard
keyboard |
void deleteModel | ( | graphic::IModel * | model | ) |
delete a model
model |
void deleteMouse | ( | graphic::IMouse * | mouse | ) |
delete a mouse
mouse |
void deletePolygon | ( | graphic::IPolygon * | polygon | ) |
delete a polygon
polygon |
void deleteSprite | ( | graphic::ISprite * | sprite | ) |
delete a sprite
sprite |
void deleteWindow | ( | graphic::IWindow * | window | ) |
delete a window
window |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
inlineoverridevirtual |
end the 2D drawing
Implements graphic::IWindow.
|
overridevirtual |
end the 3D drawing
Implements graphic::IWindow.
|
inlineoverridevirtual |
update the window
Implements graphic::IWindow.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
const char * getName | ( | ) |
get the name of the library
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
const char * getType | ( | ) |
get the type of the library
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverride |
Set the Mode object.
mode |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverride |
Set the Projection object.
projection |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Update the keyboard.
Implements graphic::IKeyboard.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Be careful, this function will check every key of the keyboard and return an array of keys that are pressed it's not recommended to use this function in a loop, use isKeyPressed() instead. it's efficient for key detection & binding.
Implements graphic::IKeyboard.