This commit is contained in:
2026-02-08 00:32:46 -06:00
parent b97957ec53
commit bad4bd70bc
9 changed files with 42 additions and 445 deletions

View File

@@ -3,13 +3,15 @@
#include "pch.hpp"
#include "utils/Renderer/Renderer.h"
#define GLEW_STATIC
#include <GL/glew.h>
namespace Archimedes {
class RendererOpenGL {
class RendererOpenGL : public Renderer {
public:
typedef void renderCmd();
@@ -17,7 +19,7 @@ namespace Archimedes {
RendererOpenGL() {};
~RendererOpenGL() {};
bool init(void* p) {
bool init() {
return glewInit() == GLEW_OK;
};
@@ -27,9 +29,9 @@ namespace Archimedes {
glClearColor(0.2, 0.2, 0.4, 1);
glClear(GL_COLOR_BUFFER_BIT);
for(auto f : cmdList)
f();
}
void draw() {}
};
}