1
0
Fork 0
mirror of https://github.com/gwm17/Specter.git synced 2025-03-14 06:28:50 -04:00
Specter/Navigator/src/Platform/OpenGL/OpenGLRendererAPI.cpp

23 lines
619 B
C++
Raw Normal View History

/*
OpenGLRendererAPI.h
Implementation of OpenGL API in Navigator context. Note here only a few things exist. We don't need to implement much ourselves,
ImGui handles a lot of the heavy lifting for us. Based entirely upon @TheCherno's work in his game engine series.
GWM -- Feb 2022
*/
#include "OpenGLRendererAPI.h"
#include "glad/glad.h"
namespace Navigator {
void OpenGLRendererAPI::Clear()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}
void OpenGLRendererAPI::SetClearColor(const glm::vec4& color_array)
{
glClearColor(color_array[0], color_array[1], color_array[2], color_array[3]);
}
}