raylib_impl 0.1.0
Vendor raylib 5.5 : IGraphic2Module / IGraphic3Module / IAudioModule
Loading...
Searching...
No Matches
raylib_impl

Namespaces

namespace  raylib
 

Classes

class  RayMusic
 raylib music stream. More...
 
class  RaySound
 Raylib Sound class - a LoadSoundAlias() of a RaySoundBuffer, does not own the buffer. Deleting the sound never touches the buffer. More...
 
class  RaySoundBuffer
 Raylib SoundBuffer class - owns the loaded samples (raylib's own LoadSound() result). RaySound instances are LoadSoundAlias()'d from this and don't own the samples themselves. More...
 
class  RayGamepad
 
class  RayKeyboard
 raylib keyboard, read straight off the native state queries. More...
 
class  RayMouse
 raylib mouse. More...
 
class  RayAnimationSet
 Raylib AnimationSet class - owns the loaded clips, independent of any RayModel bound to it. More...
 
class  RayFont
 Raylib Font class - owns the loaded font, independent of any RayText built from it. More...
 
class  RayMesh
 Raylib Mesh class - owns the loaded geometry (raylib's own Model struct is the mesh+material data, not positioned). Many RayModel instances can reference one RayMesh; deleting a model never touches the mesh. More...
 
class  RayModel
 Raylib Model class - references a RayMesh, does not own it. More...
 
class  RayPolygon
 
class  RaySprite
 Raylib Sprite class - references a RayTexture, does not own it. Deleting the sprite never touches the texture. More...
 
class  RayText
 Raylib Text class - references a RayFont, does not own it. Deleting the text never touches the font. More...
 
class  RayTexture
 Raylib Texture class - owns the GPU texture. RaySprite/RayModel only reference it, never own it: this survives as long as the caller keeps it alive, regardless of how many sprites/models get created and destroyed against it. More...
 
class  RayAudioModule
 L'ouverture du peripherique audio de raylib, comptee par reference. More...
 
class  RayGraphicModule
 Single concrete class implementing IGraphic3Module, which already IS-A IGraphic2Module via the interface chain - one createWindow()/ createSprite()/... implementation, exported under two dlsym entry points (getGraphic2Module/getGraphic3Module) in sources/raylib.cpp, both returning this same instance. More...
 
class  RayCamera
 Raylib Camera class. More...
 
class  RayWindow
 Raylib Window class - a single concrete class implementing IWindow3 fully (which already IS-A IWindow2 IS-A IWindow via the interface chain), matching raylib itself : one native window, no separate 2D/3D window objects. More...
 

Macros

#define RAYLIB_CPP_
 

Functions

IGraphic2Module * getGraphic2Module ()
 Le module graphique 2D de ce vendor.
 
IGraphic3Module * getGraphic3Module ()
 Le module graphique 3D de ce vendor.
 
IAudioModule * getAudioModule ()
 Le module audio de ce vendor.
 
IModule ** getModules ()
 Tout ce que cette dll fournit, sans avoir a nommer un contrat.
 
void RayWindow::drawPoly (graphic::IPolygon *polygon) override
 
void RayWindow::drawSprite (graphic::ISprite *sprite) override
 
void RayWindow::drawText (graphic::IText *text) override
 
void RayWindow::beginMode3 (graphic::ICamera *camera) override
 
void RayWindow::drawModel (graphic::IModel *model) override
 
void RayWindow::drawText3D (graphic::IText *text, Vector3f position) override
 
void RayWindow::endMode3 () override
 

Detailed Description

Macro Definition Documentation

◆ RAYLIB_CPP_

#define RAYLIB_CPP_

Function Documentation

◆ beginMode3()

void RayWindow::beginMode3 ( graphic::ICamera *  camera)
override

◆ drawModel()

void RayWindow::drawModel ( graphic::IModel *  model)
override

◆ drawPoly()

void RayWindow::drawPoly ( graphic::IPolygon *  polygon)
override

◆ drawSprite()

void RayWindow::drawSprite ( graphic::ISprite *  sprite)
override

◆ drawText()

void RayWindow::drawText ( graphic::IText *  text)
override

◆ drawText3D()

void RayWindow::drawText3D ( graphic::IText *  text,
Vector3f  position 
)
override

◆ endMode3()

void RayWindow::endMode3 ( )
override

◆ getAudioModule()

IAudioModule * getAudioModule ( )

Le module audio de ce vendor.

Symbole recherche : getAudioModule. Instance separee du graphique : l'audio n'a aucun couplage a la fenetre, et son peripherique ne s'ouvre qu'au premier appel.

◆ getGraphic2Module()

IGraphic2Module * getGraphic2Module ( )

Le module graphique 2D de ce vendor.

Symbole recherche : getGraphic2Module. Sa presence dit au chargeur que ce vendor sait dessiner en 2D.

◆ getGraphic3Module()

IGraphic3Module * getGraphic3Module ( )

Le module graphique 3D de ce vendor.

Symbole recherche : getGraphic3Module. Rend la MEME instance que getGraphic2Module(), vue par l'autre bout de la chaine d'heritage : RayGraphicModule implemente IGraphic3Module, qui EST un IGraphic2Module. Une seule implementation, aucun risque que les deux vues divergent.

Un vendor sans 3D n'exporte tout simplement pas ce symbole.

◆ getModules()

IModule ** getModules ( )

Tout ce que cette dll fournit, sans avoir a nommer un contrat.

Le point d'entree d'AnonymousModuleManager : un nom unique, le meme pour toutes les dll, donc trouvable sans connaitre les contrats a l'avance. Le chargeur trie ensuite par IModule::type().

IModule ** termine par nullptr, et pas un std::vector : un vecteur ne traverse pas un dlopen sans supposer la meme ABI de bibliotheque standard des deux cotes. La conversion vers IModule * se fait ICI, ou le type complet est connu, donc le decalage eventuel est applique par le compilateur et pas devine par l'appelant.

getGraphic3Module() n'y figure pas : c'est la MEME instance que la 2D, vue par l'autre bout de la chaine d'heritage. L'inscrire deux fois mettrait deux cases de la table sur un seul objet, et son type() ne peut en declarer qu'une.