P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
IGraphic3Module Class Referenceabstract

A vendor's 3D factory. Extends IGraphic2Module : implementing it means implementing all of the 2D too, and the window it returns is an IWindow3, hence usable as an IWindow2. More...

#include <IGraphic3Module.hpp>

Inheritance diagram for IGraphic3Module:
Collaboration diagram for IGraphic3Module:

Public Member Functions

virtual ~IGraphic3Module ()=default
virtual graphic::IWindow3 * createWindow (int32_t screenWidth, int32_t screenHeight, std::string title)=0
virtual graphic::ICamera * createCamera (Vector3f position, Vector3f target, float fov)=0
virtual void deleteCamera (graphic::ICamera *)=0
virtual graphic::IMesh * createMesh (std::string path)=0
virtual void deleteMesh (graphic::IMesh *mesh)=0
virtual graphic::IAnimationSet * createAnimationSet (std::string path)=0
virtual void deleteAnimationSet (graphic::IAnimationSet *animations)=0
virtual graphic::IModel * createModel (graphic::IMesh *mesh)=0
virtual void deleteModel (graphic::IModel *model)=0
Public Member Functions inherited from IGraphic2Module
virtual ~IGraphic2Module ()=default
virtual void deleteWindow (graphic::IWindow2 *)=0
virtual graphic::IWindow2 * window ()=0
 La fenetre ouverte de ce vendor, nullptr s'il n'y en a pas.
virtual graphic::IKeyboard * createKeyboard (graphic::IWindow *window)=0
virtual void deleteKeyboard (graphic::IKeyboard *keyboard)=0
virtual graphic::IMouse * createMouse (graphic::IWindow *window)=0
virtual void deleteMouse (graphic::IMouse *mouse)=0
virtual graphic::IGamepad * createGamepad (graphic::IWindow *window)=0
virtual void deleteGamepad (graphic::IGamepad *gamepad)=0
virtual graphic::ITexture * createTexture (std::string path)=0
virtual void deleteTexture (graphic::ITexture *texture)=0
virtual graphic::IFont * createFont (std::string path)=0
virtual void deleteFont (graphic::IFont *font)=0
virtual graphic::IPolygon * createPolygon (std::vector< Vector2f > points)=0
virtual void deletePolygon (graphic::IPolygon *polygon)=0
virtual graphic::ISprite * createSprite (graphic::ITexture *texture)=0
virtual void deleteSprite (graphic::ISprite *sprite)=0
virtual graphic::IText * createText (std::string text, graphic::IFont *font)=0
virtual void deleteText (graphic::IText *text)=0
Public Member Functions inherited from IModule
virtual ~IModule ()=default
virtual const char * type () const =0
 Le contrat qu'il remplit : "graphic2", "audio", "game"...
virtual const char * name () const =0
 Le fournisseur : "raylib", "sfml", "console"...
virtual const char *const * claims () const
 Les ressources qu'il tient pour lui seul : "opengl"...
void bind (IModuleManager &manager)
 Le manager, pose au chargement. Jamais nul ensuite.
bool acquire ()
 Se declarer detenteur.
void release ()
 Rendre ce qu'on tenait. A appeler apres l'avoir detruit.
unsigned uses () const
 Combien de detenteurs, a cet instant.
bool mustClose () const
 Sa bibliotheque est condamnee : les detenteurs doivent lacher.
bool isClosed () const
 Plus aucun detenteur.
void condemn ()
 Le condamner. Appele par le manager, jamais par un module.
void reset ()
 Le rendre a neuf : ni detenteur, ni condamnation.

Static Public Attributes

static constexpr const char * entry = "getGraphic3Module"
 Symbol the loader looks up : present = this vendor can draw 3D.
static constexpr const char * contract = "graphic3"
static constexpr const char * accepts [] = {"graphic3", nullptr}
 Rien d'autre ne fait de la 3D : je ne m'accepte que moi.
Static Public Attributes inherited from IGraphic2Module
static constexpr const char * entry = "getGraphic2Module"
 Symbol the loader looks up : present = this vendor can draw 2D.
static constexpr const char * contract = "graphic2"
static constexpr const char * accepts [] = {"graphic2", "graphic3", nullptr}
 Les contrats qui me satisfont, du plus general au plus precis.

Additional Inherited Members

Protected Member Functions inherited from IModule
IModuleManager * registry () const
 Pour aller chercher les autres modules.

Detailed Description

A vendor's 3D factory. Extends IGraphic2Module : implementing it means implementing all of the 2D too, and the window it returns is an IWindow3, hence usable as an IWindow2.

A vendor without 3D DOES NOT EXPORT this symbol, rather than returning empty objects : the missing symbol is the only way the loader learns the capability is absent.

Constructor & Destructor Documentation

◆ ~IGraphic3Module()

virtual IGraphic3Module::~IGraphic3Module ( )
virtualdefault

Member Function Documentation

◆ createAnimationSet()

virtual graphic::IAnimationSet * IGraphic3Module::createAnimationSet ( std::string path)
pure virtual

Implemented in RayGraphicModule.

◆ createCamera()

virtual graphic::ICamera * IGraphic3Module::createCamera ( Vector3f position,
Vector3f target,
float fov )
pure virtual

Implemented in RayGraphicModule.

◆ createMesh()

virtual graphic::IMesh * IGraphic3Module::createMesh ( std::string path)
pure virtual

Implemented in RayGraphicModule.

◆ createModel()

virtual graphic::IModel * IGraphic3Module::createModel ( graphic::IMesh * mesh)
pure virtual

Implemented in RayGraphicModule.

◆ createWindow()

virtual graphic::IWindow3 * IGraphic3Module::createWindow ( int32_t screenWidth,
int32_t screenHeight,
std::string title )
pure virtual

Implements IGraphic2Module.

Implemented in RayGraphicModule.

◆ deleteAnimationSet()

virtual void IGraphic3Module::deleteAnimationSet ( graphic::IAnimationSet * animations)
pure virtual

Implemented in RayGraphicModule.

◆ deleteCamera()

virtual void IGraphic3Module::deleteCamera ( graphic::ICamera * )
pure virtual

Implemented in RayGraphicModule.

◆ deleteMesh()

virtual void IGraphic3Module::deleteMesh ( graphic::IMesh * mesh)
pure virtual

Implemented in RayGraphicModule.

◆ deleteModel()

virtual void IGraphic3Module::deleteModel ( graphic::IModel * model)
pure virtual

Implemented in RayGraphicModule.

Member Data Documentation

◆ accepts

const char* IGraphic3Module::accepts[] = {"graphic3", nullptr}
staticconstexpr

Rien d'autre ne fait de la 3D : je ne m'accepte que moi.

◆ contract

const char* IGraphic3Module::contract = "graphic3"
staticconstexpr

Le contrat le PLUS PRECIS que ce module remplit. Un IGraphic3Module EST un IGraphic2Module, mais type() n'en rend qu'un seul : c'est a l'appelant de savoir que chercher de la 2D veut dire regarder les deux lignes. La table, elle, ignore la chaine d'heritage.

◆ entry

const char* IGraphic3Module::entry = "getGraphic3Module"
staticconstexpr

Symbol the loader looks up : present = this vendor can draw 3D.


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