mirror of
https://github.com/gwm17/Daqromancy.git
synced 2025-04-21 16:08:51 -04:00
21 lines
388 B
C++
21 lines
388 B
C++
#include "OpenGLRendererAPI.h"
|
|
#include "glad/glad.h"
|
|
#include "GLFW/glfw3.h"
|
|
|
|
namespace Daqromancy {
|
|
|
|
void OpenGLRendererAPI::Clear()
|
|
{
|
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
|
}
|
|
|
|
void OpenGLRendererAPI::SetClearColor(float color[4])
|
|
{
|
|
glClearColor(color[0], color[1], color[2], color[3]);
|
|
}
|
|
|
|
double OpenGLRendererAPI::GetFrameTime()
|
|
{
|
|
return glfwGetTime();
|
|
}
|
|
} |