Abstract class for renderer. More...
#include <ARenderer.hpp>
Inheritance diagram for cae::ARenderer:
Collaboration diagram for cae::ARenderer:Public Member Functions | |
| ~ARenderer () override=default | |
Public Member Functions inherited from cae::IRenderer | |
| ~IRenderer () override=default | |
| virtual void | setVSyncEnabled (bool enabled)=0 |
| Enable or disable VSync. | |
| virtual void | setClearColor (const Color &color)=0 |
| Set the clear color. | |
| virtual bool | isVSyncEnabled () const =0 |
| Check if VSync is enabled. | |
| virtual void | initialize (const NativeWindowHandle &nativeWindowHandle, const Color &clearColor={.r=1.F,.g=1.F,.b=1.F,.a=1.F})=0 |
| Initialize the renderer with a native window handle and clear color. | |
| virtual void | createPipeline (const ShaderID &id, const ShaderIRModule &vertex, const ShaderIRModule &fragment)=0 |
| Create a rendering pipeline with vertex and fragment shaders. | |
| virtual void | draw (const WindowSize &windowSize, const ShaderID &shaderId, glm::mat4 mvp)=0 |
| Draw the scene using the specified shader and window size. | |
| virtual void | createMesh (const std::vector< float > &vertices)=0 |
| Create a mesh with the given vertex data. | |
Public Member Functions inherited from utl::IPlugin | |
| virtual | ~IPlugin ()=default |
| virtual std::string | getName () const =0 |
| Get the name of the plugin. | |
| virtual PluginType | getType () const =0 |
| Get the type of the plugin. | |
| virtual PluginPlatform | getPlatform () const =0 |
| Get the handled platform of the plugin. | |
Abstract class for renderer.
Definition at line 19 of file ARenderer.hpp.
|
overridedefault |