|
Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
|
This is the main renderer parent class which contains the base methods required for a renderer. NOTE: Only the Engine can create this object. More...
#include <Renderer.hpp>
Public Member Functions | |
| virtual void | RendererBegin () |
| This method is used to initialize the renderer for the current frame. More... | |
| virtual void | RendererBegin (const glm::mat4x4 &view, const glm::mat4x4 &projection) |
| This method is used to initialize the renderer for the current frame. More... | |
| virtual void | Render () |
| This method is used to send draw data to the GPU. More... | |
| virtual void | Render (const glm::mat4x4 &modelMatrix, eastl::shared_ptr< Model > model, const glm::vec4 &mainColor=glm::vec4(1, 1, 1, 1)) |
| This method is used to send draw data to the GPU. More... | |
| virtual void | RendererEnd () |
| This method is used to reset the current frame, so it's ready for the next frame. More... | |
Public Attributes | |
| Sharp::Event< void > | OnRender |
| This event is called whenever the Renderer is ready to start rendering. More... | |
Friends | |
| class | Engine |
This is the main renderer parent class which contains the base methods required for a renderer. NOTE: Only the Engine can create this object.
Definition at line 15 of file Renderer.hpp.
|
virtual |
This method is used to send draw data to the GPU.
Definition at line 22 of file Renderer.cpp.
|
virtual |
This method is used to send draw data to the GPU.
| modelMatrix | The model matrix of the object you want to draw. |
| model | The model to render. |
| mainColor | The color you want to render your model in. By default this is set to white. |
Definition at line 26 of file Renderer.cpp.
|
virtual |
This method is used to initialize the renderer for the current frame.
Definition at line 14 of file Renderer.cpp.
|
virtual |
This method is used to initialize the renderer for the current frame.
| view | The view matrix used for this frame. |
| projection | The projection matrix used for this frame. |
Definition at line 18 of file Renderer.cpp.
|
virtual |
This method is used to reset the current frame, so it's ready for the next frame.
Definition at line 30 of file Renderer.cpp.
|
friend |
Definition at line 18 of file Renderer.hpp.
| Sharp::Event<void> Engine::Renderer::OnRender |
This event is called whenever the Renderer is ready to start rendering.
Definition at line 68 of file Renderer.hpp.
1.8.11