|
Muto 0.0.1
|
A static class that provides an interface for issuing rendering commands. More...
#include <RenderCommand.h>
Static Public Member Functions | |
| static void | Clear () |
| Clears the rendering buffers. | |
| static void | DrawIndexed (const Ref< VertexArray > &vertexArray, uint32_t indexCount=0) |
| Draws indexed geometry using the specified vertex array and index count. | |
| static void | Init () |
| Initializes the rendering API. | |
| static void | SetClearColor (const glm::vec4 &color) |
| Sets the clear color for the renderer. | |
| static void | SetViewport (uint32_t x, uint32_t y, uint32_t width, uint32_t height) |
| Sets the viewport dimensions for the renderer. | |
Static Private Attributes | |
| static RenderAPI * | s_RendererAPI = new OpenGLRendererAPI() |
A static class that provides an interface for issuing rendering commands.
Clears the rendering buffers.
References Muto::RenderAPI::Clear(), and s_RendererAPI.
Referenced by Sandbox2D::OnAttach(), Sandbox2D::OnImGuiRender(), Sandbox2D::OnUpdate(), and Muto::EditorLayer::OnUpdate().
|
inlinestatic |
Draws indexed geometry using the specified vertex array and index count.
References s_RendererAPI.
Initializes the rendering API.
References Muto::RenderAPI::Init(), and s_RendererAPI.
Referenced by Muto::Renderer::Init().
Sets the clear color for the renderer.
References s_RendererAPI.
|
inlinestatic |
Sets the viewport dimensions for the renderer.
References s_RendererAPI, and Muto::RenderAPI::SetViewport().
Referenced by Muto::Renderer::OnWindowResize().
|
staticprivate |
Referenced by Clear(), DrawIndexed(), Init(), SetClearColor(), and SetViewport().