Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
OpenGLRendererAPI.h
Go to the documentation of this file.
1#pragma once
2
3#include "Renderer/RendererAPI.h"
4#include <glm/glm.hpp>
5#include <memory>
6
7namespace Muto {
8
9 /// @class OpenGLRendererAPI
10 /// @brief An implementation of the RenderAPI for OpenGL.
11 /// @note Should only be called by the RenderCommand class.
13 {
14 public:
15 /// @brief Initializes the OpenGL rendering API.
16 virtual void Init() override;
17 /// @brief Sets the viewport dimensions for OpenGL.
18 virtual void SetViewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height) override;
19 /// @brief Sets the clear color for OpenGL.
20 virtual void SetClearColor(const glm::vec4& color) override;
21 /// @brief Clears the OpenGL rendering buffers.
22 virtual void Clear() override;
23 /// @brief Draws indexed geometry using the provided vertex array in OpenGL.
24 virtual void DrawIndexed(const Ref<VertexArray>& vertexArray, uint32_t indexCount = 0) override;
25 };
26}
#define MU_PROFILE_FUNCTION()
Definition Instrumentor.h:240
An implementation of the RenderAPI for OpenGL.
Definition OpenGLRendererAPI.h:13
virtual void DrawIndexed(const Ref< VertexArray > &vertexArray, uint32_t indexCount=0) override
Draws indexed geometry using the provided vertex array in OpenGL.
Definition OpenGLRendererAPI.cpp:36
virtual void SetViewport(uint32_t x, uint32_t y, uint32_t width, uint32_t height) override
Sets the viewport dimensions for OpenGL.
Definition OpenGLRendererAPI.cpp:15
virtual void Init() override
Initializes the OpenGL rendering API.
Definition OpenGLRendererAPI.cpp:8
virtual void Clear() override
Clears the OpenGL rendering buffers.
Definition OpenGLRendererAPI.cpp:29
virtual void SetClearColor(const glm::vec4 &color) override
Sets the clear color for OpenGL.
Definition OpenGLRendererAPI.cpp:22
An abstract class defining the interface for a rendering API.
Definition RendererAPI.h:17
The main namespace for the Muto engine.
Definition Application.cpp:15