changed from bgfx to opengl, glfw and glad

This commit is contained in:
Aaro Koivukangas
2025-05-19 11:36:48 +03:00
parent d6bf49d19e
commit 581c550636
11 changed files with 38 additions and 328 deletions
-18
View File
@@ -1,10 +1,7 @@
#pragma once
#include <vector>
#include "gwindow.h"
#include "logger.h"
#include "vertex.h"
class GRenderer {
public:
@@ -16,19 +13,4 @@ public:
private:
Logger *logger;
GWindow *window;
bgfx::ShaderHandle vsh;
bgfx::ShaderHandle fsh;
bgfx::ProgramHandle program;
bgfx::VertexBufferHandle vbh;
bgfx::IndexBufferHandle ibh;
std::vector<PosColVertex> *vertexes;
std::vector<int> *tri_list;
bgfx::VertexLayout layout;
void bgfx_init();
void shader_init();
bgfx::ShaderHandle load_shader(const char *name);
};