![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
Classes | |
| class | SdlEvent |
| Sdl Event class. More... | |
| class | SdlKeyboard |
| Sdl Keyboard class. More... | |
| class | SdlMouse |
| Sdl Mouse class. More... | |
| class | SdlModel |
| handle 3d model More... | |
| class | SdlPolygon |
| handle a polygon More... | |
| class | SdlSprite |
| Used to handle images. More... | |
| class | SdlCamera |
| class | SdlWindow |
| Sdl Window class. More... | |
Functions | |
| SdlEvent::SdlEvent () | |
| Construct a new Sdl Event object. | |
| SdlEvent::~SdlEvent () | |
| Destroy the Sdl Event object. | |
| SdlKeyboard::SdlKeyboard (graphic::IEvent *event) | |
| Construct a new Sdl Keyboard object. | |
| SdlKeyboard::~SdlKeyboard () | |
| Destroy the Sdl Keyboard object. | |
| std::vector< Keys > | SdlKeyboard::whichKey () const override |
| which key is set | |
| bool | SdlKeyboard::isKeyPressed (Keys key) const override |
| check if the key is pressed | |
| bool | SdlKeyboard::isKeyDown (Keys key) const override |
| check if the key is down | |
| bool | SdlKeyboard::isKeyReleased (Keys key) const override |
| check if the key is released | |
| bool | SdlKeyboard::isKeyUp (Keys key) const override |
| check if the key is up | |
| void | SdlKeyboard::update () override |
| update the keyboard | |
| SdlMouse::SdlMouse (graphic::IEvent *event) | |
| Construct a new Sdl Mouse object. | |
| SdlMouse::~SdlMouse () | |
| Destroy the Sdl Mouse object. | |
| bool | SdlMouse::isButtonPressed (Buttons key) const override |
| notice if a button is pressed | |
| bool | SdlMouse::isButtonDown (Buttons key) const override |
| notice if a button is down | |
| bool | SdlMouse::isButtonReleased (Buttons key) const override |
| notice if a button is released | |
| bool | SdlMouse::isButtonUp (Buttons key) const override |
| notice if a button is up | |
| __v2f_t | SdlMouse::getPosition () const override |
| Get the Position object. | |
| void | SdlMouse::setPosition (__v2f_t position) override |
| Set the Position object. | |
| float | SdlMouse::GetMouseWheelMove () const override |
| Get the Mouse Wheel Move object. | |
| void | SdlMouse::update () override |
| update the mouse | |
| __v3f_t | SdlModel::getPosition () const override |
| void | SdlModel::setPosition (__v3f_t position) override |
| SdlPolygon::SdlPolygon (std::vector< __v2f_t > points) | |
| Construct a new Sdl Polygon object. | |
| SdlPolygon::~SdlPolygon () | |
| Destroy the Sdl Polygon object. | |
| bool | SdlPolygon::isReady () const override |
| check if the polygon is ready | |
| __v2f_t | SdlPolygon::getPosition () const override |
| Get the Position object. | |
| void | SdlPolygon::setPosition (__v2f_t position) override |
| Set the Position object. | |
| __color_t | SdlPolygon::getColor () const override |
| Get the Color object. | |
| void | SdlPolygon::setColor (__color_t color) override |
| Set the Color object. | |
| std::vector< __v2f_t > | SdlPolygon::getPoints () const override |
| Get the Points object. | |
| SdlSprite::SdlSprite (std::string path) | |
| Construct a new Sdl Sprite object. | |
| SdlSprite::~SdlSprite () override | |
| Destroy the Sdl Sprite object. | |
| bool | SdlSprite::isReady () const override |
| check if the sprite is ready | |
| __v4f_t | SdlSprite::getBounds () const override |
| Get the Bounds object. | |
| void | SdlSprite::setCrop (__v4f_t rect) override |
| Set the Crop object. | |
| __v2f_t | SdlSprite::getPosition () const override |
| Get the Position object. | |
| void | SdlSprite::setPosition (__v2f_t position) override |
| Set the Position object. | |
| float | SdlSprite::getRotation () const override |
| Get the Rotation object. | |
| void | SdlSprite::setRotation (float angle, bool isRad=false) override |
| Set the Rotation object. | |
| __v2f_t | SdlSprite::getSize () const override |
| Get the Size object. | |
| void | SdlSprite::setSize (__v2f_t size) override |
| Set the Size object. | |
| graphic::IWindow * | createWindow (__int32_t screenWidth, __int32_t screenHeight, std::string title) |
| create Sdl window | |
| void | deleteWindow (graphic::IWindow *window) |
| delete Sdl window | |
| graphic::ICamera * | createCamera (__v3f_t position) |
| create Sdl camera | |
| void | deleteCamera (graphic::ICamera *camera) |
| delete Sdl camera | |
| graphic::IEvent * | createEvent () |
| Event. | |
| void | deleteEvent (graphic::IEvent *event) |
| delete Sdl event | |
| graphic::IKeyboard * | createKeyboard (graphic::IEvent *event) |
| Keyboard. | |
| void | deleteKeyboard (graphic::IKeyboard *keyboard) |
| delete Sdl keyboard | |
| graphic::IMouse * | createMouse (graphic::IEvent *event) |
| Mouse. | |
| void | deleteMouse (graphic::IMouse *mouse) |
| delete Sdl mouse | |
| graphic::IPolygon * | createPolygon (std::vector< __v2f_t > points) |
| create Sdl polygon | |
| void | deletePolygon (graphic::IPolygon *polygon) |
| delete Sdl polygon | |
| graphic::ISprite * | createSprite (std::string sprite) |
| create Sdl sprite | |
| void | deleteSprite (graphic::ISprite *sprite) |
| delete Sdl sprite | |
| graphic::IModel * | createModel () |
| create Sdl model | |
| void | deleteModel (graphic::IModel *model) |
| delete Sdl model | |
| const char * | getName () |
| get the name of the library | |
| const char * | getType () |
| get the type of the library | |
| SdlCamera::SdlCamera () | |
| Construct a new Sdl Camera object. | |
| SdlCamera::~SdlCamera () | |
| Destroy the Sdl Camera object. | |
| float | SdlCamera::getFov () const override |
| Get the Fov object. | |
| void | SdlCamera::setFov (float fov) override |
| Set the Fov object. | |
| ICamera::Mode | SdlCamera::getMode () const override |
| Get the Mode object. | |
| void | SdlCamera::setMode (ICamera::Mode mode) override |
| Set the Mode object. | |
| __v3f_t | SdlCamera::getPosition () const override |
| Get the Position object. | |
| void | SdlCamera::setPosition (__v3f_t position) override |
| Set the Position object. | |
| ICamera::Projection | SdlCamera::getProjection () const override |
| Get the Projection object. | |
| void | SdlCamera::setProjection (ICamera::Projection projection) override |
| Set the Projection object. | |
| __v3f_t | SdlCamera::getTarget () const override |
| Get the Target object. | |
| void | SdlCamera::setTarget (__v3f_t target) override |
| Set the Target object. | |
| __v3f_t | SdlCamera::getUp () const override |
| Get the Up object. | |
| void | SdlCamera::setUp (__v3f_t up) override |
| Set the Up object. | |
| SdlWindow::SdlWindow (__int32_t screenWidth, __int32_t screenHeight, std::string title) | |
| Construct a new Sdl Window object. | |
| SdlWindow::~SdlWindow () | |
| Destroy the Sdl Window object. | |
| void | SdlWindow::linkEvent (graphic::IEvent *event) override |
| link an event to the window | |
| bool | SdlWindow::isOpen () override |
| notice if the window is open | |
| void | SdlWindow::close () override |
| close the window | |
| void | SdlWindow::setFrameLimit (__int32_t limit) override |
| Set the Frame Limit object. | |
| __int32_t | SdlWindow::getDelta () override |
| Get the Delta object. | |
| void | SdlWindow::beginDraw () override |
| begin the 2D drawing | |
| void | SdlWindow::drawPoly (graphic::IPolygon *polygon) override |
| draw a polygon | |
| void | SdlWindow::drawSprite (graphic::ISprite *sprite) override |
| draw a sprite | |
| void | SdlWindow::endDraw () override |
| end the 2D drawing | |
| void | SdlWindow::beginMode3 (graphic::ICamera *camera) override |
| allowing to draw 3D on the window | |
| virtual void | SdlWindow::drawModel (graphic::IModel *model) override |
| draw a model | |
| void | SdlWindow::endMode3 () override |
| end the 3D drawing | |
| bool | SdlWindow::pollEvent () override |
| poll the event | |
| void | SdlWindow::eventClose () override |
| close the window | |
Variables | |
| SDL_Event | SdlEvent::_event |
| SdlEvent * | SdlKeyboard::_event |
| const std::unordered_map< IKeyboard::Keys, int > | SdlKeyboard::_keys |
| SdlEvent * | SdlMouse::_event |
| __color_t | SdlPolygon::_color |
| __v2f_t | SdlPolygon::_position |
| std::vector< SDL_Vertex > | SdlPolygon::_points |
| std::vector< graphic::triangle_t > | SdlPolygon::_triangles |
| SDL_Surface * | SdlSprite::_surface |
| SDL_Texture * | SdlSprite::_texture |
| __v2f_t | SdlSprite::_position |
| SDL_Rect | SdlSprite::_crop |
| float | SdlSprite::_rotation |
| bool | SdlWindow::is_open |
| SDL_Window * | SdlWindow::_window |
| SDL_Renderer * | SdlWindow::_renderer |
| SdlEvent * | SdlWindow::_event |
| __int32_t | SdlWindow::_frameLimit |
| __uint64_t | SdlWindow::_start |
| __uint64_t | SdlWindow::_end |
| float | SdlWindow::_delta |
Friends | |
| class | SdlWindow |
| class | SdlKeyboard |
| class | SdlMouse |
| class | SdlWindow |
| class | SdlWindow |
| class | SdlWindow |
| class | SdlWindow |
|
inlineoverridevirtual |
begin the 2D drawing
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 Sdl 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 Sdl camera
| camera |
| void deleteEvent | ( | graphic::IEvent * | event | ) |
delete Sdl event
| event |
| void deleteKeyboard | ( | graphic::IKeyboard * | keyboard | ) |
delete Sdl keyboard
| keyboard |
| void deleteModel | ( | graphic::IModel * | model | ) |
delete Sdl model
| model |
| void deleteMouse | ( | graphic::IMouse * | mouse | ) |
delete Sdl mouse
| mouse |
| void deletePolygon | ( | graphic::IPolygon * | polygon | ) |
delete Sdl polygon
| polygon |
| void deleteSprite | ( | graphic::ISprite * | sprite | ) |
delete Sdl sprite
| sprite |
| void deleteWindow | ( | graphic::IWindow * | window | ) |
delete Sdl window
| window |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
inlineoverridevirtual |
end the 2D drawing
Implements graphic::IWindow.
|
inlineoverridevirtual |
end the 3D drawing
Implements graphic::IWindow.
|
inlineoverridevirtual |
close 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 |
|
inline |
Construct a new Sdl Keyboard object.
| event |
|
inline |
Construct a new Sdl Mouse object.
| event |
|
inline |
Construct a new Sdl Polygon object.
| points |
|
inline |
Construct a new Sdl Sprite object.
| path |
|
inline |
Construct a new Sdl Window object.
| screenWidth | |
| screenHeight | |
| title |
|
inlineoverridevirtual |
|
inlineoverride |
Set the Crop object.
| rect |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverride |
Set the Mode object.
| mode |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements graphic::IModel.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverride |
Set the Position object.
| position |
|
inlineoverride |
Set the Projection object.
| projection |
|
inlineoverridevirtual |
|
inlineoverride |
Set the Size object.
| size |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
update the keyboard
Implements graphic::IKeyboard.
|
inlineoverridevirtual |
update the mouse
Implements graphic::IMouse.
|
inlineoverridevirtual |