r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
eng::IRenderer Class Referenceabstract

Interface for the renderer. More...

#include <IRenderer.hpp>

+ Inheritance diagram for eng::IRenderer:
+ Collaboration diagram for eng::IRenderer:

Public Member Functions

virtual void createWindow (const std::string &title, unsigned int height, unsigned int width, unsigned int frameLimit, bool fullscreen)=0
 
virtual bool windowIsOpen () const =0
 
virtual void closeWindow ()=0
 
virtual void clearWindow (Color color)=0
 
virtual void displayWindow ()=0
 
virtual WindowSize getWindowSize ()=0
 
virtual bool pollEvent (Event &event)=0
 
virtual void setFrameLimit (unsigned int frameLimit)=0
 
virtual void createFont (const std::string &name, const std::string &path)=0
 
virtual void createText (Text text)=0
 
virtual void drawText (const std::string &name)=0
 
virtual void setTextContent (const std::string &name, const std::string &content)=0
 
virtual void setTextPosition (const std::string &name, float x, float y)=0
 
virtual void setTextColor (const std::string &name, Color color)=0
 
virtual void createTexture (const std::string &name, const std::string &path)=0
 
virtual void createSprite (const std::string &name, const std::string &textureName, float x, float y, float scale_x=1, float scale_y=1, int fx=0, int fy=0, int fnx=-1, int fny=-1)=0
 
virtual void drawSprite (const std::string &name)=0
 
virtual void setSpritePosition (const std::string &name, float x, float y)=0
 
virtual void setSpriteTexture (const std::string &name, const std::string &path)=0
 
virtual void setSpriteScale (const std::string &name, int x, int y)=0
 
virtual void setSpriteFrame (const std::string &name, int fx, int fy, int fnx, int fny)=0
 
virtual void drawPoint (float x, float y, Color color)=0
 
- Public Member Functions inherited from utl::IPlugin
virtual ~IPlugin ()=default
 
virtual const std::string getName () const =0
 
virtual PluginType getType () const =0
 

Detailed Description

Interface for the renderer.

Definition at line 105 of file IRenderer.hpp.

Member Function Documentation

◆ clearWindow()

virtual void eng::IRenderer::clearWindow ( Color color)
pure virtual

◆ closeWindow()

virtual void eng::IRenderer::closeWindow ( )
pure virtual

◆ createFont()

virtual void eng::IRenderer::createFont ( const std::string & name,
const std::string & path )
pure virtual

◆ createSprite()

virtual void eng::IRenderer::createSprite ( const std::string & name,
const std::string & textureName,
float x,
float y,
float scale_x = 1,
float scale_y = 1,
int fx = 0,
int fy = 0,
int fnx = -1,
int fny = -1 )
pure virtual

Referenced by cli::AsteroidSystem::update(), cli::EnemySystem::update(), and cli::ExplosionSystem::update().

+ Here is the caller graph for this function:

◆ createText()

virtual void eng::IRenderer::createText ( Text text)
pure virtual

◆ createTexture()

virtual void eng::IRenderer::createTexture ( const std::string & name,
const std::string & path )
pure virtual

◆ createWindow()

virtual void eng::IRenderer::createWindow ( const std::string & title,
unsigned int height,
unsigned int width,
unsigned int frameLimit,
bool fullscreen )
pure virtual

◆ displayWindow()

virtual void eng::IRenderer::displayWindow ( )
pure virtual

◆ drawPoint()

virtual void eng::IRenderer::drawPoint ( float x,
float y,
Color color )
pure virtual

Referenced by cli::BeamSystem::update(), and cli::PixelSystem::update().

+ Here is the caller graph for this function:

◆ drawSprite()

virtual void eng::IRenderer::drawSprite ( const std::string & name)
pure virtual

◆ drawText()

virtual void eng::IRenderer::drawText ( const std::string & name)
pure virtual

Referenced by cli::TextSystem::update().

+ Here is the caller graph for this function:

◆ getWindowSize()

virtual WindowSize eng::IRenderer::getWindowSize ( )
nodiscardpure virtual

◆ pollEvent()

virtual bool eng::IRenderer::pollEvent ( Event & event)
nodiscardpure virtual

◆ setFrameLimit()

virtual void eng::IRenderer::setFrameLimit ( unsigned int frameLimit)
pure virtual

◆ setSpriteFrame()

virtual void eng::IRenderer::setSpriteFrame ( const std::string & name,
int fx,
int fy,
int fnx,
int fny )
pure virtual

Referenced by cli::LoadingAnimationSystem::update(), and cli::SpriteSystem::update().

+ Here is the caller graph for this function:

◆ setSpritePosition()

virtual void eng::IRenderer::setSpritePosition ( const std::string & name,
float x,
float y )
pure virtual

Referenced by cli::LoadingAnimationSystem::update(), and cli::SpriteSystem::update().

+ Here is the caller graph for this function:

◆ setSpriteScale()

virtual void eng::IRenderer::setSpriteScale ( const std::string & name,
int x,
int y )
pure virtual

◆ setSpriteTexture()

virtual void eng::IRenderer::setSpriteTexture ( const std::string & name,
const std::string & path )
pure virtual

Referenced by cli::LoadingAnimationSystem::update(), and cli::SpriteSystem::update().

+ Here is the caller graph for this function:

◆ setTextColor()

virtual void eng::IRenderer::setTextColor ( const std::string & name,
Color color )
pure virtual

Referenced by cli::TextSystem::update().

+ Here is the caller graph for this function:

◆ setTextContent()

virtual void eng::IRenderer::setTextContent ( const std::string & name,
const std::string & content )
pure virtual

Referenced by cli::TextSystem::update().

+ Here is the caller graph for this function:

◆ setTextPosition()

virtual void eng::IRenderer::setTextPosition ( const std::string & name,
float x,
float y )
pure virtual

Referenced by cli::TextSystem::update().

+ Here is the caller graph for this function:

◆ windowIsOpen()

virtual bool eng::IRenderer::windowIsOpen ( ) const
nodiscardpure virtual

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