Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
OpenGLRendererAPI.h
Go to the documentation of this file.
1#pragma once
2
3#include "Vesper/Renderer/RendererAPI.h"
4#include <glm/glm.hpp>
5#include <memory>
6
7namespace Vesper {
8
9 /// @class OpenGLRendererAPI
10 /// @brief An implementation of the RendererAPI 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 VZ_PROFILE_FUNCTION()
Definition Instrumentor.h:240
An implementation of the RendererAPI for OpenGL.
Definition OpenGLRendererAPI.h:13
virtual void Init() override
Initializes the OpenGL rendering API.
Definition OpenGLRendererAPI.cpp:8
virtual void SetClearColor(const glm::vec4 &color) override
Sets the clear color for OpenGL.
Definition OpenGLRendererAPI.cpp:22
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 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 Clear() override
Clears the OpenGL rendering buffers.
Definition OpenGLRendererAPI.cpp:29
An abstract class defining the interface for a rendering API.
Definition RendererAPI.h:11
TEMPORARY.
Definition WindowsInput.cpp:7