mirror of
https://github.com/gwm17/Specter.git
synced 2025-03-14 06:28:50 -04:00
17 lines
326 B
C++
17 lines
326 B
C++
|
#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 float* color_array)
|
||
|
{
|
||
|
glClearColor(color_array[0], color_array[1], color_array[2], color_array[3]);
|
||
|
}
|
||
|
|
||
|
}
|