|
|
virtual | ~IGraphicalLib ()=default |
| | Destroy the IGraphicalLib object.
|
| |
| virtual auto | initWindow (const int screenWidth, const int screenHeight, std::string title, const int framerate) -> void=0 |
| | A method to initialize a window object. More...
|
| |
|
virtual auto | closeWindow () -> void=0 |
| | A method to close the window.
|
| |
|
virtual auto | clearScreen () -> void=0 |
| | A method to clear the window.
|
| |
|
virtual auto | startDrawingWindow () -> void=0 |
| | Start drawing in the window.
|
| |
|
virtual auto | endDrawingWindow () -> void=0 |
| | Stop drawing in the window.
|
| |
| virtual auto | windowShouldClose () -> bool=0 |
| | Check if window should close. More...
|
| |
| virtual auto | drawSprite (MyTexture const &texture, std::array< float, 4 > const &rectSource, std::array< float, 4 > const &rectDest, std::pair< float, float > const &origin, float const &rotation, float const &scale) -> void=0 |
| | Draw a sprite. More...
|
| |
| virtual auto | checkMouseCollision (Position const &position, float const &x, float const &y, float const &height, float const &width) -> bool=0 |
| | Check the mouse collision. More...
|
| |
| virtual auto | IsLeftMouseButtonPressed () -> bool=0 |
| | Check if the left mouse button is pressed. More...
|
| |
| virtual auto | IsLeftMouseButtonReleased () -> bool=0 |
| | Check if the left mouse button is released. More...
|
| |
| virtual auto | getMousePosition () -> Position=0 |
| | Get the Mouse Position object. More...
|
| |
| virtual auto | drawText (std::string const &text, Position const &pos, std::size_t const &fontSize, std::array< float, 4 > const &color) -> void=0 |
| | Draw a text. More...
|
| |
| virtual auto | createColor (std::array< float, 4 > const &array) -> Color=0 |
| | Create a Color object. More...
|
| |
| virtual auto | initAudio () -> void=0 |
| | Init the audio device. More...
|
| |
| virtual auto | closeAudio () -> void=0 |
| | Close the audio device. More...
|
| |
| virtual auto | playASound (MySound &sound) -> void=0 |
| | Play a sound. More...
|
| |
| virtual auto | playASoundMulti (MySound &sound) -> void=0 |
| | Play a sound with a multichannel buffer pool. More...
|
| |
| virtual auto | playAMusic (MyMusic &music) -> void=0 |
| | Play a music. More...
|
| |
| virtual auto | updateAMusic (MyMusic &music) -> void=0 |
| | Update the music. More...
|
| |
|
virtual auto | getMusicVolume (MyMusic &music) -> float=0 |
| |
|
virtual auto | setMusicVolume (MyMusic &music, float volume) -> void=0 |
| |
| virtual auto | hasBeenPressed (int key) -> bool=0 |
| | Check if a key has been pressed. More...
|
| |
| virtual auto | isBeingPressed (int key) -> bool=0 |
| | Check if a key is being pressed. More...
|
| |
| virtual auto | hasBeenReleased (int key) -> bool=0 |
| | Check if a key has been released. More...
|
| |
| virtual auto | isNotBeingPressed (int key) -> bool=0 |
| | Check if a key is not being pressed. More...
|
| |
| virtual auto | setExitKey (int key) -> void=0 |
| | Set the Exit Key object. More...
|
| |
| virtual auto | getPressedKeycode () -> int=0 |
| | Get the Pressed Keycode object. More...
|
| |
| virtual auto | getPressedCharcode () -> int=0 |
| | Get the Pressed Charcode object. More...
|
| |