R-Type
R-Type project
KapEngine::Graphical::LegacyGraphicalLib Class Reference
Inheritance diagram for KapEngine::Graphical::LegacyGraphicalLib:
KapEngine::Graphical::GraphicalLib KapEngine::Entity

Public Member Functions

 LegacyGraphicalLib (GraphicalLibManager &manager)
 
void display () override
 
void startDisplay () override
 
- Public Member Functions inherited from KapEngine::Graphical::GraphicalLib
 GraphicalLib (std::string const &name, GraphicalLibManager &manager)
 
virtual void clear ()
 
virtual void getEvents ()
 
std::string getName () const
 
virtual float getJoystikValue (int gamepadId, int joystickId)
 
std::vector< Events::KeygetNewKeys () const
 
std::vector< Events::KeygetKeysPressed () const
 
std::vector< Events::KeygetKeysReleased () const
 
virtual Tools::Vector2 getMousePosition () const
 
virtual void clearCache ()
 
virtual void stopDisplay ()
 
virtual Tools::Vector2 getScreenSize ()
 
virtual void playMusic (std::string const &musicPath, float volume=1.0f)
 
virtual void stopMusic ()
 
virtual void pauseMusic ()
 
virtual void resumMusic ()
 
virtual void restartMusic ()
 
virtual void setMusicVolume (float volume)
 
virtual void playSound (std::string const &soundPath)
 
void setSoundVolume (float volume)
 
virtual void drawRectangle (Tools::Vector2 const &position, Tools::Vector2 const &size, Tools::Color const &color)
 
virtual void drawRectangle (Tools::Rectangle rectangle, Tools::Color const &color, float rotation)
 
void setDrawText (std::function< void(UI::Text &)> f)
 
void setDrawImage (std::function< void(UI::Image &)> f)
 
void drawText (UI::Text &txt)
 
void drawImage (UI::Image &img)
 
- Public Member Functions inherited from KapEngine::Entity
 Entity (std::size_t __id=0)
 
void __setId (std::size_t id)
 set entity id More...
 
std::size_t getId () const
 Get the entity id. More...
 
virtual Entityoperator= (Entity const &en)
 
virtual bool operator== (Entity const &en)
 
virtual bool operator!= (Entity const &en)
 

Additional Inherited Members

- Protected Attributes inherited from KapEngine::Graphical::GraphicalLib
std::vector< Events::Key_newPressedInputs
 
std::vector< Events::Key_pressedInputs
 
std::vector< Events::Key_releasedInputs
 
std::string _name
 
GraphicalLibManagermanager
 
std::function< void(UI::Text &)> _drawText
 
std::function< void(UI::Image &)> _drawImage
 
float _soundVolume = 1.f
 
- Protected Attributes inherited from KapEngine::Entity
std::size_t _id = 0
 

The documentation for this class was generated from the following files: